x-api-key: ********************curl --location -g --request POST 'https://relay.exostack.cloud//api/suppliers/payments/actions/apply-invoice' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"payment_id": 1,
"payment_code": "string",
"payment_type": 1,
"bank_number": "string",
"item": {
"invoice_ap_id": 1,
"invoice_code": "string",
"supplier_id": 1,
"supplier_code": "string",
"invoice_type": 1,
"amount": 0,
"discount": 0
}
}'{
"id": 5,
"success": true
}