API Doc
Créer une facture de paiement

Créer un compte

/api/einvoice/create

Paramètres transmis:

Un exemple: { "payment_id": 123, "currency": "visamaster.usd", "amount": 100.00, "description": "Some payment description", "sender": "4444111144441111", "success_url": "https://test.com/success/123", "fail_url": "https://test.com/fail/123", "status_url": "https://test.com", "extra_fields": {"field_name":"field_value", ...} }

Si l'ordre de paiement est créé avec succès, son numéro de suivi sera renvoyé ; si la commande n'a pas été créée, une erreur avec sa description sera renvoyée.

Exemple de demande réussie: { "tracking": "79DF-60B0-17F6", "payment_id": 2б }

Exemple d'exécution de requête infructueuse: { "error": { "code": 0, "message": "Transaction already exists" } }

Champ Description
payment_id numéro de compte dans le système comptable du magasin
currency monnaie électronique qui devrait être acceptée. Devises disponibles :
, MGA - airtel.mga
, USD CONGO - airtel-congo.usd
, CDF CONGO - airtel-congo.cdf
, XAF CAMEROON - airtel-cameroon.xaf
, XAF CONGO-BRAZZAVILLE - airtel-congo-brazzaville.xaf
, GHS GHANA - airtel-ghana.ghs
, KES KENYA - airtel-kenya.kes
, MWK MALAWI - airtel-malawi.mwk
, RWF RWANDA - airtel-rwanda.rwf
, TZS TANZANIA - airtel-tanzania.tzs
, UGX UGANDA - airtel-uganda.ugx
, ZMW ZAMBIA - airtel-zambia.zmw
, NGN - bank.ngn
, BTC - bitcoin
, BCH - bitcoin_cash
, LINK - link
, ZAR SOUTH-AFRICA - eft-south-africa.zar
, ETH - ethereum
, XOF SENEGAL - expresso-senegal.xof
, XOF SENEGAL - free_money-senegal.xof
, TZS TANZANIA - halotel-tanzania.tzs
, INR - imps.inr
, LTC - litecoin
, XMR - monero
, XOF TOGO - moov-togo.xof
, XOF CI - moov-ci.xof
, XOF BENIN - moov-benin.xof
, XOF MALI - moov-mali.xof
, XOF BURKINA-FASO - moov-burkina-faso.xof
, USD CONGO - mpesa-congo.usd
, CDF CONGO - mpesa-congo.cdf
, KES KENYA - mpesa-kenya.kes
, TZS TANZANIA - mpesa-tanzania.tzs
, XOF TOGO - mtn-togo.xof
, XOF CI - mtn-ci.xof
, XOF BENIN - mtn-benin.xof
, GNF GUINEA - mtn-guinea.gnf
, XAF CAMEROON - mtn-cameroon.xaf
, GHS GHANA - mtn-ghana.ghs
, RWF RWANDA - mtn-rwanda.rwf
, UGX UGANDA - mtn-uganda.ugx
, ZMW ZAMBIA - mtn-zambia.zmw
, MGA - mvola.mga
, NGN - opay.ngn
, MGA - orange_money.mga
, XOF TOGO - orange_money-togo.xof
, XOF CI - orange_money-ci.xof
, XOF SENEGAL - orange_money-senegal.xof
, XOF BURKINA-FASO - orange_money-burkina-faso.xof
, XOF MALI - orange_money-mali.xof
, USD CONGO - orange_money-congo.usd
, CDF CONGO - orange_money-congo.cdf
, GNF GUINEA - orange_money-guinea.gnf
, XAF CAMEROON - orange_money-cameroon.xaf
, RWF RWANDA - orange_money-rwanda.rwf
, SLL SIERRA-LEONE - orange_money-sierra-leone.sll
, NGN - palmpay.ngn
, INR - paytm.inr
, INR - phonepe.inr
, XOF - tmoney.xof
, KES KENYA - tcash-kenya.kes
, USDT ERC20 - usdt_erc20
, USDT TRC20 - usdt_trc20
, GHS GHANA - tigo-ghana.ghs
, TZS TANZANIA - tigo-tanzania.tzs
, MWK MALAWI - tnm-malawi.mwk
, TRX - tron
, INR - upi.inr
, USDC TRC20 - usdc_trc20
, MGA - vanilla_pay.mga
, NGN - verve.ngn
, UAH - visamaster.uah
, USD - visamaster.usd
, EUR - visamaster.eur
, NGN - visamaster.ngn
, XOF - visamaster.xof
, CDF CONGO - vodafone-congo.cdf
, GHS GHANA - vodafone-ghana.ghs
, TZS TANZANIA - vodafone-tanzania.tzs
, XOF SENEGAL - wave-senegal.xof
, XOF CI - wave-ci.xof
, XOF SENEGAL - wiz_all-senegal.xof
, ZMW ZAMBIA - zamtel-zambia.zmw
, NGN - cash_terminal.ngn
amount montant à payer (hors commission système). Les centimes sont séparés par un point
account ID utilisateur dans le système marchand (numéro de compte ou tout autre identifiant unique)
description description du paiement
sender numéro du wallet d'où doit provenir le paiement (Pas d'espaces, de séparateurs...). Paramètre facultatif
success_url URL vers laquelle l'utilisateur sera redirigé en cas de paiement réussi
fail_url URL vers laquelle l'utilisateur sera redirigé en cas d'échec de paiement
status_url URL vers laquelle une requête GET sera envoyée lorsque le compte passera au statut final (paramètre facultatif. S'il est manquant, la requête ne sera pas effectuée)
extra_fields Le champ est utilisé pour transmettre des paramètres supplémentaires requis par les systèmes de tuiles individuels. La liste des champs est disponible dans /api/extrafields/list