Pay an invoice from a BALANCE wallet
Pays the open amount of a FINAL invoice from a BALANCE wallet of the invoice’s customer, in the invoice’s currency, as far as the wallet’s balance goes. The wallet’s reserved_balance is not deducted: a reservation only forecasts an invoice that is not paid yet. A partial payment leaves the rest open. The payment is a WALLET_BALANCE payment, and the paid part is reported as prepaid_invoice_amount. Answers 409 with reason INVALID_STATE when the invoice cannot be paid from the wallet: invalid_state.status is the invoice status (not FINAL), its type (a credit invoice), its payment status (PAID, OVERPAID), NO_OPEN_AMOUNT for an invoice with nothing open that is not PAID or OVERPAID, TOP_UP for an invoice that funds a BALANCE wallet, PAYMENT_PENDING while another payment is in progress, WALLET_NOT_ACTIVE for a wallet that is DRAFT, INACTIVE or ARCHIVED, or NO_AVAILABLE_BALANCE when the wallet’s balance is zero. Requires the INVOICE.PAY permission.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Headers
Request
The ID of the BALANCE wallet to pay from: a wallet of the invoice’s customer, in the invoice’s currency.
Response
id of the customer, can only be provided when creating a one-off invoice, and either id or reference is mandatory in that case
reference of the customer, can only be provided when creating a one-off invoice, and either id or reference is mandatory in that case
Sales tax percentage of a one-off invoice, only allowed when the customer or the billing entity is US-based. When not provided for a US billing entity it defaults to 0, unless a tax calculation integration (e.g. AvaTax) determines the rate. Can be updated while the invoice is OPEN or DRAFT
The part of paid_invoice_amount paid from a BALANCE wallet. Negative on a credit invoice: what was credited to a BALANCE wallet. Absent when nothing was.
The meter property variables a pricing condition of this invoice was billed through, once each; their values are not included.
Can currently only be used for ‘ONE_OFF_CREDIT’ invoices, indicates original invoices that this invoice links to