NAV

Info

Welcome to the generated API reference. Get Postman Collection

Deposits

Депозиты по мерчанту

Deposit show

Показать вывод

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/deposits/show/1" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"api_key":"facere","sign":"velit"}'

Example response (200):

{
    "status": "success",
    "data": []
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

HTTP Request

POST api/merchant/deposits/show/{deposit}

URL Parameters

Parameter Status Description
deposit_id optional Ид вывода

Body Parameters

Parameter Type Status Description
api_key string required Ключ мерчанта
sign string required Подпись запроса

Get deposits

Возвращает список всех депозитов с выбором по валюты и адресу кошелька

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/deposits/list" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"currency":"laborum","wallet":"accusamus","api_key":"voluptas","sign":"fugiat"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/deposits/list

Body Parameters

Parameter Type Status Description
currency string optional Валюта из списка BTC,ETH,LTC,USDT
wallet string optional Адрес кошелька
api_key string required Ключ мерчанта Example:
sign string required Подпись запроса

Get total deposits

Возвращает сумму пополнений по мерчанту

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/deposits/total" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"wallet":"vel","api_key":"alias","sign":"quo"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (404):

{
    "status": "error",
    "message": "Wallet: Not found"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/deposits/total

Body Parameters

Parameter Type Status Description
wallet string optional Адрес кошелька
api_key string required Ключ мерчанта
sign string required Подпись запроса

Invoice

Инвойсы по мерчанту

Show invoice

Получить инвойс по ИД


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/invoices/show/atque" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"api_key":"iste","sign":"repellendus"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/invoices/show/{invoice}

URL Parameters

Parameter Status Description
invoice optional ид инвойса

Body Parameters

Parameter Type Status Description
api_key string required Ключ мерчанта
sign string required Подпись запроса

Invoices list

Список инвойсов по мерчанту


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/invoices/list" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"api_key":"ipsum","sign":"inventore"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/invoices/list

Body Parameters

Parameter Type Status Description
api_key string required Ключ мерчанта
sign string required Подпись запроса

Create Invoice

Создать инвойс


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/invoices/create" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"currency":"eveniet","amount":"minima","desc":"minus","redirect_to":"quo","api_key":"est","sign":"fuga"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/invoices/create

Body Parameters

Parameter Type Status Description
currency string required Валюта Инвойса 'BTC','LTC','USDT','ETH','ALL'
amount numeric required Сумма в валюте 'BTC','LTC','USDT','ETH' или сума в USD для 'ALL'
desc string optional Описание
redirect_to url optional Ссылка для возврата на сайт мерчанта
api_key string required Ключ мерчанта
sign string required Подпись запроса

Merchant

Данные мерчанта

Get merchant


Requires authentication

Example request:

curl -X GET \
    -G "https://api.aenpay.com/api/merchant/get" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"api_key":"quia","sign":"sed"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/get

Body Parameters

Parameter Type Status Description
api_key string required Ключ мерчанта
sign string required Подпись запроса

Update merchant

Обновление мерчанта


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/update" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"name":"officia","site_url":"magnam","callback_type":"quidem","callback_url":"perspiciatis","btc_resend_to":"ut","ltc_resend_to":"perferendis","eth_resend_to":"aut","usdt_resend_to":"est","api_key":"quo","sign":"nobis"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/update

Body Parameters

Parameter Type Status Description
name string optional Название мерчанта,
site_url string optional Ссылка на сайт, null для удаления
callback_type string optional Метод колбека GET,POST
callback_url string optional Урл по которому нужно делать калбек, null для отключения
btc_resend_to string optional Адрес для автопересылки BTC, null для отключения
ltc_resend_to string optional Адрес для автопересылки LTC, null для отключения
eth_resend_to string optional Адрес для автопересылки ETH, null для отключения
usdt_resend_to string optional Адрес для автопересылки USDT, null для отключения
api_key string required Ключ мерчанта
sign string required Подпись запроса

Wallet

Кошельки мерчанта

List wallet

Возвращает список адресов мерчанта


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/wallets/list" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"currency":"veritatis","api_key":"voluptates","sign":"ex"}'

Example response (200):

{
    "status": "success",
    "data": ""
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (404):

{
    "status": "error",
    "message": "Wallet: Not found"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/wallets/list

Body Parameters

Parameter Type Status Description
currency string optional Валюта BTC,ETH,LTC,USDT
api_key string required Ключ мерчанта
sign string required Подпись запроса

Get new permanent address

Генерирует новый постоянный адрес для депозитов, колбеки идут на основной url если указан


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/wallets/create" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"currency":"rem","api_key":"libero","sign":"ut"}'

Example response (200):

{
    "status": "success",
    "data": "address"
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (404):

{
    "status": "error",
    "message": "Wallet: Not found"
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/wallets/create

Body Parameters

Parameter Type Status Description
currency string required Валюта из списка BTC,ETH,LTC,USDT
api_key string required Ключ мерчанта
sign string required Подпись запроса

Withdraw

Выводы по мерчанту

Withdraw show

Показать вывод


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/withdraws/show/1" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"api_key":"quos","sign":"qui"}'

Example response (200):

{
    "status": "success",
    "data": null
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/withdraws/show/{withdraw}

URL Parameters

Parameter Status Description
withdraw_id optional Ид вывода

Body Parameters

Parameter Type Status Description
api_key string required Ключ мерчанта
sign string required Подпись запроса

Withdraws list

Список выводов


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/withdraws/list" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"currency":"blanditiis","wallet":"harum","api_key":"omnis","sign":"quia"}'

Example response (200):

{
    "status": "success",
    "data": []
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

Example response (422):

{
    "message": "The given data was invalid.",
    "errors": {
        "field name": [
            "Error description"
        ]
    }
}

HTTP Request

POST api/merchant/withdraws/list

Body Parameters

Parameter Type Status Description
currency string optional Валюта из списка BTC,ETH,LTC,USDT
wallet string optional Адрес кошелька
api_key string required Ключ мерчанта
sign string required Подпись запроса

Get total withdraws

Возвращает сумму выводов по мерчанту


Requires authentication

Example request:

curl -X POST \
    "https://api.aenpay.com/api/merchant/withdraws/total" \
    -H "content-api-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"api_key":"et","sign":"ipsa"}'

Example response (200):

{
    "status": "success",
    "data": []
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad api_key"
    }
}

Example response (400):

{
    "message": "Bad Request",
    "errors": {
        "sign": "Bad sign"
    }
}

HTTP Request

POST api/merchant/withdraws/total

Body Parameters

Parameter Type Status Description
api_key string required Ключ мерчанта
sign string required Подпись запроса