Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Content-Type must be set to application/json
Path Parameters
The UUID of the business to create a refund for.
Body
Simple refund creation parameters. The system will automatically calculate the refund amount based on the specified target (invoice, line item, or payment). At least one target identifier must be provided.
The time the refund was completed.
The payment method used for the refund.
CASH
, CHECK
, CREDIT_CARD
, ACH
, CREDIT_BALANCE
, OTHER
An external identifier for the refund transaction.
The ID of the invoice to refund.
The external ID of the invoice to refund.
The ID of the invoice line item to refund.
The external ID of the invoice line item to refund.
The ID of the invoice payment to refund.
The external ID of the invoice payment to refund.
The fee charged to the business for processing the refund in cents.
The payment processor used to process the refund.
"STRIPE"
Tags to associate with the refund.
Memo for any text you would like to associate with the refund (for example, to display to end users).
Arbitrary custom metadata in JSON format with a size limit of 10KB
{
"custom_field": "value",
"any valid json": "below 10kb",
"nested": { "meaning of life": 42, "array": [] }
}
Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.
Response
Refund has been successfully updated or unchanged.
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.
Unique identifier for the refund.
Unique ID of the refund in your system for linking purposes. Idempotency key.
"31415926535"
Amount refunded to the customer in cents.
Status of the refund.
"PAID"
Time when the refund was completed.
Whether this refund is dedicated or not. Dedicated refunds can only have one allocation and one payment.
true
Allocations associated with this refund.
Payments associated with this refund.
Payouts associated with this refund.
Memo for any text you would like to associate with the refund (for example, to display to end users).
Arbitrary custom metadata in JSON format with a size limit of 10KB
{
"custom_field": "value",
"any valid json": "below 10kb",
"nested": { "meaning of life": 42, "array": [] }
}
Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.