Skip to main content
PUT
Update refund

Authorizations

Authorization
string
header
required

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

Headers

Content-Type
string

Content-Type must be set to application/json.

Path Parameters

businessId
string
required

The UUID of the business to update the refund for.

refundId
string
required

The UUID of the refund to update.

Body

application/json

Itemized refund creation parameters. Provides full control over refund allocations and payments. The sum of allocation amounts must equal the refunded_amount.

refunded_amount
integer<int64>
required

The total amount of the refund in cents. This value must be positive and equal to the sum of all allocation amounts.

completed_at
string<date-time>
required

The time the refund was completed.

allocations
object[]
required

The targets of the refund. Each allocation specifies how much of the refund should be applied to a specific invoice, line item, payment, or customer.

payments
object[]
required

The payment methods and amounts used to process the refund.

external_id
string | null

An external identifier for the refund transaction.

tags
object[]

Tags to associate with the 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 payments field is not provided and the system automatically generates a payment based on the method field.

Response

Refund updated successfully.

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.