Customer support
projectCustomerSupportDescription
Returns a list of available payment methods for the project. XML request type: <ProjectCustomerSupportRequest>.
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.
projectCustomerSupportPRODUCTIONcurl -X POST "https://pay-api.digitalspb.com/API/XML/InvoiceManagementService.ashx" \ -H "Content-Type: text/xml" \ -H "Callisto-Protocol-Version: 2" \ -H "SignatureVersion: 4" \ -d '<?xml version="1.0" encoding="utf-8"?><Request> <Header> <Authentication> <Login>YOUR_LOGIN</Login> <NowUtc>YOUR_TIMESTAMP</NowUtc> <Signature>YOUR_SIGNATURE</Signature> </Authentication> <RequestAttempt>1</RequestAttempt> </Header> <ProjectCustomerSupportRequest> <ProjectID>YOUR_PROJECT_ID</ProjectID> </ProjectCustomerSupportRequest></Request>'<Response> <ResultCode>0</ResultCode> <ResultDescription>OK</ResultDescription> <ProjectCustomerSupportResponse> <PaymentMethodList> <PaymentMethodAvailable> <Country>RU</Country> <Operator>MTS</Operator> <Type>Mobile</Type> <Auth>SMS_PIN</Auth> </PaymentMethodAvailable> <PaymentMethodAvailable> <Country>RU</Country> <Operator>Beeline</Operator> <Type>Mobile</Type> <Auth>SMS_REPLY</Auth> </PaymentMethodAvailable> </PaymentMethodList> </ProjectCustomerSupportResponse></Response>XML 2.9 request fields
projectCustomerSupport| Request fields | Type | Req. | Description |
|---|---|---|---|
ProjectCustomerSupportRequest | object & object | required | |
ProjectID | integer (int32) | required | Project ID in the Platform system. Assigned during project setup. |
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 |
|---|---|---|---|
Callisto-Protocol-Version | header | yes | Protocol version. Version 2 is current: it changes how dates are formatted (dd.MM.yyyy HH:mm:ss) and which fields are present in responses. |
SignatureVersion | header | no | Signature algorithm version. Version 3 is current: HMAC-SHA256 over login and timestamp (see the API description). The credentials themselves travel in the request body, in Request/Header/Authentication. |
Responses
exampleFull error codes are in Error codes.