Subscriptions

Subscriptions: quick start

XML 2.9 onlyOpenAPI

Create a subscription, approve it and check the status in Subscription Service.

Subscription Service is a separate XML protocol with its own host and signature. Start by creating a subscription, then approve it and check the status.

Step 1. Create a subscription

POSThttps://subs.digitalspb.com/Http/Services/CreateSubscription.aspxPRODUCTIONReference ↗
This step is currently described in XML 2.9 only.
Request
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
<?xml version="1.0" encoding="utf-8"?><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>

Step 2. Approve the subscription

The flow depends on SubscriberAcceptanceChannel: SMS_PIN — an SMS PIN, AUTH_PAGE — redirect to AuthorizeUrl. See phone and card scenarios.

Step 3. Check the status

GetSubscriptionStatus returns SubscriptionStatus and PaidUntilUtc. The project subscription list is available via GetSubscriptions.