API · Subscriptions
Create subscription
XML 2.9 onlyPOST
SubscriptionCreatorDescription
Создание подписки
Request and response
Examples come from OpenAPI and are read-only here. Run requests in the Sandbox section.
POST
https://subs.digitalspb.com/Http/Services/CreateSubscription.aspxPRODUCTIONThis step is currently described in XML 2.9 only.
curl -X POST "https://subs.digitalspb.com/Http/Services/CreateSubscription.aspx" \ -H "Content-Type: text/xml" \ -d '<?xml version="1.0" encoding="utf-8"?><Request> <SubscriptionProjectID>2001</SubscriptionProjectID> <Subscriber_MSISDN>79600000000</Subscriber_MSISDN> <Now>YOUR_TIMESTAMP</Now> <Signature>YOUR_SIGNATURE</Signature></Request>'Read-only example. Runnable examples are available in the Sandbox section.
200
<Response> <StatusName>REQUEST_ACCEPTED</StatusName> <SubscriptionID>1000000001</SubscriptionID> <SubscriberAcceptanceRequired>true</SubscriberAcceptanceRequired> <SubscriberAcceptanceChannel>SMS_PIN</SubscriberAcceptanceChannel> <OperatorID>22</OperatorID> <PaidUntil>2026-09-21T12:00:00Z</PaidUntil></Response>XML 2.9 request fields
SubscriptionCreator| Request fields | Type | Req. | Description |
|---|---|---|---|
Now | string | required | |
Signature | string | required | |
SubscriptionProjectID | integer (int32) | required | |
MerchantSubsID | string | optional | |
Localization | string | optional | |
Subscriber_MSISDN | string | optional | |
SubscriberID | integer (int64) | optional | |
BillingPeriod | string | optional | |
BillingCount | string | optional | |
BillingPeriodIntervalType | string | optional | |
StartTimeUtc | string | optional | |
BillingStartTimeUtc | string | optional | |
ContentProjectUID | string | optional | |
SubscriptionTitle | string | optional | |
ResendSmsPinIfSubscriptionAlreadyExists | string | optional | |
ClientIP | string | optional | |
CustomerId | string | optional | |
CustomerType | string | optional | |
ExpectedApprovingType | string | optional | |
ExternalApprovingType | string | optional | NONEIVRSMSUSSDSMS_PINAUTH_PAGEAUTH_PAGE_AOCSMS_AOC |
ContentLogin | string | optional | |
ContentPassword | string | optional | |
AdditionalParams | string | optional | |
ApplyPreAuthTemplate | boolean | optional | |
ExternalServiceId | string | optional | |
PartnerLandingSplitId | string | optional | |
LandingPageId | string | optional |
Responses
200
Ответ платформы. Результат обработки передаётся полями StatusID и StatusName.
sms_pin500
Внутренняя ошибка платформы
Full error codes are in Error codes.