POST
/
api
/
service
/
refund
/
retrieve
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: 'My API Key',
});

const refund = await client.refunds.retrieve({ id: 'id' });

console.log(refund.id);
{
  "id": "<string>",
  "amount": 1,
  "currency": "EUR",
  "status": "initiated",
  "orderId": "<string>",
  "transactionId": "<string>"
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json

Response

200 - application/json

Returns the refund details.

The response is of type object.