Получение подписки

Метод позволяет получить информацию о подписке

Получение подписки

post
Header parameters
x-api-public-keystringOptional

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

x-api-signaturestringOptional

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

Content-typestringOptional

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

Example: application/json
Body

Тело запроса получения данных подписки

idstringRequired

Идентификатор подписки

Example: acf68fc3-a964-42a2-83b9-55756acdd967
merchantIdstringRequired

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

Example: 86f1f78d-77c6-4bb1-b67c-8389218ce646
Responses
200Success
application/json
post
POST /api-gateway/recurrents/get-subscription HTTP/1.1
Host: app.apollopayment.io
Content-Type: application/json
Accept: */*
Content-Length: 97

{
  "id": "acf68fc3-a964-42a2-83b9-55756acdd967",
  "merchantId": "86f1f78d-77c6-4bb1-b67c-8389218ce646"
}
200Success
{
  "success": true,
  "response": {
    "id": "acf68fc3-a964-42a2-83b9-55756acdd967",
    "merchantId": "86f1f78d-77c6-4bb1-b67c-8389218ce646",
    "billingLinkId": "9b0838e7-54ca-4da7-9634-d497a47f9381",
    "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": "2025-06-09T13:18:29.435Z",
    "updatedAt": "2025-06-09T13:18:29.435Z"
  }
}

Last updated