PAYCI API is organised around REST. Our API has predictable resource-oriented URLs, accepts JSON request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.PAYCI will provide you in a separate way the BASEURL value Your server Ip must be whitelisted in order to use the api
BASEURL/API/auth
PAYCI API requires an API KEY, based on your credentials (email and password). It will be required for all requests on our API.
BODY raw
{
"apikey": "string",
}
BASEURL/API/getbalance
You can check your balance on specific country over this endpoint.
The list of country_key are available on the below chapter.
BODY raw
{
"apikey": "string",
"balance": "country_key"
}
BASEURL/API/getbalance/all
This endpoint allow you to get balance on all our corridors.
You will receive a JSON response
BODY raw
{
"apikey": "string",
}
BASEURL/API/send
To send a transaction, all below index are required.
Our API detects automatically the country destination and the operator, so you should add the country code on the beneficiary number. For example 2250708452057 (country code:225, beneficiary : 0708452057).
BODY raw
{
"apikey": "string",
"id_transaction": "string",
"beneficiary": "string",
"amount": "int",
"callback_url": "string",
"method": "string"
}
BASEURL/API/status
To get the status of a transaction, you should make a POST request with you API key for authentification and the ID of this transaction. You will receive a JSON response.
"id_payin" is the ID of the request transaction
BODY raw
{
"apikey": "string",
"id_transaction": "string"
}
" Authentification réussie "