Payment removed successfully
OK
Payment updated successfully
Payment created successfully
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order_id}/payments/{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_id}/payments/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "order_id": "text", "payment_method_id": "text", "amount": 0, "installments": 0 }
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order_id}/payments', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order_id}/payments/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "amount": 0, "installments": 0, "payment_method_id": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/orders/{order_id}/payments', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "amount": 0, "installments": 0, "payment_method_id": "text" }), }); const data = await response.json();