cURL
curl --request POST \ --url https://api.railsfromthecrypt.com/v1/transfer-requests/{id}/cancel \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "reason": "User requested cancellation" } '
{ "success": true, "message": "Transfer cancelled successfully", "data": { "id": "c17d2777-e604-45e2-b6d5-7743652eadf1", "type": "onramp", "status": "fetching_rates", "source": { "amount": 10000, "currency": "NGN" }, "destination": { "amount": 0, "currency": "USDC" }, "events": [ { "status": "pending", "timestamp": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z" } ], "payments": [], "created_at": "2025-10-10T09:15:21Z", "reference": "TXN-2Z82FVYO6BW22RC7", "rate": { "value": 0, "expires_at": null }, "recipient": { "id": "rec_01J8V9ZP3A7", "type": "crypto", "name": "My USDT Wallet", "details": { "network": "Polygon", "wallet_address": "0xABC123DEF456...", "symbol": "USDT" } }, "payment_instructions": {} } }
API key for authentication
Unique transfer request ID
"c17d2777-e604-45e2-b6d5-7743652eadf1"
Reason for cancellation
"User requested cancellation"
Transfer cancelled successfully
true
"Transfer cancelled successfully"
Show child attributes