Live-Mode API Endpoints
Request To Pay
Endpoint: /api/request_to_pay/
Description: Receive money from your customers
Example Request
curl -X POST "https://daraza.net/api/request_to_pay/" \
-H "Authorization: Api-Key [YOUR_API_KEY]" \
-H "Content-Type: application/json" \
-d '{
"method": 1,
"amount": "15000",
"phone": "+2567800000000",
"note": "Checkout"
}'
Remittance
Endpoint: /api/remit/
Description: Send money to your customers
Example Request
curl -X POST "https://daraza.net/api/remit/" \
-H "Authorization: Api-Key [YOUR_API_KEY]" \
-H "Content-Type: application/json" \
-d '{
"method": 1,
"amount": "15000",
"phone": "+2567800000000",
"note": "Checkout"
}'
Check App Wallet Balance
Endpoint: /api/app_wallet/balance/
Description: Retrieves the balance of the app wallet associated with the provided API key.
Example Request
curl -X GET "https://daraza.net/api/app_wallet/balance/" \
-H "Authorization: Api-Key [YOUR_API_KEY]"
Partial Transfer to Business Wallet
Endpoint: /api/app_wallet/transfer/
Description: Transfers a percentage of the app wallet balance to the associated Business (Client) wallet.
Example Request
curl -X POST "https://daraza.net/api/app_wallet/transfer/" \
-H "Authorization: Api-Key [YOUR_API_KEY]" \
-H "Content-Type: application/json" \
-d '{"percentage": 25}'