curl --location -g --request POST 'https://relay.exostack.cloud//api/suppliers/payments' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"supplier_id": 1,
"supplier_code": "string",
"payment_type": 1,
"bank_number": "string",
"payment_number": "string",
"payment_date": "2019-08-24T14:15:22.123Z",
"payable": 0,
"amount": 0,
"discount": 0,
"credit": 0,
"reference": "string",
"current_day": true,
"invoices": [
{
"invoice_ap_id": 1,
"amount": 0,
"discount": 0
}
]
}'