Примеры запросов
Создание счета
Метод: POST
URL: /payment/create
Заголовки:
X-API-Key: {CLIENT_API_KEY}
Тело запроса:
{
"detail": "Комментарий к платежу",
"amount": 1000,
"return_url": "http://google.com"
}
Ответ:
{
"id": "302022df-c949-4edb-9488-d8eac0e83a22",
"merchant": {
"name": "Лавка Админа",
"resource": "tg://resolve?domain=your_shop_bot",
"description": "описание магазина"
},
"bill": null,
"status": {
"id": "ACTIVE",
"name": "Активный",
"description": "Счет действительный"
},
"amount": "1000.00",
"detail": "Комментарий к платежу",
"created": "2024-02-28T23:48:45.925481+03:00",
"expiration_at": "2024-02-29T00:48:45.925481+03:00",
"return_url": "http://google.com",
"url": "https://epays.ac/payment/302022df-c949-4edb-9488-d8eac0e83a22"
}