interface OrderFromCartDraft {
    cart?: CartResourceIdentifier;
    custom?: CustomFieldsDraft;
    id?: string;
    orderNumber?: string;
    orderState?: string;
    paymentState?: string;
    purchaseOrderNumber?: string;
    shipmentState?: string;
    state?: StateResourceIdentifier;
    version: number;
}

Properties

cart?: CartResourceIdentifier

ResourceIdentifier to the Cart from which the Order is created.

This field is required, but is marked as optional for backwards compatibility reasons.

Custom Fields for the Order. The Custom Fields' type must match the Custom Fields' type in the referenced Cart.

- If empty, the Custom Fields on the referenced [Cart](ctp:api:type:Cart) are added to the Order automatically.
- If specified, the Custom Fields are merged with the Custom Fields on the referenced [Cart](ctp:api:type:Cart) and added to the Order.
id?: string

id of the Cart used to create the Order.

Deprecated

orderNumber?: string

User-defined identifier for the Order that is unique across a Project. Once set, the value cannot be changed.

orderState?: string

Current status for the Order.

paymentState?: string

Payment status for the Order.

purchaseOrderNumber?: string

User-defined identifier for a purchase Order.

It is typically set by the [Buyer](ctp:api:type:Buyer) and can be used with [Quotes](/quotes-overview) to track the purchase Order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
shipmentState?: string

Shipment status for the Order.

state?: StateResourceIdentifier

State for the Order in a custom workflow.

version: number

version of the Cart from which the Order is created.