Create invoice refund

post
Get Cakes

https://sandbox.cryptopay.me/api/v2/invoices/:invoice_uuid/refunds
Request
Response
Headers
Content-Type
required
string
application/json
x-api-key
required
string
Your API key
Query Parameters
invoice_uuid
required
string
Invoice UUID
btc_address
optional
string
Customer's BTC address
to_merchant
optional
string
Creating the refund to a merchant's BTC account
force_commit
optional
boolean
Whether the refund should be committed upon creation
201: Created
{
"id": "f78825cc-95c6-4c9b-b4bc-4394f5febd54",
"amount": 20.05,
"btc_address": "2NBMLRikKuoXch4YbC5kz9YAxXq9WmT1Dck",
"status": "processing",
"error_message": null,
"refund_account": "c1232fd8-d703-4cc5-94e4-51478d6901b0",
"created_at": "2017-02-06T09:34:17.321+00:00",
"updated_at": "2017-02-06T09:34:17.321+00:00"
}

Invoice refunds are initialized with the processing status by default. Invoices with the status of confirmed_paid_timeout are refunded with the initially invoiced amount. In case of refunding to customer's BTC wallet note: amount of the refund must be greater than 0.001 BTC.