/orders/{order}/items/{id}
OK
Item was not found
An internal server error was thrown
curl -L \ --url 'https://api.zydon.com.br/api/sales/orders/{order}/items/{id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text", "order_id": "text", "product_id": "text", "unit_value": 1, "quantity": 1, "unit": "text", "discount": 1, "product_variation_id": "text" }
Item updated successfully
A validation error was thrown
curl -L \ --request PUT \ --url 'https://api.zydon.com.br/api/sales/orders/{order}/items/{id}' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"product_id":"text","unit_value":1,"quantity":1,"unit":"text","discount":1}'
Item removed successfully
curl -L \ --request DELETE \ --url 'https://api.zydon.com.br/api/sales/orders/{order}/items/{id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text" }
/orders/{order}/items
curl -L \ --url 'https://api.zydon.com.br/api/sales/orders/{order}/items' \ --header 'Authorization: Bearer JWT'
Item created successfully
curl -L \ --request POST \ --url 'https://api.zydon.com.br/api/sales/orders/{order}/items' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"product_id":"text","unit_value":1,"quantity":1,"unit":"text","discount":1}'