Получение подписки
Метод позволяет получить информацию о подписке
Header parameters
x-api-public-keystringOptional
Публичный API-ключ
x-api-signaturestringOptional
Подпись тела запроса приватным API-ключем
Content-typestringOptionalExample:
Тип тела запроса
application/json
Body
Тело запроса получения данных подписки
idstringRequiredExample:
Идентификатор подписки
acf68fc3-a964-42a2-83b9-55756acdd967
merchantIdstringRequiredExample:
Идентификатор мерчанта
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