Money Transfer
Endpoints
Money Transfer
Execute a money transfer to any phone number
POST
Money Transfer
Overview
Execute a money transfer from your merchant account to any phone number in supported countries. This endpoint processes the actual transfer and debits your account.Endpoint
Authentication
Your CashQ API Key for authentication
Must be
application/jsonRequest Body
The request body parameters are identical to Check Transfer.Unique numeric identifier for this transfer. Should match the ID used in Check Transfer. Must be numeric only.
Sender’s phone number in E.164 format (e.g.,
"+15615019469")Receiver’s phone number in E.164 format (e.g.,
"+201234567890")Transfer amount in dollars (e.g.,
"5.0" for $5.00)ID of corridor (e.g.,
"1271" for EGP). Payment attributes depend on the corridor and will be provided for the requested corridor upon request.Country code of receiver (e.g.,
"MX" for Mexico, "EG" for Egypt).Currency code for the receiver (e.g.,
"MXN" for Mexican Peso, "EGP" for Egyptian Pound)Array of corridor-specific payment attributes. Required attributes vary by corridor and include receiver details, bank information, address, and identification. Contact support for specific corridor requirements.
Request Example
Response
Indicates if the transfer was initiated successfully
Error message if transfer failed, empty string if successful
Transfer response details
Response Examples
Complete Transfer Flow
Follow this recommended flow for executing transfers:Check balance
Verify you have sufficient funds using Get Balance
Check KYC
Verify receiver’s KYC status using Check KYC
Validate transfer
Call Check Transfer to validate parameters
Monitor status
Use Check Status to monitor transfer completion
Transfer States
After initiating a transfer, monitor its status:| State | Description | Action |
|---|---|---|
| 0 | New | Transfer created, processing starting |
| 40 | Processing | Transfer in progress |
| 60 | Success | Transfer completed successfully |
| 80 | Error | Transfer failed |
| -2 | Not Found | Transfer ID not found |
See the complete Status Codes Reference for all possible states.
Error Responses
| Error Code | Description | Solution |
|---|---|---|
authentication_error | Invalid or missing API key | Verify your API key |
insufficient_funds | Not enough balance | Add funds or reduce amount |
invalid_phone_number | Phone number format incorrect | Use E.164 format without + |
invalid_amount | Amount is invalid | Check amount is positive and formatted correctly |
kyc_not_verified | Receiver KYC limits exceeded | Reduce amount or ask receiver to verify |
duplicate_transfer | Transfer ID already used | Use a unique transfer ID |
internal_server_error | Server error occurred | Retry the request |
Best Practices
Always validate first
Always validate first
Call Check Transfer before executing to catch errors early and check receiver status.
Use unique transfer IDs
Use unique transfer IDs
Generate unique IDs for each transfer. Reusing IDs may cause duplicate transfer errors.
Check balance before transfer
Check balance before transfer
Verify sufficient funds to avoid insufficient balance errors.
Monitor transfer status
Monitor transfer status
Poll the status endpoint to track transfer completion and handle any issues.
Handle payment invitations
Handle payment invitations
Inform users when sending to new receivers about the 6-hour expiration window.
Implement idempotency
Implement idempotency
Store transfer IDs and results to prevent duplicate transfers if requests are retried.
Log all transfers
Log all transfers
Keep detailed logs of all transfer attempts for debugging and reconciliation.
Related Endpoints
Check Transfer
Validate transfer before execution
Check Status
Monitor transfer status after execution
Get Balance
Check available funds before transfer
Check KYC
Verify receiver’s limits before transfer
