POST/api/partner/invoices/:invoiceId/pay
Pay an invoice
Pays an invoice one of your users owes, from the bank account or card you name. Returns the invoice as it stands after the payment.
Path parameters
| Field | Type | Required |
|---|---|---|
| invoiceId | string | yes |
Request body
| Field | Type | Required |
|---|---|---|
| clientId | string | yes |
| bankAccountId | string or null | no |
| creditCardId | string or null | no |
A user who is not the payer on the invoice returns 422. Payment errors keep their own status.