Request URL
POST https://app.sms.by/api/v1/createBill
Parameters
| Parameter |
Location |
Type |
Required |
Description |
| token |
formData |
string |
Yes |
Your API key |
| amount |
formData |
integer |
Yes |
Balance replenishment amount |
| amount_type |
formData |
string |
Yes |
Balance type. Can be sms or viber |
| type |
formData |
string |
No |
Balance top-up type (mandatory for Viber balance). Can be 'subscription' or 'replenishment' |
Responses
200 — Completed successfully
{
"status": "success",
"data": {
"user_id": 2,
"amount": "500",
"d_create": "1616510192",
"d_payment": 0,
"manager_id": 0,
"info": 0,
"type": "sms",
"rent": 0,
"comment": "Top up your SMS account with 500 rubles.",
"id": 3294,
"number": "C13294\/20210323"
}
}
400 — Incorrect request
421 — The data has been verified
429 — Request limit exceeded
500 — Server is not available