API Documentation
Business
- Account
- Disburse
- Payment
Cards
Transactions
Miscellaneous
Transactions
Wallet to card transfer
POST
/
transactions
/
create
/
wallet-to-card
curl --request POST \
--url https://api.sandbox.saalal.com/v1/transactions/create/wallet-to-card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 2000,
"card_reference": "6516484d-0059-4f53-b2cf-31f3ae884d3a",
"reference": "b60f54d5b1-922a-40ty6a-8417-fasjhdfdfdi231i",
"phone": "XXXXXXXXX",
"network": "XXXXXXX"
}'
{
"message": "OK",
"statusCode": 200,
"data": {
"transaction": {
"slug": "e1d30877-0353-45b3-82fb-92780238ecb4",
"card_reference": "9c54515e-7890-44f9-8cc2-a85b80322b98",
"reference": "b60f55b1-922a-406a-8417-g54atb0849ttb22c",
"status": "pending",
"kind": "card_to_wallet",
"merchant": false,
"amount": 2000,
"phone": "XXXXXXXX",
"network": "XXXXXXXX",
"created_at": "2023-06-22T10:40:17.000000Z"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Body
application/json
Response
200
application/json
OK
The response is of type object
.
curl --request POST \
--url https://api.sandbox.saalal.com/v1/transactions/create/wallet-to-card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 2000,
"card_reference": "6516484d-0059-4f53-b2cf-31f3ae884d3a",
"reference": "b60f54d5b1-922a-40ty6a-8417-fasjhdfdfdi231i",
"phone": "XXXXXXXXX",
"network": "XXXXXXX"
}'
{
"message": "OK",
"statusCode": 200,
"data": {
"transaction": {
"slug": "e1d30877-0353-45b3-82fb-92780238ecb4",
"card_reference": "9c54515e-7890-44f9-8cc2-a85b80322b98",
"reference": "b60f55b1-922a-406a-8417-g54atb0849ttb22c",
"status": "pending",
"kind": "card_to_wallet",
"merchant": false,
"amount": 2000,
"phone": "XXXXXXXX",
"network": "XXXXXXXX",
"created_at": "2023-06-22T10:40:17.000000Z"
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.