curl --location -g --request PATCH 'https://relay.exostack.cloud//api/suppliers/transactions/by-id/' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"supplier_id": 1,
"supplier_code": "string",
"supplier_paid_to_id": 1,
"supplier_paid_to_code": "string",
"invoice_number": "string",
"invoice_type": 1,
"date": "2019-08-24T14:15:22.123Z",
"payable": 0,
"subtotal": 0,
"reference": "string",
"description": "string",
"terms": {
"term_type": 0,
"term_percent": 0,
"term_number_of_days": 0,
"term_due_days": 0,
"term_periodicity": 0,
"term_number_of_payments": 0,
"term_days_between_payments": 0,
"term_first_payment": 0,
"term_number_of_schedules": 0,
"term_equal_payments": true
},
"allocations": [
{
"charter_id": 1,
"charter_code": "string",
"project_id": 1,
"project_code": "string",
"description": "string",
"amount": 0
}
]
}'