Инструменты страницы
Request for order extended status (getOrderStatusExtended.do)
In this document, the following data type conventions are used when describing request and response parameters:
- A<n> – a sequence of Latin letters of length <n>;
- A..<n> – a sequence of Latin letters with a length not exceeding <n>;
- N<n> – a sequence of digits of length <n>;
- N..<n> – a sequence of digits with a length not exceeding <n>;
- AN<n> – a sequence of Latin letters and numbers of fixed length <n>;
- AN.. <n> – a sequence of Latin letters and numbers with a length not exceeding <n>;
- ANS<n> – a sequence of Latin letters, numbers and characters of fixed length <n>
- ANS.. <n> – a sequence of Latin letters, numbers and characters with a length not exceeding <n>;
- UTC – date and time, in this case: the date must be passed without specifying the time zone, Moscow time, for the SOAP protocol, the standard encoding xs: dateTime is used.
Request parameters
The request parameters are given in table below.
Name | Type | Mandatory | Description |
---|---|---|---|
|
AN..30 | no (either login/password or token must be specified) |
Login issued to the Store upon integration with the Payment Gateway. If a public token (token parameter) is used instead of authentication with the use of login and password, then it is not required to pass the userName parameter. |
|
AN..30 | no (either login/password or token must be specified) |
Password issued to the Store upon integration with the Payment Gateway. If an open token (the 'token' parameter) is used instead of login and password authentication, password parameter does not need to be passed. |
|
AN..30 | no (either login/password or token must be specified) |
Merchant's service account password. If login and password are used for authentication during token registration, then the |
|
ANS36 | The request should include either orderId or orderNumber. If both parameters are present in the request, orderId has priority. |
Identifier of the order in the payment system. It is unique within the system. Missing if order registration failed due to an error detailed in ErrorCode.
If a |
|
ANS..32 | The request should include either orderId or orderNumber. If both parameters are present in the request, orderId has priority. |
Order number in the store system. This is optional only if the automatic generation of the order number is enabled on the gateway (for this, contact technical support). |
|
A2 | No |
Language in the ISO 639-1 encoding. If the language is not specified, the default language defined in the store settings is used. |
Response parameters
There are three sets of response parameters. The exact sets of parameters to be returned depend on the version of getOrderStatusExtended
specified in the Merchant settings.
Name | Type | Mandatory | Description | Version of getOrderStatusExtended |
---|---|---|---|---|
|
ANS..32 | Yes |
Order number in the store system. This is optional only if the automatic generation of the order number is enabled on the gateway (for this, contact technical support). | All versions. |
|
N1 | No |
The order status in the payment system is defined by the value of this parameter. It is missing if the order has not been found. Below is a list of possible values:
| All versions. |
|
N..5 | Yes |
Processing code Full list of processing response codes and description of these codes is available on a separate page. | All versions. |
|
AN..512 | Yes |
Response code is a numeric code that designates the result of user's call to the system. Full list of processing response codes and description of these codes is available on a separate page. | All versions. |
|
ANS..3 | No |
Error code. Can be missing if the result has not caused an error. | All versions. |
|
|
No |
|
All versions. |
|
N..12 | Yes |
Payment amount in minimum currency units. | All versions. |
|
N3 | No |
ISO 4217 code of the payment currency. If not specified, default value is used. | All versions. |
|
ANS | Yes |
Date of order registration in Unix-time format (POSIX-time). | All versions. |
|
N | No |
Date of order payment in Unix-time format (POSIX-time). | 10 and higher. |
|
ANS..600 | No |
Description of the order in any format. | All versions. |
|
ANS..39 | Yes |
IP-address of the buyer. IPv6 is supported in all requests (up to 39 characters). | All versions. |
|
AN..24 | No |
Registration number of the payment authorization that has been assigned to it on the payment registration. | 02 and higher. |
|
ANS | No |
Date and time of the refund. | 13 and higher. |
|
AS..14 | Yes |
The way of order completion (a payment with entering card data, a payment using a binding, etc.). Possible values:
| 09 and higher. |
|
A1 | No |
AVS Response Code – AVS response code (verification of cardholder's registration address and postal code). The possible values are:
| 19 and higher. |
The merchantOrderParams element is present in a response if an order contains additional parameters of the merchant. Each additional order parameter is contained in a separate merchantOrderParams element. |
||||
Name
TypeAN..20 Type2ANS..255 Type3A7 Type4ANS..100 DescriptionRESTName of the additional parameter. REST Online LendingThe attribute name, always takes the value of mdOrder. WSName of the additional parameter. SpasiboName or the description of an item in any format. Spasibo2Name of the parameter describing the details of a line item |
AN..20 | No |
Name of the additional parameter. | All versions. |
|
AN..1024 | No |
The value of the additional parameter is up to 1024 characters. | All versions. |
cardAuthInfo element. Contains a structure consisting of a list of secureAuthInfo element and the following parameters. | ||||
|
N..19 | No |
Masked number of the card that has been used for the payment. | All versions. |
|
ANS | No |
Expiry date of the card in the format YYYYMM. | All versions. |
|
A..200 | No |
Cardholder's name in Latin characters, if available. | All versions. |
|
AN6 | No |
International payment system authorization code. This field has a fixed length (six characters) and can contain digits and Latin letters. | All versions. |
|
A..5 | No |
The parameter defines whether the funds have been forcibly returned to the buyer by the bank. The following values are available:
| 06 and higher. |
|
N..10 | yes |
The payment system name. Available values:
| 08 and higher. |
|
AN..255 | yes |
Additional details on corporate cards. This information is filled in by technical support. If such details are missing, an empty value is returned. | 08 and higher. |
|
string | yes |
Additional details about corporate cards. These details are filled in by the technical support service through the administrative console. If such details are missing, an empty value is returned. The possible values are: DEBIT, CREDIT, PREPAID, NON_MASTERCARD, CHARGE, DIFFERED_DEBIT. | 17 |
The secureAuthInfo element (the element consists of the eci and threeDSInfo elements the latter being an object with the cavv and xid parameters): |
||||
|
N..4 | No |
Electronic Commerce Indicator. | All versions. |
|
ANS..200 | No |
The value of the cardholder authentication check. Indicated only after payment of the order and in case of respective permission. | All versions. |
|
ANS..80 | No |
Electronic Commerce Indicator of the transaction. The indicator is specified only after an order has been paid and in case the corresponding permission is present. | All versions. |
The bindingInfo element consists of the following parameters. |
||||
|
ANS..255 | No |
Identifier of the Customer in the Store system. This parameter is used for the binding functionality. May be present if the store is allowed to create bindings. Specifying this parameter when processing payments with the use of bindings is mandatory. Otherwise, a payment will be unsuccessful. | All versions. |
|
AN..255 | No |
Identifier of the binding created earlier. | All versions. |
|
ANS | No |
Authorization date and time in Unix time (POSIX time). | 02 and higher. |
|
AN..10 | No |
Identifier of the terminal in processing through which the payment was made. | 02 and higher. |
The paymentAmountInfo element consists of the following parameters. |
||||
|
N..12 | No |
Amount confirmed to be debited. | 03 and higher. |
|
N..12 | No |
The amount in the minimum currency units (for example, in kopecks), confirmed to be debited from the card. | 03 and higher. |
|
N..12 | No |
The refund amount in minimum currency units. | 03 and higher. |
|
A..10 | No |
Payment status. | 03 and higher. |
|
N..12 | No |
Commission amount in minimum currency units. | 11 and higher. |
|
N..12 | No |
Order amount + fee (if applicable to the order). | 18 and higher. |
The bankInfo element contains the following parameters. |
||||
|
ANS..50 | No |
Name of the issuing bank. | 03 and higher. |
|
AN..7 | No |
Country codes of the issuing bank. | 03 and higher. |
|
AN..160 | No |
Name of the country of the issuing bank passed in the language parameter of the request or in the language of the user who has called the method if the language has not been specified in the request. | 03 and higher. |
The payerData element contains the following parameters. |
||||
|
ANS..40 | No |
Customer's email address. | 13 and higher. |
|
Element | No |
The
| 14 and higher. |
The refunds element contains information about refunds. Is added in response to getOrderStatusExtended equest Version 05 and higher, and is only present if there is a refund for an order. |
||||
|
N12 | No |
Transaction reference number assigned by the Payment Gateway upon transaction completion. | 05 and higher. |
|
N..5 | No |
Processing code Full list of processing response codes and description of these codes is available on a separate page. | 05 and higher. |
|
N..12 | No |
The refund amount in minimum currency units. | 05 and higher. |
|
ANS | No |
Order refund date in the following format: YYYYMMDDHHMMSS (for example, 20210729231846). | 05 and higher. |
The attributes element contains information about the order number in the payment gateway system. |
||||
|
A7 | No |
The attribute name, always takes the value | All versions. |
|
ANS36 | No |
Attribute value is the order number in the payment system (is unique within the system). | All versions. |
Error codes
Error code | Error text |
---|---|
1 |
Expected |
7 |
Transaction is being processed now. Please try again later. |
Examples
POST request example
orderId=b9054496-c65a-4975-9418-1051d101f1b9&language=ru&orderNumber=0784sse49d0s134567890
Пример ответа
{"errorCode":"0","errorMessage":"Success","orderNumber":"0784sse49d0s134567890","orderStatus":6,"actionCode":-2007,"actionCodeDescription":"Session expired","amount":33000,"currency":"643","date":1383819429914,"orderDescription":" ","merchantOrderParams":[{"name":"email","value":"yap"}],"attributes":[{"name":"mdOrder","value":"b9054496-c65a-4975-9418-1051d101f1b9"}],"cardAuthInfo":{"expiration":"201912","cardholderName":"Ivan","secureAuthInfo":{"eci":6,"threeDSInfo":{"xid":"MDAwMDAwMDEzODM4MTk0MzAzMjM="}},"pan":"411111**1111"},"terminalId":"333333"}