curl --request POST \
--url https://apidjonanko.tech/web-merchant/request-disbursement \
--header 'Content-Type: application/json' \
--header 'authenticationtoken: <api-key>' \
--data '
{
"reference": "beautyshop",
"amount": 50000
}
'const options = {
method: 'POST',
headers: {authenticationtoken: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reference: 'beautyshop', amount: 50000})
};
fetch('https://apidjonanko.tech/web-merchant/request-disbursement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant/request-disbursement"
payload = {
"reference": "beautyshop",
"amount": 50000
}
headers = {
"authenticationtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apidjonanko.tech/web-merchant/request-disbursement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reference' => 'beautyshop',
'amount' => 50000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authenticationtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "beautyshop",
"amount": 50000,
"destination": "+2250700000000",
"country": "CI",
"operator": "wave",
"status": "PENDING",
"payoutAccountId": "<string>",
"payoutDetails": {},
"failureReason": "<string>",
"processedManually": true,
"validatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"merchantName": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Demander un reversement
Crée une demande de reversement de votre solde vers votre compte principal de reversement.
Montant minimum : 500 FCFA. La demande passe en PENDING jusqu’à validation par Djonanko.
Si aucun compte principal n’est enregistré, vous devez fournir destination et operator.
curl --request POST \
--url https://apidjonanko.tech/web-merchant/request-disbursement \
--header 'Content-Type: application/json' \
--header 'authenticationtoken: <api-key>' \
--data '
{
"reference": "beautyshop",
"amount": 50000
}
'const options = {
method: 'POST',
headers: {authenticationtoken: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reference: 'beautyshop', amount: 50000})
};
fetch('https://apidjonanko.tech/web-merchant/request-disbursement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant/request-disbursement"
payload = {
"reference": "beautyshop",
"amount": 50000
}
headers = {
"authenticationtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apidjonanko.tech/web-merchant/request-disbursement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reference' => 'beautyshop',
'amount' => 50000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authenticationtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "beautyshop",
"amount": 50000,
"destination": "+2250700000000",
"country": "CI",
"operator": "wave",
"status": "PENDING",
"payoutAccountId": "<string>",
"payoutDetails": {},
"failureReason": "<string>",
"processedManually": true,
"validatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"merchantName": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Authorizations
JWT obtenu via POST /user/login-merchant. À passer tel quel, sans préfixe Bearer.
Body
Référence du marchand.
"beautyshop"
Montant en FCFA (≥ 500 et ≤ solde disponible).
x >= 50050000
Numéro cible. Ignoré si un compte principal existe.
"+2250700000000"
"CI"
orange, moov, mtn ou wave. Ignoré si un compte principal existe.
"wave"
Response
Demande créée.
Référence du marchand.
"beautyshop"
50000
Numéro mobile money ou numéro de compte bancaire cible.
"+2250700000000"
"CI"
Type du compte cible (orange, moov, mtn, wave, bank).
"wave"
PENDING— demande créée, en attente de validation par Djonanko.PROCESSING— validée, transfert lancé chez l'opérateur.SUCCESS— fonds reçus sur le compte de reversement.FAILED— transfert échoué (voirfailureReason).
PENDING, PROCESSING, SUCCESS, FAILED Instantané du compte de reversement au moment de la demande.
