Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Создание подписки

Метод позволяет подключить подписку

Создание подписки

post
Header parameters
x-api-public-keystringOptional

Публичный API-ключ

x-api-signaturestringOptional

Подпись тела запроса приватным API-ключем

Content-typestringOptional

Тип тела запроса

Example: application/json
Body

Тело запроса создания подписки

merchantIdstringRequired

Идентификатор мерчанта в системе

Example: 6c3428c6-c8b8-444f-9ab0-78c864df1719
billingLinkIdstringRequired

Идентификатор платежной связки (с привязанного адреса будут списываться монеты)

Example: 8a19100c-e2ec-46ba-932f-682d2df79d8b
titlestringRequired

Имя подписки

Example: Premium
descriptionstringOptional

Описание подписки

Example: Premium subscription. With premium subscription u can use premium functions
spendIntervalintegerRequired

Период списаний в минутах. Для удобства можно указывать: -1 - ежедневное списание; -2 - еженедельное списание; -3 - ежемесячное списание;

Example: -1
currencystringRequired

Валюта списания. Можно указать фиатную валюту или любую другую, сумма будет автоматически пересчтана в валюту платежной связки

Example: USD
amountstringRequired

Сумма списания в указанной валюте

Example: 7.99
webhookUrlstringOptional

URL для уведомления о списаниях по подписке

Example: https://merchant.domain/webhooks/subscription
Responses
200Success
application/json

Успешный ответ

successbooleanRequired

Признак успешности запроса

post/api-gateway/recurrents/create-subscription
POST /api-gateway/recurrents/create-subscription HTTP/1.1
Host: app.apollopayment.io
Content-Type: application/json
Accept: */*
Content-Length: 333

{
  "merchantId": "6c3428c6-c8b8-444f-9ab0-78c864df1719",
  "billingLinkId": "8a19100c-e2ec-46ba-932f-682d2df79d8b",
  "title": "Premium",
  "description": "Premium subscription. With premium subscription u can use premium functions",
  "spendInterval": "-1",
  "currency": "USD",
  "amount": "7.99",
  "webhookUrl": "https://merchant.domain/webhooks/subscription"
}
200Success
{
  "success": true,
  "response": {
    "id": "7544e48d-b6cb-4cba-a59f-c5ff0f0f354d",
    "merchantId": "6c3428c6-c8b8-444f-9ab0-78c864df1719",
    "billingLinkId": "8a19100c-e2ec-46ba-932f-682d2df79d8b",
    "title": "Premium",
    "description": "Premium subscription. With premium subscription u can use premium functions",
    "spendInterval": "-1",
    "status": "PENDING",
    "message": null,
    "currency": "USD",
    "amount": "7.99",
    "webhookUrl": "https://merchant.domain/webhooks/subscription",
    "createdAt": "2026-01-29T11:16:59.960Z",
    "updatedAt": "2026-01-29T11:16:59.960Z"
  }
}

Last updated