cURL
curl --request GET \ --url https://api.toffeepay.com/v1/refunds/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "payment_id": "<string>", "status": "pending", "created_at": "2023-11-07T05:31:56Z", "reason": "<string>", "succeeded_at": "2023-11-07T05:31:56Z", "failed_at": "2023-11-07T05:31:56Z", "cancelled_at": "2023-11-07T05:31:56Z", "error": { "code": "<string>", "message": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Success
pending
succeeded
failed
cancelled
Error handling
Show child attributes