curl --request POST \
--url https://api.zerocash.tech/api/b2b/fiat/deposit/momo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 300,
"currency": "KES",
"externalAccountId": "JRezblOHQcUnVBWD5SMW",
"externalReference": "test1232fdf"
}
'
{
"success": true,
"message": "Initiated request.",
"transactionId": "123456789"
}{
"success": false,
"message": "External reference already used.",
"errorCode": "E-API-D.S-28"
}Charges
Mobile Money Charge
Initiates a mobile money charge request for transactions.
POST
/
api
/
b2b
/
fiat
/
deposit
/
momo
curl --request POST \
--url https://api.zerocash.tech/api/b2b/fiat/deposit/momo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 300,
"currency": "KES",
"externalAccountId": "JRezblOHQcUnVBWD5SMW",
"externalReference": "test1232fdf"
}
'
{
"success": true,
"message": "Initiated request.",
"transactionId": "123456789"
}{
"success": false,
"message": "External reference already used.",
"errorCode": "E-API-D.S-28"
}Authorizations
Body
application/json
Some currencies require operator specification. This can be retrieved from the mobile money operators list found under here: https://docs.zerocash.tech/docs/mobile-money-operators