x-api-key: ********************curl --location -g --request POST 'https://relay.exostack.cloud//api/customers/payments/actions/apply-invoice' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice_id": 1,
"invoice_code": "string",
"order_id": 1,
"order_code": "string",
"deposit_amount": 0,
"payment": {
"payment_type": 1,
"payment_date": "2019-08-24T14:15:22.123Z",
"reference": "string",
"current_day": true,
"modes": [
{
"mode": 0,
"amount": 0
}
]
}
}'{
"id": 140,
"success": true
}