Refund requests are full or partial refunds associated to an invoice. Fully paid invoices can be refunded via the merchant's authorization to issue a refund, while underpaid and overpaid invoices are automatically executed by BitPay to issue the underpayment or overpayment amount to the customer.
Resource
Name | Type |
---|---|
id
The ID of the refund.
|
string
|
invoice
The ID of the invoice being refunded.
|
string
|
supportRequest
The ID of the associated support request for the refund.
|
string
|
refundAddress
The wallet address that the refund will return the funds to, added by the customer.
|
string
|
txid
The transaction ID of the refund once executed.
|
string
|
type
The type of refund.
|
string
|
reference
Present only if specified in the request to create the refund. This is your reference label for this refund. It will be passed-through on each response for you to identify the refund in your system. Maximum string length is 100 characters.
|
string
|
status
The refund lifecycle status of the request.
|
string
|
amount
Amount to be refunded in the invoice currency.
|
number
|
transactionCurrency
The currency used for the invoice transaction.
|
string
|
transactionAmount
Amount to be refunded in terms of the transaction currency.
|
number
|
transactionRefundFee
The refund fee expressed in terms of transaction currency.
|
number
|
currency
Reference currency used for the refund, the same as the currency used to create the invoice.
|
string
|
lastRefundNotification
The last time notification of buyer was attempted.
|
date
|
notificationURL
URL to which BitPay sends webhook notifications. HTTPS is mandatory.
|
string
|
refundFee
The amount of refund fee expressed in terms of pricing currency.
|
number
|
immediate
Whether the funds should be removed from merchant ledger immediately on submission or at the time of processing.
|
boolean
|
buyerPaysRefundFee
Whether the buyer should pay the refund fee rather than the merchant - parameter defaults to
false if not passed. |
boolean
|
requestDate
The date the refund was requested.
|
date
|