v1
latestOpenAPI 3.1.02026-08-04103211436.0 KBCreate payment
Creates a payment against one or more operations, recording that those operations (invoices/bills) have been settled in your ERP; each settled amount reduces the operation's pending amount in Embat. If customId is omitted, Embat auto-generates one.
Each entry in operations is validated independently and silently discarded when: the referenced operation does not exist, the operation is already paid or canceled, a payment with the same customId was already notified for that operation (duplicates are ignored), or the operation already has payments created from Embat. Discarded entries produce no error: if only some operations are eligible the payment is created for those only, and if none are eligible the call still returns 200 with an id but no payment is created. When a payment covers an operation's full amount, the operation is automatically marked as paid.
Path parameters
Request body
Example request
{
"method": "bank-transaction",
"operations": [
{
"amount": 500,
"customId": "invoice-2024-001"
}
],
"concept": "Invoice #2024-001 payment",
"amount": 1250.5,
"accountingAmount": 1250.5,
"exchangeRate": 1,
"attributes": [
{
"customId": "cost-center",
"value": "Marketing",
"valueCustomId": "marketing"
}
],
"customId": "erp-payment-001"
}Response
Successful Response