ApiRefunds
List refunds for a charge
Authorization
OAuth2PasswordBearer AuthorizationBearer <token>
In: header
Query Parameters
charge_id*Charge Id
The charge to list refunds for.
Format
uuidCookie Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/b/v1/refunds?charge_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "refunds": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "charge_id": "cf8b747b-a752-4d0a-9a4d-7d19fc1769f3", "amount_minor": 0, "currency": "string", "status": "string", "method": "string", "rail": "string", "provider_reference": "string", "reason": "string", "failure_reason": "string", "created_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z" } ]}Turn a link on POST
Undo a disable. Does not revive an expired or already-paid link: those describe what happened rather than a switch someone flipped.
Refund a charge POST
Give money back — AC 1 and AC 2. 409 rather than 400 for an over-refund: the request is well formed and would have been accepted against a different state of the charge.