Financial removed successfully
OK
Financial created successfully
Financial updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/financials/{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/financials/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "partner_id": "text", "partner_name": "text", "order_id": "text", "value": 0, "paying_off_value": 0, "paying_off_date": "2024-12-21T14:32:12.563Z", "due_date": "2024-12-21T14:32:12.563Z", "status": "text", "payment_billet": { "resource_file_id": "123e4567-e89b-12d3-a456-426614174000", "resource_file_name": "text", "bar_code": "text" }, "attachments": [ { "id": "text", "is_payment_billet": false, "payment_billet_bar_code": "text", "resource_files": [ { "id": "text", "fileName": "text" } ] } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/financials', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "currentPage": 0, "perPage": 0, "total": 0, "items": [ { "id": "text", "partner_id": "text", "partner_name": "text", "value": 0, "paying_off_value": 0, "paying_off_date": "2024-12-21T14:32:12.563Z", "due_date": "2024-12-21T14:32:12.563Z", "status": "text", "order_id": "text" } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/financials', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "due_date": "2024-12-21T14:32:12.563Z", "partner_id": "text", "paying_off_date": "2024-12-21T14:32:12.563Z", "paying_off_value": 0, "status": "text", "value": 0 }), }); const data = await response.json();
{ "id": "text", "partner_id": "text", "partner_name": "text", "value": 0, "paying_off_value": 0, "paying_off_date": "2024-12-21T14:32:12.563Z", "due_date": "2024-12-21T14:32:12.563Z", "status": "text", "order_id": "text", "payment_billet": { "resource_file_id": "123e4567-e89b-12d3-a456-426614174000", "bar_code": "text" }, "attachments": [ "123e4567-e89b-12d3-a456-426614174000" ] }
const response = await fetch('https://api.zydon.com.br/api/sales/financials/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "due_date": "2024-12-21T14:32:12.563Z", "partner_id": "text", "paying_off_date": "2024-12-21T14:32:12.563Z", "paying_off_value": 0, "status": "text", "value": 0 }), }); const data = await response.json();