Инструменты страницы
Extended order status request (getOrderStatusExtended)
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 |
---|---|---|---|
|
ANS36 | Yes (see note below) |
Identifier of the order in the payment system. It is unique within the system. The identifier is missing if the order registration failed due to an error detailed in errorCode. |
|
ANS..32 | Yes (see note below) |
Order identifier in the Store system. |
|
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. |
You must pass either the parameter orderIdor merchantOrderNumber. If both parameters are passed, orderId
has a higher 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 |
The number (identifier) of the order in the store system is unique for each store within the system – up to 30 characters. If the order number is generated on the Payment Gateway side, this parameter is not mandatory. | 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 |
Description of | All versions. |
|
ANS..3 | No |
Error code. | 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). | All versions. |
|
ANS..600 | No |
Order description passed upon its registration. | 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. | All versions. |
|
ANS | No |
Date and time of the refund. | All versions. |
|
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. This parameter is to be specified only after the order has been paid. | 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 |
The identifier of the previously created binding. Can only be used if the merchant has permission to work with bindings. If this parameter is passed in the given request, it means that: | 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 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 |
Country of the issuing bank. | 03 and higher. |
|
Not applicable | Yes |
Block containg the cart of items of the order. The description of the attributes is given below. | 03 and higher. |
orderBundle
orderBundle
contains the following elements.
Name | Type | Mandatory | Description | Version of getOrderStatusExtended |
---|---|---|---|---|
|
Not applicable | No |
Block containing attributes with data about the customer. The description of the attributes is given below. | 12 and higher. |
|
Not applicable | Yes |
Block with the attributes of the items in the cart. The description of the attributes is given below. | 03 and higher. |
customerDetails
customerDetails
contains the following elements.
Name | Type | Mandatory | Description | Version of getOrderStatusExtended |
---|---|---|---|---|
|
ANS..40 | See note below. |
Customer's email address. You can specify several comma separated (without spaces) email addresses – in this case the receipt will be delivered to all specified addresses. | 03 and higher. |
|
NS..12 | See note below. |
Customer's phone number. It can be of the following format:
If the number is passed in a separate parameter and in additional parameters, the number specified in this
When using ATOL fiscalization, the | 03 and higher. |
|
ANS..100 | No |
Payer's first name, last name, and patronymic. | 12 and higher |
|
ANS..100 | No |
The series and number of the payer's passport in the following format: | 12 and higher |
|
N..12 | No |
Taxpayer identification number. From 10 to 12 digits can be passed. | 12 and higher |
cartItems
cartItems
contains the following elements.
Name | Type | Mandatory | Description | Version of getOrderStatusExtended |
---|---|---|---|---|
|
Not applicable | Yes |
Tag containing the parameters with the data about one item from the cart .
Item number is specified as an attribute of the tag:
A request must contain a separate | 03 and higher. |
items
items« contains the following elements.
Name | Type | Mandatory | Description | Version of getOrderStatusExtended |
---|---|---|---|---|
Name
TypeANS..100 DescriptionRESTName or the description of an item in any format.
Use REST Online LendingFor Online Lending functionality, it's necessary to specify a description of the line item in accordance with the Yandex.Market catalog, subject to the following requirements:
WSName or the description of an item in any format.
Use WS Online LendingFor online crediting functionality it's necessary to specify a description of the good item in accordance with the Yandex.Market. |
ANS..100 | Yes |
Name or the description of an item in any format.
Use | 03 and higher. |
|
N..18 | Yes |
Element describing the total of items of one | 03 and higher. |
|
N..18 | No |
The sum of the cost of all line items of one When calculating itemAmount = itemPrice*quantity parameter, the result is rounded up to the second digit after the decimal point. For example, if the calculation result is 100.255, then final value will be 100.26. | 03 and higher. |
|
N3 | No |
Currency code of a line item according to ISO 4217. If the parameter is not specified, it is considered to be equal to the order currency. | 03 and higher. |
|
ANS..100 | Yes |
Number (identifier) of a line item in the store system. | 03 and higher. |
==== quantity ==== quantity'' contains the following elements.
Name | Type | Mandatory | Description | Version of getOrderStatusExtended |
---|---|---|---|---|
|
ANS..20 | Yes |
The unit of measurement for the quantity of line item instances. | 03 and higher. |
Error codes
Error code | Error text |
---|---|
0 |
The request has been processed without system errors. |
5 |
Access denied. |
5 |
The user must change the password. |
5 |
|
6 |
Unregistered |
7 |
System error. |
Examples
Request example
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mer="http://engine.paymentgate.ru/webservices/merchant"> <soapenv:Header/> <soapenv:Body> <mer:getOrderStatusExtended> <order orderId="942e8534-ac73-4e3c-96c6-f6cc448018f7" language="en"> <!--Optional:--> <merchantOrderNumber> </merchantOrderNumber> </order> </mer:getOrderStatusExtended> </soapenv:Body> </soapenv:Envelope>
Response example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns1:getOrderStatusExtendedResponse xmlns:ns1="http://engine.paymentgate.ru/webservices/merchant"> <return orderNumber="1499420313736" orderStatus="2" actionCode="0" actionCodeDescription="" amount="10500" currency="643" date="2017-07-07T12:41:11.654+03:00" orderDescription="Description" ip="127.0.0.1" errorCode="0" errorMessage="Successfully"> <attributes name="mdOrder" value="dc84ffbc-1d04-4748-94dc-75d87e91a745"/> <cardAuthInfo maskedPan="555555**5599" expiration="202012" cardholderName="Test" approvalCode="111111"/> <authDateTime>2017-07-07T12:41:12.185+03:00</authDateTime> <terminalId>12345678</terminalId> <authRefNum>111111111111</authRefNum> <paymentAmountInfo paymentState="DEPOSITED" approvedAmount="10500" depositedAmount="10500" refundedAmount="0"/> <bankInfo bankName="SOME BANK IN USA" bankCountryCode="US" bankCountryName="The United States of America"/> <orderBundle> <cartItems> <items positionId="1"> <name>Universal Mirror Enduro</name> <quantity measure="units">3.0</quantity> <itemAmount>6000</itemAmount> <itemCurrency>643</itemCurrency> <itemCode>NM-15</itemCode> </items> <items positionId="2"> <name>A ticked to Moscow</name> <quantity measure="units">1.0</quantity> <itemAmount>4500</itemAmount> <itemCurrency>643</itemCurrency> <itemCode>GFCCHC</itemCode> </items> </cartItems> </orderBundle> </return> </ns1:getOrderStatusExtendedResponse> </soap:Body> </soap:Envelope>