Record a payment
Records a partial or full payment of an invoice. For foreign-currency invoices, the payment may be recorded in the original currency by providing both originalCurrency and exchangeRate.
Recording a payment
Payments are booked against acontraAccount (typically a bank or cash account) on the given date.
For foreign-currency invoices, you may record the payment in either the primary accounting currency or the invoice’s original currency. To record a payment in the original currency, provide both originalCurrency and exchangeRate.
Example
A partial payment of CHF 500.00 received on the bank account 1020:totalAmountPaid, totalRestAmount, and isPaid fields.Authorizations
API token for authentication. Obtain from your Infinity account settings.
Path Parameters
The id of the invoice to record a payment for.
Body
The payment details.
Request body for recording a payment against an invoice.
The payment amount in cents.
x >= 1The contra account number where the incoming payment is booked (typically a bank or cash account).
1000 <= x <= 9999The payment date in YYYY-MM-DD format.
For foreign-currency payments: the ISO 4217 currency code of the payment. Must be provided together with exchangeRate.
3For foreign-currency payments: the rate used to convert the payment to the primary accounting currency. Must be provided together with originalCurrency.
Response
The payment was recorded successfully and the refreshed invoice is returned.
The full representation of a customer invoice.