API Référence
Cette documentation vous guidera avec toutes les informations de base dont vous avez besoin pour mieux comprendre nos technologies.
Cette référence API présente les endpoints disponibles et comment intéragir avec notre serveur. Vous pouvez intéragir avec notre API en envoyant les requêtes sécurisées via HTTPS et au format JSON pour obtenir certaines informations depuis Fyatu. Généralement un object JSON avec quelques détails obligatoires sera retourné comme réponse à votre requête.
Si vous avez une suggestion ou un souci avec notre API, veuillez ouvrir une ISSUE sur Github.
Access Token
Vous devez générer un Token de sécurité pour effectuer des requêtes vers notre serveur. Pour générer un Token d'accès, vous aurez besoin de votre api_key
et api_secret
que vous pouvez trouver dans les paramètres de votre compte FYATU.
Paramètres | Description | Example |
---|---|---|
api_key | Votre clé API pour développeur dans le système FYATU | KEY1234567890 |
api_secret | Votre clé secret pour développeur dans le système FYATU | SEC1234567890 |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Créer une Carte
Cette section décrit comment envoyer la requête pour créer une nouvelle carte virtuelle dans Fyatu à partir de votre application.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
name obligatoire string |
Ceci est le nom qui sera affiché sur la carte. |
amount obligatoire int32 |
Le montant à recharger dans la carte lors de la création (dépôt initial). Les décimaux ne sont pas autorisés. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Détails de la Carte
Dans cette section vous verrez comment envoyer la requête pour obtenir les détails d'une carte virtuelle. Pour obtenir les informations d'une carte, celle-ci doit être liée à l'application qui envoie la requête aux serveurs de Fyatu.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
id obligatoire string |
Ceci est l'ID de la carte que vous souhaitez obtenir les détails. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Recharge de la Carte
Cette section décrit comment envoyer la requête pour créer une nouvelle carte virtuelle dans Fyatu à partir de votre application.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
name obligatoire string |
Ceci est le nom qui sera affiché sur la carte. |
amount obligatoire int32 |
Le montant à recharger dans la carte lors de la création (dépôt initial). Les décimaux ne sont pas autorisés. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Retirer depuis la Carte
Cette section décrit comment envoyer la requête pour créer une nouvelle carte virtuelle dans Fyatu à partir de votre application.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
name obligatoire string |
Ceci est le nom qui sera affiché sur la carte. |
amount obligatoire int32 |
Le montant à recharger dans la carte lors de la création (dépôt initial). Les décimaux ne sont pas autorisés. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Transactions de la Carte
Cette section décrit comment envoyer la requête pour créer une nouvelle carte virtuelle dans Fyatu à partir de votre application.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
name obligatoire string |
Ceci est le nom qui sera affiché sur la carte. |
amount obligatoire int32 |
Le montant à recharger dans la carte lors de la création (dépôt initial). Les décimaux ne sont pas autorisés. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Bloquer la Carte
Cette section décrit comment envoyer la requête pour créer une nouvelle carte virtuelle dans Fyatu à partir de votre application.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
name obligatoire string |
Ceci est le nom qui sera affiché sur la carte. |
amount obligatoire int32 |
Le montant à recharger dans la carte lors de la création (dépôt initial). Les décimaux ne sont pas autorisés. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Débloquer la Carte
Cette section décrit comment envoyer la requête pour créer une nouvelle carte virtuelle dans Fyatu à partir de votre application.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
name obligatoire string |
Ceci est le nom qui sera affiché sur la carte. |
amount obligatoire int32 |
Le montant à recharger dans la carte lors de la création (dépôt initial). Les décimaux ne sont pas autorisés. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}
Supprimer la Carte
Cette section décrit comment envoyer la requête pour créer une nouvelle carte virtuelle dans Fyatu à partir de votre application.
Paramètres
Nom | Description |
---|---|
encryption obligatoire string |
Passez ici l'encryption de votre Application Marchand précédemment créée dans Fyatu. |
name obligatoire string |
Ceci est le nom qui sera affiché sur la carte. |
amount obligatoire int32 |
Le montant à recharger dans la carte lors de la création (dépôt initial). Les décimaux ne sont pas autorisés. |
Vous devez toujours envoyer la requête avec l'entête 'Content-Type: application/json' et via le protocole sécurisé HTTPS.
Endpoint
POST https://api.fyatu.com/oauth/token
Exemple de la Requête
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fyatu.com/oauth/token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"api_key" : "API_KEY",
"api_secret" : "API_SECRET"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Exemple de la Réponse
{
"email": "[email protected]",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InNpdGVmZWxqb3JAZ21haWwuY29tIiwiaXNzIjoiaHR0cHM6XC9cL3BsYXlzdG9yZS5kZXYiLCJhdWQiOiJodHRwczpcL1wvcGxheXN0b3JlLmRldlwvIiwiaWF0IjoxNjIyOTk2MTA1LCJuYmYiOjE2MjI5OTYxMTUsImV4cCI6MTYyMjk5OTcwNX0.IiSxMJR2u4va36W1W06W3UDN-o0VhU3Oc6rjOhzsBZc",
"expiration": 1622996165
}