Skip to main content

SDKs and Examples

cURL Example

curl -X POST https://your-domain.com/api/deposit \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d
'{
"amount": 1000,
"currency": "XAF",
"paymentMethod": "mobile_money",
"phoneNumber": "+237123456789",
"operator": "MTN",
"country": "CM"
}'

JavaScript Example

const response = await fetch('https://your-domain.com/api/deposit', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 1000,
currency: 'XAF',
paymentMethod: 'mobile_money',
phoneNumber: '+237123456789',
operator: 'MTN',
country: 'CM'
})
});

const data = await response.json();
console.log(data);