Check DCB availability
/api/v3/projects/YOUR_PROJECT_ID/billing/checkDescription
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: 2SignatureVersion: 3
Request and response
Examples come from OpenAPI and are read-only here. Run requests in the Sandbox section.
/api/v3/projects/YOUR_PROJECT_ID/billing/checkPRODUCTIONcurl -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"}'{ "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 fields | Type | Req. | Description |
|---|---|---|---|
msisdn | string | optional | Customer MSISDN in international E.164 format (no |
XML 2.9 request fields
checkCustomerBillingSupport| Request fields | Type | Req. | Description |
|---|---|---|---|
CheckCustomerBillingSupportRequest | object & object | required | |
ProjectID | integer (int32) | required | Project ID in the Platform system. Assigned during project setup. |
UndefinedMobilePhoneCustomer | object & object | optional | +2 |
NetworkID | integer (int32) | required | |
Email | string | optional | |
MobilePhoneCustomer | object & object | optional | Customer identification by mobile phone number. MSISDN is the primary identifier. |
MSISDN | string | required | Client's MSISDN (Mobile Subscriber Integrated Services Digital Number) in international format without '+' sign |
Email | string (email) | optional | Client's e-mail address |
BankCardCustomer | object & object | optional | Customer identification by bank card. Used for card payment scenarios. |
Email | string (email) | optional | Client's e-mail address |
Source | string | required | Source Name in Merchant's system (unique for Partner Service). Should be a unique identifier (e.g. resource/brand name) guaranteeing global uniqueness for parameters source+MerchantCustomerId in all systems. |
Country | string | required | Country code (ISO 3166-1 alpha-2, lowercase) |
MerchantCustomerId | string | required | Customer ID in Merchant's system (unique) |
UndefinedBankCardCustomer | object & object | optional | Bank card customer identification without full data set. Used for initial card payment when card details are not yet known. |
Source | string | optional | Source Name in Merchant's system (unique for Partner Service). Should guarantee global uniqueness for parameters source+MerchantCustomerId. |
Country | string | required | Country code (ISO 3166-1 alpha-2, lowercase) |
MerchantCustomerId | string | required | Customer ID in Merchant's system (unique) |
Email | string (email) | optional | Client's e-mail address |
UndefinedCustomer | object & object | optional | +2 |
Country | string | optional | |
Email | string | optional | |
Header | object | required | Request header with authentication. Included in every API request. |
Authentication | object | required | Request authentication data. All three fields are mandatory for every request. |
Login | string | required | Merchant Login assigned by the Platform |
NowUtc | string | required | Current UTC time in yyyyMMddHHmmss format. Must not differ from platform system time by more than 20 minutes. |
Signature | string | required | HMAC request signature. Calculated as: LOWERCASE(HMACSHA256(Password, Login + LOWERCASE(HMACSHA256(Password, NowUtc)))) |
RequestAttempt | integer (int32) | optional | Ordinal invoice request number (for idempotency). Starting from 0. |
Gateway | object | optional | +3 |
Signature | string | optional | |
ContractInfo | object | optional | +1 |
DesiredExpirationTimeUtc | string (date-time) | optional |
Parameters and headers
| Name | In | Required | Description |
|---|---|---|---|
projectId | path | yes | Project ID assigned by the platform during onboarding. |
Responses
exampleFull error codes are in Error codes.