Additional data to REST responses (REST v3)
-
Hi, I’ve tried to search in the docs and on the internet but wasn’t able to find anything. How can I modify or add data to REST response for
product_invalid_sku
?I want to retrieve the product SKU, like that:
{ "code": "product_invalid_sku", "message": "REF inválido ou duplicado.", "data": { "status": 400, "resource_id": 1111 "sku": "00s0s9d0s9218" } }
Any idea about the right hooks to do that? I’m using REST API v3.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Additional data to REST responses (REST v3)’ is closed to new replies.