Create a Refund Request

Facades: merchant

Body Params
double
required

The amount to be refunded, denominated in the invoice original currency - partial refunds are supported

string
required

The ID of the invoice to refund.

string
required

The API token used when originally creating the invoice.

boolean
Defaults to false

Whether to create the refund request as a preview (which will not be acted on until status is updated) - parameter defaults to false if not passed.

boolean
Defaults to false

Whether funds should be removed from merchant ledger immediately on submission or at time of processing - parameter defaults to false if not passed.

boolean
Defaults to false

Whether the buyer should pay the refund fee rather than the merchant - parameter defaults to false if not passed.

string

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

A variable provided by the merchant and designed to be used by the merchant to correlate the refund with a refund ID in their system.

Headers
string
required
Defaults to application/json

Must be set to application/json for requests to the BitPay API

string
required
Defaults to 2.0.0

Must be set to 2.0.0 for requests to the BitPay API

string
required

The hexadecimal public key generated from the client private key. This header is optional for this endpoint when using the public facade, and required when using a merchant facade token.

string
required

The ECDSA signature of the full request URL concatenated with the request body, signed with your private key. This header is optional for this endpoint when using the public facade, and required when using a merchant facade token.

Response

Language
LoadingLoading…
Response
Choose an example:
application/json