Инструменты страницы



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

userName

AN..30

no (either login/password or token must be specified)

Login of the service account of the merchant. If login and password are used for authentication during token registration, then the token parameter does not need to be passed.

password

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 token parameter does not need to be passed.

token

AN..30

no (either login/password or token must be specified)

A public key that can be used for authentication when making a request. If login and password are used for authentication during token registration, then the token parameter does not need to be passed.

To get the public key, contact technical support.

orderId

ANS36

Yes
(see note below)

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.

orderNumber

ANS..32

Yes
(see note below)

Number (identifier) of the order in the store system. It is unique for every store within the Payment Gateway. If the order number is generated on the Payment Gateway side, this parameter is not mandatory.

language

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

orderNumber

ANS..32

Yes

Number (identifier) of the order in the store system. It is unique for every store within the Payment Gateway. If the order number is generated on the Payment Gateway side, this parameter is not mandatory.

All versions.

orderStatus

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. The following values are available:

  • 0 – order is registered but unpaid;
  • 1 – the preauthorized amount is held (for two-phase payments);
  • 2 – full authorization of the order amount was carried out;
  • 3 – authorization is canceled;
  • 4 – a refund operation was performed for the transaction;
  • 5 – authorization via ACS of the issuing bank was initiated;
  • 6 – authorization is declined.
All versions.

actionCode

N..5

Yes

Processing code Full list of processing response codes and description of these codes is available on a separate page.

All versions.

actionCodeDescription

AN..512

Yes

Description of the response code in the language that is passed in language parameter of the request.

All versions.

errorCode

ANS..3

No

Error code. Can be missing if the result has not caused an error.

All versions.

errorMessage

AN..512

No

Error description in the language passed in the language parameter in the request.

All versions.

amount

N..12

Yes

Payment amount in minimum currency units.

All versions.

currency

N3

No

ISO 4217 code of the payment currency. If not specified, default value is used.

All versions.

date

ANS

Yes

Date of order registration in Unix-time format (POSIX-time).

All versions.

depositedDate

N

No

Date of order payment in Unix-time format (POSIX-time).

All versions.

orderDescription

ANS..600

No

Order description passed upon its registration.

All versions.

ip

ANS..39

Yes

IP-address of the buyer. IPv6 is supported in all requests (up to 39 characters).

All versions.

authRefNum

AN..24

No

Registration number of the payment authorization that has been assigned to it on the payment registration.

All versions.

refundedDate

ANS

No

Date and time of the refund.

All versions.

paymentWay

AS..14

yes

The way of order completion (a payment with entering card data, a payment using a binding, etc.). Possible values:

  • CARD – payment with entering of card details;
  • CARD_BINDING - payment by binding;
  • CARD_MOTO - payment through call center;
  • CARD_PRESENT - payment by cardPresent;
  • SBRF_SBOL – payment through Sberbank Online;
  • UPOP - payment through China Union Pay;
  • FILE_BINDING - payment by file;
  • SMS_BINDING - payment by SMS;
  • P2P - transfer from card to card;
  • P2P_BINDING - transfer by binding;
  • PAYPAL – payment from a PayPal account;
  • MTS – payment from MTS account;
  • APPLE_PAY - Apple Pay;
  • APPLE_PAY_BINDING - payment by Apple Pay binding;
  • ANDROID_PAY - Android Pay;
  • ANDROID_PAY_BINDING - payment by Android Pay binding;
  • GOOGLE_PAY_CARD - Google Pay, non-tokenized;
  • GOOGLE_PAY_CARD_BINDING - payment by binding with non-tokenized Google Pay card;
  • GOOGLE_PAY_TOKENIZED - Google Pay, tokenized;
  • GOOGLE_PAY_TOKENIZED_BINDING - payment by binding with tokenized Google Pay card;
  • SAMSUNG_PAY - Samsung Pay;
  • SAMSUNG_PAY_BINDING - payment by Samsung Pay binding;
  • IPOS - iPOS payment;
  • SBERPAY – SberPay payment;
  • SBERID – SberID payment.
09 and higher.

avsCode

A1

No

AVS Response Code – AVS response code (verification of cardholder's registration address and postal code). The possible values are:

  • A – Both address and postal code match;
  • B – Address matches, postal code does not match;
  • C – Postal code matches, address does not match;
  • D – Neither address nor postal code match;
  • E – Verification requested but not available;
  • F – Transaction improperly requests verification.
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

name

Type

AN..20

Type2

ANS..255

Type3

A7

Type4

ANS..100

Description

REST

Name of the additional parameter.

REST Online Lending

The attribute name, always takes the value of mdOrder.

WS

Name of the additional parameter.

Spasibo

Name or the description of an item in any format.

Spasibo2

Name of the parameter describing the details of a line item

AN..20

No

Name of the additional parameter.

All versions.

value

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.

maskedPan

N..19

No

Masked number of the card that has been used for the payment.

All versions.

expiration

ANS

No

Expiry date of the card in the format YYYYMM.

All versions.

cardholderName

A..200

No

Cardholder's name in Latin characters, if available.

All versions.

approvalCode

AN6

No

International payment system authorization code. This field has a fixed length (six characters) and can contain digits and Latin letters.

All versions.

chargeback

A..5

No

The parameter defines whether the funds have been forcibly returned to the buyer by the bank. The following values are available:

  • true – funds were returned;
  • false – funds were not returned.
06 and higher.

paymentSystem

N..10

yes

The payment system name. Available values:

  • VISA;
  • MASTERCARD;
  • AMEX;
  • JCB;
  • CUP;
  • MIR.
08 and higher.

product

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.

productCategory

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):

