cURL
curl --request POST \ --url https://api.toffeepay.com/v1/refunds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "payment_id": "<string>", "reason": "<string>" } '
{ "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