Skip to main content
POST
Create dedicated refund on invoice

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business.

invoiceId
string<uuid>
required

The UUID of the invoice to refund.

Body

application/json
external_id
string

Unique ID of the refund in your system for linking purposes. Idempotency key.

Example:

"31415926535"

account_identifier
Account ID · object

Optional account identifier to override what ledger account the dedicated refund comes out of.

line_items
object[] | null

Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.

completed_at
string<date-time>

When the dedicated refund was given and paid.

refund_processing_fee
integer<int64>

Fee charged to the business for processing the refund.

method
enum<string>
Available options:
CASH,
CHECK,
CREDIT_CARD,
ACH,
CREDIT_BALANCE,
OTHER
processor
string | null
refunded_payment_fees
object[]

List of fees associated with the payment for this dedicated refund. These are refunded from the payment processor rather than the business.

tags
object[]

List of tags associated with this dedicated refund.

memo
string | null

Memo for any text you would like to associate with the refund (for example, to display to end users).

metadata
object | null

Arbitrary custom metadata in JSON format with a size limit of 1KB.

Example:
reference_number
string | null

Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.

payment_clearing_account_identifier
Account ID · object

Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.

Response

Refund already exists (idempotent).

data
object
required

A refund represents a transaction that returns value to from a business to a customer. A specific payment can be refunded or a general refund can be applied to an invoice.