Get all refund requests on an invoice
GET /refunds?invoiceId=:invoiceId
Facades MERCHANT
HTTP Request
To get all refund requests for an invoice, pass the Invoice Id with URL parameter
Refund retrievedRefunds = bitpay.GetRefunds(invoice.Id);
Response body fields same as POST /refunds
HTTP Response
[
{
"id":"H9DpXzrNLxSzpKcVKPDqD1",
"invoice":"8g6B3UsQ9QWvjqFrrYBssm",
"status":"canceled",
"amount":1,
"currency":"USD",
"lastRefundNotification":"2021-12-21T14:34:14.695Z",
"refundFee":0.09,
"immediate":false,
"buyerPaysRefundFee":false,
"requestDate":"2021-12-21T14:34:14.000Z"
},
{
"id":"AtgkAGnW9RpAwqWs22mTF8",
"invoice":"8g6B3UsQ9QWvjqFrrYBssm",
"status":"canceled",
"amount":1,
"currency":"USD",
"refundFee":0.09,
"immediate":false,
"buyerPaysRefundFee":false,
"requestDate":"2021-12-21T14:34:21.000Z"
},
{
"id":"TPxL75VtRRuoNexUaNQ8da",
"invoice":"8g6B3UsQ9QWvjqFrrYBssm",
"status":"canceled",
"amount":1,
"currency":"USD",
"refundFee":0.09,
"immediate":false,
"buyerPaysRefundFee":false,
"requestDate":"2021-12-21T14:42:58.000Z"
},
...
]