Home > @vsf-enterprise/commercetools-types > Order

# Order type

An order can be created from a cart, usually after a checkout process has been completed. [documentation](https://docs.commercetools.com/http-api-projects-orders.html)

Signature:

export declare type Order = Versioned & {
    __typename?: 'Order';
    customerId?: Maybe<Scalars['String']>;
    customer?: Maybe<Customer>;
    customerEmail?: Maybe<Scalars['String']>;
    anonymousId?: Maybe<Scalars['String']>;
    lineItems: Array<LineItem>;
    customLineItems: Array<CustomLineItem>;
    totalPrice: Money;
    taxedPrice?: Maybe<TaxedPrice>;
    shippingAddress?: Maybe<Address>;
    billingAddress?: Maybe<Address>;
    inventoryMode: InventoryMode;
    taxMode: TaxMode;
    taxRoundingMode: RoundingMode;
    taxCalculationMode: TaxCalculationMode;
    customerGroup?: Maybe<CustomerGroup>;
    customerGroupRef?: Maybe<Reference>;
    country?: Maybe<Scalars['Country']>;
    shippingInfo?: Maybe<ShippingInfo>;
    discountCodes: Array<DiscountCodeInfo>;
    refusedGifts: Array<CartDiscount>;
    refusedGiftsRefs: Array<Reference>;
    paymentInfo?: Maybe<PaymentInfo>;
    locale?: Maybe<Scalars['Locale']>;
    shippingRateInput?: Maybe<ShippingRateInput>;
    origin: CartOrigin;
    storeRef?: Maybe<KeyReference>;
    store?: Maybe<Store>;
    itemShippingAddresses: Array<Address>;
    completedAt?: Maybe<Scalars['DateTime']>;
    orderNumber?: Maybe<Scalars['String']>;
    orderState: OrderState;
    stateRef?: Maybe<Reference>;
    state?: Maybe<State>;
    shipmentState?: Maybe<ShipmentState>;
    paymentState?: Maybe<PaymentState>;
    syncInfo: Array<SyncInfo>;
    returnInfo: Array<ReturnInfo>;
    lastMessageSequenceNumber: Scalars['Long'];
    cartRef?: Maybe<Reference>;
    cart?: Maybe<Cart>;
    custom?: Maybe<CustomFieldsType>;
    id: Scalars['String'];
    version: Scalars['Long'];
    createdAt: Scalars['DateTime'];
    lastModifiedAt: Scalars['DateTime'];
    createdBy?: Maybe<Initiator>;
    lastModifiedBy?: Maybe<Initiator>;
};

References: Versioned, Maybe, Scalars, Customer, LineItem, CustomLineItem, Money, TaxedPrice, Address, InventoryMode, TaxMode, RoundingMode, TaxCalculationMode, CustomerGroup, Reference, ShippingInfo, DiscountCodeInfo, CartDiscount, PaymentInfo, ShippingRateInput, CartOrigin, KeyReference, Store, OrderState, State, ShipmentState, PaymentState, SyncInfo, ReturnInfo, Cart, CustomFieldsType, Initiator