How order statuses change
The status change diagram shows the stages that a DBS order goes through and the logic of transitions between statuses. This will help you correlate the statuses of Yandex. Market and your system, set up integration with Yandex.Market correctly, and avoid transmitting unnecessary statuses and sub-statuses.
Designations:
-
The diagram shows the order statuses and substates at each stage in the format
Status of the Sub-status
. For example,PROCESSING STARTED
.List of substates
CANCELLED
see the section Substates when canceling an order. -
The arrows show the transitions between the stages, and their color indicates when this transition occurs:
- green — the store has changed its status.
- The blue Market has changed its status.
- orange — in case of cancellation of the order by any party;
- red is an exceptional case.
Transmit the statuses in the order in which they are described in the diagram.
Otherwise, it will lead to an error.
Decoding the scheme
Status, sub-status, and stage description |
Who changes the status |
Methods by which the status is changed or information about the order is received in this status |
The store is processing the order. |
Yandex. Market |
|
The order has been delivered. |
Shop |
|
The customer received the order. It is transmitted only when working through Yandex. Delivery. |
Yandex. Market |
|
The delivery time has expired, and the customer has not received the order. Arbitration begins, as a result of which the order can be canceled or transferred to the status |
Yandex. Market |
|
The order has been accepted at the PVZ. |
Shop |
|
The order has been delivered. It is transmitted automatically when working via Yandex. Delivery. If you deliver on your own, change the status after the order is delivered. |
Yandex. Market Shop |
|
The delivery time has expired, and the customer has not received the order. Arbitration begins, as a result of which the order can be canceled or remain in the same status. |
Yandex. Market |
|
The order has been cancelled. To cancel an order, pass the sub-status If the order is in the status |
Yandex. Market Shop Buyer |
Substates when canceling an order
RESERVATION_EXPIRED
— the customer did not complete the reserved order within 10 minutes.USER_NOT_PAID
— the buyer has not paid for the order (for the type of paymentPREPAID
) for 30 minutes.USER_UNREACHABLE
— couldn't contact the buyer.USER_CHANGED_MIND
— the customer cancelled the order for personal reasons.USER_REFUSED_DELIVERY
— the buyer was not satisfied with the terms of delivery.USER_REFUSED_PRODUCT
— the product did not fit the buyer.SHOP_FAILED
— the store cannot complete the order.USER_REFUSED_QUALITY
— the buyer was not satisfied with the quality of the product.REPLACING_ORDER
— the buyer decided to replace the product with another one on his own initiative.PROCESSING_EXPIRED
— the value is no longer used.PICKUP_EXPIRED
— the storage period of the order in the PVZ has expired.TOO_MANY_DELIVERY_DATE_CHANGES
— the order has been postponed too many times.DELIVERY_DATE_CHANGED_TOO_MUCH
— the order has been postponed for too many days.
Other values may also be returned. They do not need to be processed.
PUT campaigns/{campaignId}/orders/{orderId}/cancellation/accept