One-time payments · Mobile
DCB availability check
Protocol: JSON v3 · XML 2.9OpenAPI
Billing_Check: whether the phone can be charged.
The check shows whether DCB is available for the number and which amount can be charged. Run it before creating an invoice if you want to show a clear error up front.
curl -X POST "https://pay-api.digitalspb.com/api/v3/projects/YOUR_PROJECT_ID/billing/check" \ -H "Content-Type: application/json" \ -H "X-Login: YOUR_LOGIN" \ -H "X-Timestamp: YOUR_TIMESTAMP" \ -H "X-Signature-Version: 3" \ -H "X-Signature: YOUR_SIGNATURE" \ -d '{ "msisdn": "79600000000"}'Read-only example. Runnable examples are available in the Sandbox section.
200
{ "success": true, "data": { "supported": true, "customer": { "type": "mobile_phone", "msisdn": "79600000000", "country": "RU", "network": { "id": 3, "name": "Beeline" }, "operator": { "id": 42, "name": "Beeline" } } }}What to show the customer
If the check fails, do not create an invoice — show the reason and offer another payment method. Error codes are in Error codes.