API · Customers

Check DCB availability

Protocol: JSON v3 · XML 2.9POST/api/v3/projects/YOUR_PROJECT_ID/billing/check
← All operations

Description

Checks whether the given customer (MSISDN) is supported for activation and tariffication within the specified project.

v4 signature payload: {customerPayload} (e.g. {msisdn} for mobile phone)

XML 2.9 description

Checks whether billing is supported for the given customer. XML request type: <CheckCustomerBillingSupportRequest>.

This method allows to check the ability of request activation and further tariffication for a particular client with MSISDN within a particular project.

HTTP Headers:

  • Callisto-Protocol-Version: 2
  • SignatureVersion: 3

Request and response

Examples come from OpenAPI and are read-only here. Run requests in the Sandbox section.

POST/api/v3/projects/YOUR_PROJECT_ID/billing/checkPRODUCTION
Request
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"      }    }  }}

JSON v3 request fields

Billing_Check
Request fieldsTypeReq.Description
msisdnstringoptional

Customer MSISDN in international E.164 format (no +)

XML 2.9 request fields

checkCustomerBillingSupport
Request fieldsTypeReq.Description
CheckCustomerBillingSupportRequestobject & objectrequired
ProjectIDinteger (int32)required

Project ID in the Platform system. Assigned during project setup.

UndefinedMobilePhoneCustomerobject & objectoptional+2
MobilePhoneCustomerobject & objectoptional

Customer identification by mobile phone number. MSISDN is the primary identifier.

+2
BankCardCustomerobject & objectoptional

Customer identification by bank card. Used for card payment scenarios.

+4
UndefinedBankCardCustomerobject & objectoptional

Bank card customer identification without full data set. Used for initial card payment when card details are not yet known.

+4
UndefinedCustomerobject & objectoptional+2
Headerobjectrequired

Request header with authentication. Included in every API request.

Authenticationobjectrequired

Request authentication data. All three fields are mandatory for every request.

+3
RequestAttemptinteger (int32)optional

Ordinal invoice request number (for idempotency). Starting from 0.

Gatewayobjectoptional+3

Parameters and headers

NameInRequiredDescription
projectIdpathyesProject ID assigned by the platform during onboarding.

Responses

200
Billing support resultexample
400
401
403
500
503

Full error codes are in Error codes.