Returns a list of refunds.
OK
When you don't have the right permissions to list refunds.
curl -i -X GET \ https://api.tyro.com/connect/pay/refunds \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json'
{- "refunds": [
- {
- "id": "2d448ac1-862a-4c7b-bdb4-a3b7cdbf6143",
- "payRequestId": "0f448ac1-862a-4c7b-bdb4-a3b7cdbf6149",
- "total": {
- "amount": 12520,
- "currency": "AUD"
}, - "status": "SUCCESS",
- "createdAt": "2022-11-23T22:39:54.931Z",
- "updatedAt": "2022-11-23T22:40:48.237Z"
}
]
}