Skip to Content
SubscriptionsMethod reference XMLCreate subscription

Create subscription

POST /Http/Services/CreateSubscription.aspx

Initializes a subscription. Two branches:

  • SMS_PIN — Subscriber_MSISDN in the request (the legacy name MSISDN is also accepted). The response contains SubscriptionID and SubscriberAcceptanceChannel=SMS_PIN; confirm with ApproveSubscription using PIN 1234.
  • Bank card and SBP — CustomerType=Card and CustomerId in the request. The response contains SubscriberAcceptanceChannel=AUTH_PAGE and AuthorizeUrl: redirect the subscriber there. For SBP QR payment append ?useSbpQr=True. ApproveSubscription is not used in this branch — the subscription is activated once the payment completes.

The SubscriptionStatusNotification callback is sent on actual activation (EventType=APPROVED), not right after creation.

A repeated call for the same Subscriber_MSISDN within a project returns the existing subscription (the production platform answers WRONG_PARAMS / SubscriptionAlreadyCreated).

Request body

FieldTypeRequiredDescription
NowstringyesCurrent UTC time in yyyyMMddHHmmss format.
SignaturestringyesRequest signature: LOWERCASE(HMACSHA256(SecretKey, SubscriptionProjectID + Now)).
SubscriptionProjectIDinteger (int32)yesSubscription project ID.
MerchantSubsIDstring—
Localizationstring—Optional. Localization of texts for the user; default ru-RU.
Subscriber_MSISDNstring—Optional. User’s MSISDN to create the subscription for (or SubscriberID). Not passed for WAP activation (SubscriberAcceptanceChannel=AUTH_PAGE). The sandbox also accepts the legacy name MSISDN.
SubscriberIDinteger (int64)—Subscriber ID in the System, instead of Subscriber_MSISDN. For WAP activation the MSISDN is not needed: it is resolved when the user opens the activation page.
BillingPeriodstring—
BillingCountstring—
BillingPeriodIntervalTypestring—
StartTimeUtcstring—Optional. Subscription activation start time (for SMS_PIN — when the PIN SMS is sent); default is the current time. Format yyyy-MM-dd HH:mm.
BillingStartTimeUtcstring—Optional. Time of the first payment; by default StartTimeUtc plus the shift from the project settings. Format yyyy-MM-dd HH:mm.
ContentProjectUIDstring—
SubscriptionTitlestring—
ResendSmsPinIfSubscriptionAlreadyExistsstring—Optional, default false. For SMS_PIN: when the subscription already exists, the response is still WRONG_PARAMS / SubscriptionAlreadyCreated, but the PIN SMS is sent again (no more than 2 times).
ClientIPstring—IP address of the user who initiates the request.
CustomerIdstring—Customer ID in the merchant’s system (unique).
CustomerTypestring—Payment source type for the subscription: Card — bank card or SBP.
ExpectedApprovingTypestring—
ExternalApprovingTypeNONE · IVR · SMS · USSD · SMS_PIN · AUTH_PAGE · AUTH_PAGE_AOC · SMS_AOC—
ContentLoginstring—
ContentPasswordstring—
AdditionalParamsstring—
ApplyPreAuthTemplateboolean—
ExternalServiceIdstring—
PartnerLandingSplitIdstring—
LandingPageIdstring—

Response codes

CodeDescription
200Result in StatusName (REQUEST_ACCEPTED on success)
500Internal platform error