Report refunds

1. Get refunds

Send an HTTP GET request to the relevant endpoint + /api/reporting/v1/refunds/merchant and include any required query parameters in the request. You can use the same reporting token generated previously.

Refund queries can contain the following terms:

  • id
  • paymentId
  • currency
  • amount
  • status
  • createdAt

Request

curl --request GET \
     --url 'http://app.payvyne.com/api/reporting/v1/refunds/merchant?size=40&query=currency%20%3D%20%E2%80%98GBP%E2%80%99%20AND%20amount%20%3C%201%20AND%20status%20%3D%20%E2%80%98FAILED%E2%80%99' \
     --header 'Accept: application/json'
ParameterValue
size40
querycurrency = ‘GBP’ AND amount < 1.00 AND status = ‘FAILED’
cursorNull

🚧

Be aware

The queries specified in your GET request requires URL encoding.

Response

{
    "elements": [
        {
            "id": "e6e005426b2d43eb",
            "paymentId": "910c40aa1423ff42",
            "amount": "0.40",
            "createdAt": "2022-05-17T15:25:43.361Z",
            "status": "FAILED",
            "initiator": "VYNE_MERCHANT",
            "initiatorId": "da98bd3a4bd2b9c7",
            "accountNumber": "63849203",
            "currency": "GBP",
            "sortCode": "001111",
            "payerId": "cc858257-f778-51ed-9c89-8d28dd30ea1a"
        },
        {
            "id": "d26600a5987f7515",
            "paymentId": "0d7819fed2e2e0de",
            "amount": "0.40",
            "createdAt": "2022-05-17T15:34:11.077Z",
            "status": "FAILED",
            "initiator": "VYNE_MERCHANT",
            "initiatorId": "da98bd3a4bd2b9c7",
            "accountNumber": "63849203",
            "currency": "GBP",
            "sortCode": "001111",
            "payerId": "cc858257-f778-51ed-9c89-8d28dd30ea1a"
        },
        {
            "id": "08373758bb98519c",
            "paymentId": "0d7819fed2e2e0de",
            "amount": "0.10",
            "createdAt": "2022-05-18T10:48:41.571Z",
            "status": "FAILED",
            "initiator": "VYNE_MERCHANT",
            "initiatorId": "da98bd3a4bd2b9c7",
            "accountNumber": "63849203",
            "currency": "GBP",
            "sortCode": "001111",
            "payerId": "cc858257-f778-51ed-9c89-8d28dd30ea1a"
        }
    ],
    "size": 3
}