Consulter le profil marchand
curl --request GET \
--url https://apidjonanko.tech/web-merchant/get-merchant-by-id \
--header 'authenticationtoken: <api-key>'const options = {method: 'GET', headers: {authenticationtoken: '<api-key>'}};
fetch('https://apidjonanko.tech/web-merchant/get-merchant-by-id', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant/get-merchant-by-id"
headers = {"authenticationtoken": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apidjonanko.tech/web-merchant/get-merchant-by-id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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",
"name": "Beauty Shop",
"email": "contact@beautyshop.ci",
"phoneNumber": "+2250700000000",
"reference": "beautyshop",
"description": "<string>",
"successUrl": "<string>",
"failedUrl": "<string>",
"webhookUrl": "https://example.com/webhooks/djonanko",
"apiKey": "DJN-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"balance": "125000.00",
"isActive": true,
"country": "CI",
"createdAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 401,
"message": "Invalid API credentials",
"error": "Unauthorized"
}Compte marchand
Consulter le profil marchand
Renvoie le profil du compte (référence, URLs, clé API publique, solde, statut d’activation).
GET
/
web-merchant
/
get-merchant-by-id
Consulter le profil marchand
curl --request GET \
--url https://apidjonanko.tech/web-merchant/get-merchant-by-id \
--header 'authenticationtoken: <api-key>'const options = {method: 'GET', headers: {authenticationtoken: '<api-key>'}};
fetch('https://apidjonanko.tech/web-merchant/get-merchant-by-id', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apidjonanko.tech/web-merchant/get-merchant-by-id"
headers = {"authenticationtoken": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apidjonanko.tech/web-merchant/get-merchant-by-id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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",
"name": "Beauty Shop",
"email": "contact@beautyshop.ci",
"phoneNumber": "+2250700000000",
"reference": "beautyshop",
"description": "<string>",
"successUrl": "<string>",
"failedUrl": "<string>",
"webhookUrl": "https://example.com/webhooks/djonanko",
"apiKey": "DJN-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"balance": "125000.00",
"isActive": true,
"country": "CI",
"createdAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 401,
"message": "Invalid API credentials",
"error": "Unauthorized"
}Authorizations
JWT obtenu via POST /user/login-merchant. À passer tel quel, sans préfixe Bearer.
Query Parameters
merchant_id renvoyé à la connexion.
Response
Profil marchand.
Example:
"Beauty Shop"
Example:
"contact@beautyshop.ci"
Example:
"+2250700000000"
Example:
"beautyshop"
Example:
"https://example.com/webhooks/djonanko"
Example:
"DJN-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Solde disponible en FCFA (renvoyé sous forme de chaîne décimale).
Example:
"125000.00"
Example:
"CI"
