/financials/{id}
OK
Financial was not found
An internal server error was thrown
curl -L \ --url 'https://api.zydon.com.br/api/sales/financials/{id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text", "partner_id": "text", "partner_name": "text", "order_id": "text", "value": 1, "paying_off_value": 1, "paying_off_date": "2025-02-11T19:01:10.806Z", "due_date": "2025-02-11T19:01:10.806Z", "status": "text", "type": "text", "payment_billet": { "resource_file_id": "123e4567-e89b-12d3-a456-426614174000", "resource_file_name": "text", "bar_code": "text", "qr_code": "text" }, "attachments": [ { "id": "text", "is_payment_billet": true, "payment_billet_bar_code": "text", "payment_billet_qr_code": "text", "resource_files": [ { "id": "text", "fileName": "text" } ] } ] }
Financial updated successfully
A validation error was thrown
curl -L \ --request PUT \ --url 'https://api.zydon.com.br/api/sales/financials/{id}' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"partner_id":"text","value":1,"paying_off_value":1,"paying_off_date":"2025-02-11T19:01:10.806Z","due_date":"2025-02-11T19:01:10.806Z","status":"text","payment_billet":{},"attachments":[null]}'
{ "id": "text", "partner_id": "text", "partner_name": "text", "value": 1, "paying_off_value": 1, "paying_off_date": "2025-02-11T19:01:10.806Z", "due_date": "2025-02-11T19:01:10.806Z", "status": "text", "order_id": "text", "type": "text", "payment_billet": { "resource_file_id": "123e4567-e89b-12d3-a456-426614174000", "bar_code": "text", "qr_code": "text" }, "attachments": [ "123e4567-e89b-12d3-a456-426614174000" ] }
Financial removed successfully
curl -L \ --request DELETE \ --url 'https://api.zydon.com.br/api/sales/financials/{id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text" }
/financials
curl -L \ --url 'https://api.zydon.com.br/api/sales/financials' \ --header 'Authorization: Bearer JWT'
{ "currentPage": 1, "perPage": 1, "total": 1, "items": [ { "id": "text", "partner_id": "text", "partner_name": "text", "value": 1, "paying_off_value": 1, "paying_off_date": "2025-02-11T19:01:10.806Z", "due_date": "2025-02-11T19:01:10.806Z", "status": "text", "order_id": "text", "type": "text" } ] }
Financial created successfully
curl -L \ --request POST \ --url 'https://api.zydon.com.br/api/sales/financials' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"partner_id":"text","value":1,"paying_off_value":1,"paying_off_date":"2025-02-11T19:01:10.806Z","due_date":"2025-02-11T19:01:10.806Z","status":"text","payment_billet":{},"attachments":[null]}'