Item removed successfully
OK
Item updated successfully
Item created successfully
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order}/items/{id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order}/items/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "order_id": "text", "product_id": "text", "unit_value": 0, "quantity": 0, "unit": "text", "discount": 0 }
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order}/items', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order}/items/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "discount": 0, "product_id": "text", "quantity": 0, "unit": "text", "unit_value": 0 }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order}/items', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "discount": 0, "product_id": "text", "quantity": 0, "unit": "text", "unit_value": 0 }), }); const data = await response.json();