OK
OrderJoint created successfully
const response = await fetch('https://api.zydon.com.br/api/sales/orders/joint/{id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/orders/joint/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "order_id": "text", "external_id": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/orders/joint', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "external_id": "text", "order_id": "text" }), }); const data = await response.json();
{ "id": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/orders/joint', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "items": [ { "id": "text", "order_id": "text", "external_id": "text" } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/orders/joint/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "external_id": "text", "order_id": "text" }), }); const data = await response.json();