curl --location -g --request POST 'https://relay.exostack.cloud//api/customers/payments' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": 1,
"customer_code": "string",
"payment_type": 1,
"payment_date": "2019-08-24T14:15:22.123Z",
"notice_date": "2019-08-24T14:15:22.123Z",
"receivable": 0,
"reference": "string",
"current_day": true,
"modes": [
{
"mode": 0,
"amount": 0
}
],
"invoices": [
{
"invoice_ar_id": 1,
"amount": 0,
"discount": 0
}
]
}'