Créer un compte marchand
curl --request POST \
--url https://apidjonanko.tech/web-merchant \
--header 'Content-Type: application/json' \
--data '
{
"name": "Beauty Shop",
"reference": "beautyshop",
"email": "contact@beautyshop.ci",
"phoneNumber": "+2250700000000",
"country": "CI"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Beauty Shop',
reference: 'beautyshop',
email: 'contact@beautyshop.ci',
phoneNumber: '+2250700000000',
country: 'CI'
})
};
fetch('https://apidjonanko.tech/web-merchant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant"
payload = {
"name": "Beauty Shop",
"reference": "beautyshop",
"email": "contact@beautyshop.ci",
"phoneNumber": "+2250700000000",
"country": "CI"
}
headers = {"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",
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([
'name' => 'Beauty Shop',
'reference' => 'beautyshop',
'email' => 'contact@beautyshop.ci',
'phoneNumber' => '+2250700000000',
'country' => 'CI'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"name": "Beauty Shop"
}{
"statusCode": 401,
"message": "Invalid API credentials",
"error": "Unauthorized"
}Compte marchand
Créer un compte marchand
Crée un compte marchand. Les identifiants (clé API, secret API, référence, identifiant et mot de passe du dashboard) sont envoyés par SMS au numéro fourni. Le compte doit ensuite être activé par Djonanko avant de pouvoir encaisser.
POST
/
web-merchant
Créer un compte marchand
curl --request POST \
--url https://apidjonanko.tech/web-merchant \
--header 'Content-Type: application/json' \
--data '
{
"name": "Beauty Shop",
"reference": "beautyshop",
"email": "contact@beautyshop.ci",
"phoneNumber": "+2250700000000",
"country": "CI"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Beauty Shop',
reference: 'beautyshop',
email: 'contact@beautyshop.ci',
phoneNumber: '+2250700000000',
country: 'CI'
})
};
fetch('https://apidjonanko.tech/web-merchant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant"
payload = {
"name": "Beauty Shop",
"reference": "beautyshop",
"email": "contact@beautyshop.ci",
"phoneNumber": "+2250700000000",
"country": "CI"
}
headers = {"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",
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([
'name' => 'Beauty Shop',
'reference' => 'beautyshop',
'email' => 'contact@beautyshop.ci',
'phoneNumber' => '+2250700000000',
'country' => 'CI'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"name": "Beauty Shop"
}{
"statusCode": 401,
"message": "Invalid API credentials",
"error": "Unauthorized"
}Body
application/json
Nom de l'entreprise (unique).
Example:
"Beauty Shop"
Référence unique, un seul mot (lettres, chiffres, _).
Example:
"beautyshop"
Example:
"contact@beautyshop.ci"
Numéro qui recevra les identifiants par SMS.
Example:
"+2250700000000"
Available options:
CI, BF, ML, CM Example:
"CI"
Example:
"Boutique de cosmétiques en ligne"
Example:
"https://example.com/webhooks/djonanko"
Response
Compte créé, identifiants envoyés par SMS.
Example:
"Beauty Shop"
