Credit a credit invoice to a BALANCE wallet
Credits the open amount of a FINAL CREDIT invoice to a BALANCE wallet of its customer, in its currency, instead of refunding it: a WALLET_BALANCE payment of minus the credited amount, with the wallet, is recorded on the credit invoice, which leaves it PAID with nothing open and its prepaid_invoice_amount negative; the payment’s DEFAULT wallet grant, whose origin is the credit invoice, puts the money into the wallet. The payment is listed by GET /invoices/{id}/payments and cannot be refunded or reversed. When the wallet type settles STANDARD invoices automatically, the wallet then pays the unpaid original first. Only money the card did not pay can be credited: the original’s open amount plus what the wallet paid on it, minus what its other credit notes credited; there is no partial credit. Answers 409 with reason INVALID_STATE when the credit invoice cannot be credited: invalid_state.status is its status (not FINAL), its type (not CREDIT, ONE_OFF_CREDIT included), PAID when it was refunded or credited already, REFUND_PENDING while a refund of the original invoice is in progress, WALLET_NOT_ACTIVE for a wallet that is DRAFT, INACTIVE or ARCHIVED, or NOTHING_CREDITABLE. Requires the INVOICE.REFUND 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 credit: a wallet of the credit invoice’s customer, in the credit 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