OrderState

  • This document describes the OrderState type, which is part of the deprecated Orders version 2 API.

  • The OrderState type has two fields: state, which indicates the current state of the order, and label, which is a user-visible string for the state.

  • The state field can have several possible values such as CREATED, REJECTED, CONFIRMED, CANCELLED, IN_TRANSIT, RETURNED, FULFILLED, and CHANGE_REQUESTED.

Current order state.

JSON representation
{
  "state": string,
  "label": string
}
Fields
state

string

State can be one of the following values:

CREATED: Order was created at integrator's system. REJECTED: Order was rejected by integrator. CONFIRMED: Order was confirmed by the integrator and is active. CANCELLED: User cancelled the order. IN_TRANSIT: Order is being delivered. RETURNED: User did a return. FULFILLED: User received what was ordered. 'CHANGE_REQUESTED': User has requested a change to the order, and the integrator is processing this change. The order should be moved to another state after the request is handled.

Required.

label

string

The user-visible string for the state. Required.