curl --location -g --request POST 'https://relay.exostack.cloud//api/customers/transactions' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": 1,
"customer_code": "string",
"invoice_to_id": 1,
"invoice_to_code": "string",
"invoice_number": "string",
"transaction_type": 2,
"date": "2019-08-24T14:15:22.123Z",
"receivable_offset": 0,
"reference": "string",
"description": "string",
"sales_rep_id": 1,
"sales_rep_code": "string",
"territory_id": 1,
"territory_code": "string",
"shipping_id": 1,
"shipping_code": "string",
"project_id": 1,
"project_code": "string",
"tax_group_id": 1,
"tax_group_code": "string",
"order_id": 1,
"deposit_payment_mode": 0,
"terms": {
"term_type": 0,
"term_percent": 0,
"number_of_days": 0,
"due_days": 0,
"periodicity": 0,
"number_of_payments": 0,
"days_between_payments": 0,
"first_payment": 0,
"starting_date": "2019-08-24T14:15:22.123Z",
"exclude_invoicing_payment": true,
"number_of_schedules": 0,
"equal_payments": true,
"schedule_dates": {
"property1": "2019-08-24T14:15:22.123Z",
"property2": "2019-08-24T14:15:22.123Z"
},
"schedule_percents": {
"property1": 0,
"property2": 0
}
},
"allocations": [
{
"charter_id": 1,
"charter_code": "string",
"project_id": 1,
"project_code": "string",
"description": "string",
"amount": 0
}
]
}'