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

Attributes

id
string
required

Unique identifier for the refund.

external_id
string

Unique ID of the refund in your system for linking and idempotency.

type
string
required

Resource type. Value will be “Refund”.

completed_at
ISO8601 timestamp
required

Timestamp when refund posted.

refunded_amount
integer
required

Amount of refund received by customer.

fee
integer

Fee, in cents, charged by payment processor for the refund.

method
enum
required

Payment method. Possible values are: CASH, CHECK, CREDIT_CARD, ACH, STORE_CREDIT, OTHER

processor
string

Processor used to make the payment, if any. Any processor name can be provided and will be tracked. Supported processors (STRIPE, SHOPIFY) will have additional asset balance tracking.

customer
Customer object

Customer object associated with the invoice.

invoice_id
string

Invoice ID this refund was applied to, if applicable. This field does not need to be specified, but if invoice_line_item_id is also specified, it must belong to this invoice.

invoice_line_item_id
string

Invoice line item ID specifying an exact product or service which was refunded.

invoice_payment_id
string

Payment ID this refund was applied to, if applicable.