Refund a credit invoice via the original payments
Refunds the credit invoice’s open amount over the original invoice’s payments: payment service provider payments first, oldest first, then WALLET_BALANCE payments back into their wallet, each partially where the amount runs out. A wallet payment is refunded at once: its amount is returned to the wallet grants it was paid from, and no grant is issued. A provider refund settles the credit invoice once the provider confirms it. Not possible while a refund of the original invoice is in progress, or for a credit invoice that was credited to a wallet in full. Requires the INVOICE.REFUND permission.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Headers
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