eci

N..4

No

Electronic Commerce Indicator.

All versions.

cavv

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.

xid

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.

clientId

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.

bindingId

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:
1. The given order can be paid only using a binding;
2. The payer will be redirected to the payment page on which only entering CVC is required.

All versions.

authDateTime

ANS

No

Authorization date and time in Unix time (POSIX time).

02 and higher.

authRefNum

AN..24

No

Registration number of the payment authorization that has been assigned to it on the payment registration.

02 and higher.

terminalId

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.

approvedAmount

N..12

No

Amount confirmed to be debited.

03 and higher.

depositedAmount

N..12

No

The amount in the minimum currency units (for example, in kopecks), confirmed to be debited from the card.

03 and higher.

refundedAmount

N..12

No

The refund amount in minimum currency units.

03 and higher.

paymentState

A..10

No

Order status; the parameter can take the following values:

  • CREATED – order is created;
  • APPROVED – order is approved;
  • DEPOSITED – order is completed;
  • DECLINED – the order is declined;
  • REVERSED – order is reversed;
  • REFUND – there has been a refund for this order;
03 and higher.

feeAmount

N..12

No

Commission amount in minimum currency units.

11 and higher.

totalAmount

N..12

No

Order amount + fee (if applicable to the order).

18 and higher.
The bankInfo element contains the following parameters.

bankName

ANS..50

No

Name of the issuing bank.

03 and higher.

bankCountryCode

AN..7

No

Country codes of the issuing bank.

03 and higher.

bankCountryName

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.

orderBundle

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

orderCreationDate

ANS..21

No

Order creation date in the format YYYY-MM-DDTHH:MM:SS.

03 and higher.

customerDetails

Not applicable

No

Block containing attributes with data about the customer. The description of the attributes is given below.

03 and higher.

cartItems

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

email

ANS..40

See note below.

Customer's email address.

03 and higher.

phone

NS..12

See note below.

Customer's phone number. It can be of the following format: ^((+7|7|8)?([0-9]){10})$. Examples:

  • +79000000000
  • 89000000000
  • 9000000000
  • 79000000000

If the number is passed in a separate parameter and in additional parameters, the number specified in this phone parameter will be used.

When using ATOL fiscalization, the phone parameter should be sent in the following format:

The phone number must be passed together with the country code without spaces and additional characters except for the quotation marks (the number «371 2 1234567» must be passed as «+37121234567»). If the phone number belongs to Russia (prefix «+7»), then the value can be passed without a prefix (the number «+79251234567» can be sent as «9251234567»). The maximum string length is 64 characters. One of the fields must be filled in the request: email or phone.

03 and higher.

fullName

ANS..100

No

Payer's first name, last name, and patronymic.

12 and higher

passport

ANS..100

No

The series and number of the payer's passport in the following format: 2222888888.

12 and higher

inn

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

items

Not applicable

Yes

Array of blocks describing line items in the cart. Information about every line item in the cart is passed in a separate block that is included in items.

Do not use «‘)«character combination inside this section, or it will cause an error on the gateway side.

03 and higher.

items

items« contains the following elements.

Name Type Mandatory Description Version of getOrderStatusExtended

positionId

ANS..12

Yes

Unique identifier of a line item within the order cart.

03 and higher.

Name

name

Type

ANS..100

Description

REST

Name or the description of an item in any format.

Use
- to pass \ use \«- to pass »

REST Online Lending

For 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:

  • The following words and character sequences are not allowed: file, exec, insert, as, select, or, procedure, limit, order, and, or, by, asc, desc, delete, update, distinct, having, truncate, replace, handler, like, regex, tz_offset, to_timestamp_tz, bfilename, union, sql-command, abort, alter, analyze, begin, audit, checkpoint, close, cluster, comment, commit, copy, create, deallocate, declare, delete, drop, end, execute, explain, fetch, grant, insert, lock, move, noaudit, notify, prepare, reindex, rename, reset, revoke, rollback, savepoint, select, set, show, shutdown, start, truncate, unlisten, update, vacuum
  • The following special characters are not allowed: ' & – # % | ; =
WS

Name or the description of an item in any format.

Use
- to pass \ use \«- to pass »

WS Online Lending

For 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
- to pass \ use \«- to pass »

03 and higher.

quantity

N..18

Yes

Element describing the total of items of one positionId and its unit of measurement The description of the attributes is given below.

03 and higher.

itemAmount

N..12

No

The sum of the cost of all line items of one positionId in minimum currency units. Passing itemAmount is mandatory only if the itemPrice parameter was not passed. Otherwise passing of itemAmount is not required. If both parameters – itemPrice and itemAmount – are passed. then itemAmount must be equal to itemPrice * quantity, otherwise, the request will result in an error.

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.

depositedItemAmount

String

No

Amount in minimum currency units of one positionId confirmed to be debited from the card.

03 and higher.

itemCurrency

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.

itemCode

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

value

N..18

Yes

Quantity of line items in given positionId. Use a decimal point as a separator in fractions.

03 and higher.

measure

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

[orderId] is empty.

6

Unregistered orderId.

7

System error.

Examples

POST request example

orderId=b9054496-c65a-4975-9418-1051d101f1b9&language=ru&merchantOrderNumber=0784sse49d0s134567890

Response example

{"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"}