Documentation
Welcome to EnayaPay Documentation
Welcome to EnayaPay Documentation
FUNCTION | DESCRIPTION |
---|---|
MESSAGE FORMAT | JSON |
REQUEST METHOD | POST |
HEADER PARAMETERS |
|
ID | SERVICE NAME | DESCRIPTION | METHOD TYPE | WEBSERVICE TYPE |
---|---|---|---|---|
1 | TopUp Service | It sends TopUp request to Charging System. This service is provided in REST formats | POST | REST |
REST TopUp Service:
NAME | TYPE | DESCRIPTION |
---|---|---|
TRANSACTION_ID | String | Unique transaction id to distinguish between each transaction. Should contain only numbers with max length of 20 |
PHONE_NUMBER | String | Customer Number. Formatted as: ‘0*********’ |
AMOUNT | Double | The amount to be transferred. |
NAME | TYPE | DESCRIPTION |
---|---|---|
MESSAGE | String | Custom message of transaction |
TRANSACTION_ID | String | The same transaction id sent in the request. |
RECEIPT_NO | Integer | Transaction receipt number. |
PHONE_NUMBER | String | Customer Number. |
Request URL
https://platform.enayatech.com/api/v2.0.0/topup/
{
“phone_number": "0963404723",
"amount":200,
"transaction_id":"1627683920938219"
}
{
Content-Type : application/ json
api-key : DSGFSGSDGFDSHGDFHSFDSFDHSGFG
secret-key : fsfdsgsdgdssdfsdfdsfdsfdsfsdfsdfdsfdsd
}
Status Code: 200
{
"message":"Success",
"transaction_id":"1627683920938219",
"phone_number":"249963404723",
"receipt_no":25121
}
Status Code: 400
{
"error_massage": "amount required"
}
Status Code: 401
{
"error_message": "Invalid Credentials"
}
Status Code: 422
{
"message":"Success",
"transaction_id":"1627683920938219",
"phone_number":"249963404723",
"receipt_no":25121
}
Status Code: 503
{
"error_message": “SERVICE DISABLE”
}