Subscriptions

Card and SBP subscription

XML 2.9 onlyOpenAPI

CustomerType=Card, confirmation page and subscription status.

A card subscription is created with CustomerType=Card and CustomerId. The platform returns AuthorizeUrl — the confirmation page to redirect the customer to.

Create the 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>  <CustomerType>Card</CustomerType>  <CustomerId>SANDBOX-CUSTOMER-1</CustomerId>  <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>

Redirect the customer

Open AuthorizeUrl. For QR payment the specification provides the ?useSbpQr=True parameter.

Check the status

Active — the subscription is active; Cancelled — cancelled; ApprovingFailed — confirmation failed. Full list on the Errors and statuses page.