Create a Refund

Facades: merchant

Overview

Creates a new refund request.

Parameters

ParameterDescription
invoiceIdThe BitPay invoice Id having the associated refund to be created.
amountAmount to be refunded in the currency indicated.
previewWhether to create the refund request as a preview (which will not be acted on until status is updated)
immediateWhether funds should be removed from merchant ledger immediately on submission or at time of processing
buyerPaysRefundFeeWhether the buyer should pay the refund fee (default is merchant)
referencePresent only if specified. Used as reference label for the refund.

Max str length = 100

Example

Refund createRefund = bitpay.createRefund("QrPWSMkq594kQfJex28S7X", 1.0, true, false, false);