Инструменты страницы
Request for order extended status (getOrderStatusExtended.do)
The request used for getting the status of a registered order is getOrderStatusExtended.do
. To get the order status it's necessary to use the value of the orderNumber
parameter (order number in the store's system).
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 | Yes |
Login of the service account of the merchant. If login and password are used for authentication during token registration, then the |
|
AN..30 | Yes |
Merchant's service account password. If login and password are used for authentication during token registration, then the |
|
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. |
|
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. |
Either orderId
or orderNumber
must be present in the request. If both parameters are present in the request, orderId
has priority.
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. These parameters will be returned in the response regardless of the version getOrderStatusExtended
.
Name | Type | Mandatory | Description | Version of getOrderStatusExtended |
---|---|---|---|---|
|
ANS..32 | Yes |
Order identifier in the Store system. | 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. See description of statuses below. | 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 |
Description of the response code in the language that is passed in language parameter of the request. | 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 |
The refund 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 |
Order description passed upon its registration. | All versions. |
|
ANS | No |
Date and time of the refund. | 13 and higher. |
|
AS..14 | yes |
The method in which the payment is made. Value:
| 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 attributes element contains information about the order number in the payment gateway system. Passed in the name parameter is the value of mdOrder , and in the value parameter – the order number in the payment gateway system |
||||
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 |
A7 | No |
The attribute name, always takes the value of mdOrder. | All versions. |
|
ANS36 | No |
Attribute value is the order number in the payment system (is unique within the system). | All versions. |
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. |
In element merchantOrderParams the following parameters are passed: registerOrderId – order identifier in the Online Lending proxy. The following parameters are passed as well: |
||||
Name | Type | Mandatory | Description | |
| ANS…255 | No |
Desired loan term in months. Is returned the response, if the |
|
| N..2 | Yes | Real loan term in months. |
|
The paymentAmountInfo element consists of the following parameters. |
||||
|
N..12 | No |
The amount in the minimum currency units (for example, in kopecks) withheld on the card. Used only for two-phase payments. | 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 |
Order status; the parameter can take the following values:
| 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. |
Order state statuses
Name in the user interface (English) | Name in the user interface (Russian) | Internal name | Description | |
---|---|---|---|---|
1 | Created | Created | started | The order is created |
4 | Reversed | Reversed | payment_void | The order is reversed |
6 | Refunded | Refund | refunded | Funds for the order have been refunded |
Error codes
Error code | Error text |
---|---|
0 |
The request has been processed without system errors. |
1 |
Expected [orderId] or [orderNumber]. |
5 |
Access denied. |
5 |
The user must change the password. |
6 |
Order not found. |
7 |
System error. |
Examples
POST request example
orderNumber=ORDER_NAMBER_IN_STORE_SYSTEM&language=ru
Пример ответа
{errorCode: "0", errorMessage: "Success", orderNumber: "1542618252", orderStatus: 6, actionCode: -2007, actionCodeDescription: "Data input timed out", amount: 3003799, currency: "643", date: 1542618252944, orderDescription: "description 1", merchantOrderParams: [{name: "email", value: "32345678901234567890123456789012345678901234567890123456@test.ru" } ], attributes: [{name: "mdOrder", value: "4fbc0be8-a29d-7462-b11d-3d8404b0d0be" } ], terminalId: "10465249", paymentAmountInfo: {paymentState: "DECLINED", approvedAmount: 0, depositedAmount: 0, refundedAmount: 0 }, bankInfo: {bankCountryCode: "UNKNOWN", bankCountryName: "<Unknown>" }, chargeback: false }