Create a refund

POST https://{{env_url}}/transfer/refund/create

The /transfer/get fetches information about the transfer corresponding to the given transfer_id.

Request Body

{"client_id"=>"{{client_id}}", "secret"=>"{{secret}}", "transfer_id"=>"TRANSFER_ID_GOES_HERE", "amount"=>"12.34", "idempotency_key"=>"VEK2ea3X6LKywsc8J6pg"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"refund":{"id":"667af684-9ee1-4f5f-862a-633ec4c545cc","transfer_id":"460cbe92-2dcc-8eae-5ad6-b37d0ec90fd9","amount":"12.34","status":"pending","created":"2020-08-06T17:27:15Z","failure_reason":null},"request_id":"saKrIBuEB9qJZno"}