Order
The order type. This type represents an order in the system.
type Order {
allocateToExternal: Boolean!
attachments: [File!]
autoFulfill: Boolean!
autoFulfillSettings: JSON
b2bData: EnrichmentOrderData @deprecated
b2bOrderTemplate: OrderTemplate @deprecated
billToCompany: String
billToEmail: Email
billToName: String
billToPhone: PhoneNumber
billingAddress: Address
brand: Brand!
brandId: ID!
carrierName: String
carrierService: String
createdAt: ISO8601DateTime!
createdBy: Party!
createdById: ID!
deliveredDate: ISO8601DateTime
enrichmentData: EnrichmentOrderData
estimatedWeight: Decimal!
expectedDeliveryDate: ISO8601DateTime
expectedShipDate: ISO8601DateTime
financial: OrderFinancial!
financialStatus: OrderFinancialStatusEnum!
firstShipDate: ISO8601DateTime
fulfillUnpaid: Boolean!
fulfillmentMethod: OrderFulfillmentMethodEnum!
fulfillments: [OrderFulfillment!]!
giftMessage: String
id: ID!
internalOrderNumber: String!
isB2bOrder: Boolean! @deprecated
isEnrichedOrder: Boolean!
localRouting: Boolean!
metadata: JSON
notes: [Note!]!
orderErrors: [OrderError!]
orderItems(
includeAll: Boolean = false
): [OrderItem!]!
orderNumber: String!
orderTemplate: OrderTemplate
orderType: OrderTypeEnum!
origin: OrderOriginEnum
originFulfillmentInformation: JSON
originOrderId: String
originUrl: Url
originalCarrierService: String
previousStatus: OrderStatus
requestedCarrierServiceId: String
requestedCarrierServiceName: String
responsible: Person
responsibleId: ID
routingStrategy: [RoutingStrategyEnum!]!
salesChannel: SalesChannel!
salesChannelId: ID!
selectedCarrier: Carrier @deprecated
selectedCarrierId: ID @deprecated
selectedCarrierService: CarrierService @deprecated
selectedCarrierServiceId: ID @deprecated
shipToCompany: String
shipToEmail: Email
shipToName: String
shipToPhone: PhoneNumber
shipToSameAsBillTo: Boolean!
shipments: [OrderShipmentUnion!]!
shippedDate: ISO8601DateTime @deprecated
shippingAddress: Address
shippingCarrierService: String
shippingContainers: [ShippingContainer!]!
shippingCost: Decimal
sourceIntegration: Integration
sourceIntegrationId: ID
stats: OrderStats!
status: OrderStatus!
statusAlerts: [OrderStatusAlert!]!
statusName: OrderStatusEnum!
tags: [OrderTag!]!
thirdPartyBilling: Boolean!
units: Int!
updatedAt: ISO8601DateTime!
}
Fields
Order.allocateToExternal
● Boolean!
non-null scalar
Indicates if the order can be allocated to external buildings.
Order.attachments
● [File!]
list object
The files associated with the order. This field is only available if the order has attachments.
Order.autoFulfill
● Boolean!
non-null scalar
Indicates if the order should be auto-fulfilled.
Order.autoFulfillSettings
● JSON
scalar
The autofulfill settings that are part of the order.
Order.b2bData
● EnrichmentOrderData
deprecated object
Will be removed in the future. Use enrichmentData
instead.
B2B order data for wholesale orders. Will be null for regular orders.
Order.b2bOrderTemplate
● OrderTemplate
deprecated object
Will be removed in the future. Use orderTemplate
instead.
Template applied to this special order, if any.
Order.billToCompany
● String
scalar
Order.billToEmail
● Email
scalar
Order.billToName
● String
scalar
Order.billToPhone
● PhoneNumber
scalar
Order.billingAddress
● Address
object
Order.brand
● Brand!
non-null object
The brand object of the order. User must have the read_brand
permission.
Order.brandId
● ID!
non-null scalar
Order.carrierName
● String
scalar
The name of the carrier used for the order. This field returns the carrier
name in the last shipment. For a full list of carrier names used in the order,
use shipments
field.
Order.carrierService
● String
scalar
The carrier service used for the order. This field returns the carrier service
in the last shipment. For a full list of carrier services used in the order,
use shipments
field.
Order.createdAt
● ISO8601DateTime!
non-null scalar
Order.createdBy
● Party!
non-null object
The party that created the order.
Order.createdById
● ID!
non-null scalar
Order.deliveredDate
● ISO8601DateTime
scalar
Order.enrichmentData
● EnrichmentOrderData
object
Enriched order data for wholesale orders. Will be null for regular orders.
Order.estimatedWeight
● Decimal!
non-null scalar
The estimated weight of the order. This value is calculated based on the weight of the products.
Order.expectedDeliveryDate
● ISO8601DateTime
scalar
Order.expectedShipDate
● ISO8601DateTime
scalar
Order.financial
● OrderFinancial!
non-null object
The financial information of the order.
Order.financialStatus
● OrderFinancialStatusEnum!
non-null enum
The financial status of the order.
Order.firstShipDate
● ISO8601DateTime
scalar
The date when the first item of the order was shipped.
Order.fulfillUnpaid
● Boolean!
non-null scalar
Indicates it the order will be fulfilled even if it has not been paid.
Order.fulfillmentMethod
● OrderFulfillmentMethodEnum!
non-null enum
The fulfillment method of the order. LOCAL means the order is fulfilled by Endless Commerce. PARTIALLY_PROCESSABLE means some items are fulfilled by Endless Commerce and some are fulfilled by a third party. NON_PROCESSABLE means the order is fulfilled by a third party.
Order.fulfillments
● [OrderFulfillment!]!
non-null object
The fulfillments of the order. An order can have zero or more fulfillments.
Order.giftMessage
● String
scalar
The gift message of the order.
Order.id
● ID!
non-null scalar
Order.internalOrderNumber
● String!
non-null scalar
The auto-generated internal order number. This number is used for internal purposes and is unique per order.
Order.isB2bOrder
● Boolean!
deprecated non-null scalar
Will be removed in the future. Use isEnrichedOrder
instead.
Indicates if the order has enriched data.
Order.isEnrichedOrder
● Boolean!
non-null scalar
Indicates if the order has enriched data.
Order.localRouting
● Boolean!
non-null scalar
Indicates if the order should be routed locally.
Order.metadata
● JSON
scalar
The metadata that is part of the order.
Order.notes
● [Note!]!
non-null object
The notes that are part of the order.
Order.orderErrors
● [OrderError!]
list object
The errors that are part of the order. This field is only available when
through the order
query and will return null
when no errors are present or
when called through other queries.
Order.orderItems
● [OrderItem!]!
non-null object
The products that are part of the order.
Order.orderItems.includeAll
● Boolean
scalar
Indicates if all items, including those that don't exists in the system, should be included.
Order.orderNumber
● String!
non-null scalar
Order.orderTemplate
● OrderTemplate
object
Template applied to this enriched order, if any.
Order.orderType
● OrderTypeEnum!
non-null enum
The type of the order. This can be either b2b
for wholesale orders or standard
for regular orders.
Order.origin
● OrderOriginEnum
enum
The name of the external system where the order originated.
Order.originFulfillmentInformation
● JSON
scalar
The fulfillment information from the external system.
Order.originOrderId
● String
scalar
The order ID from the external system.
Order.originUrl
● Url
scalar
The URL of the order in the external system if available.
Order.originalCarrierService
● String
scalar
Order.previousStatus
● OrderStatus
object
The previous status object of the order.
Order.requestedCarrierServiceId
● String
scalar
Order.requestedCarrierServiceName
● String
scalar
Order.responsible
● Person
object
The person that is responsible for the order.
Order.responsibleId
● ID
scalar
Order.routingStrategy
● [RoutingStrategyEnum!]!
non-null enum
The routing strategy to use when routing orders from this channel.
Order.salesChannel
● SalesChannel!
non-null object
The sales channel object of the order. User must have the read_sales_channel
permission.
Order.salesChannelId
● ID!
non-null scalar
Order.selectedCarrier
● Carrier
deprecated object
Deprecated in favor of shippingCarrierService
.
Order.selectedCarrierId
● ID
deprecated scalar
Deprecated in favor of shippingCarrierService
.
Order.selectedCarrierService
● CarrierService
deprecated object
Deprecated in favor of shippingCarrierService
.
Order.selectedCarrierServiceId
● ID
deprecated scalar
Deprecated in favor of shippingCarrierService
.
Order.shipToCompany
● String
scalar
Order.shipToEmail
● Email
scalar
Order.shipToName
● String
scalar
Order.shipToPhone
● PhoneNumber
scalar
Order.shipToSameAsBillTo
● Boolean!
non-null scalar
Indicates if the **Ship To** information is the same as the **Bill To** information.
Order.shipments
● [OrderShipmentUnion!]!
non-null union
The shipments of the order. An order can have zero or more shipments.
Order.shippedDate
● ISO8601DateTime
deprecated scalar
User firstShipDate instead
.
Order.shippingAddress
● Address
object
Order.shippingCarrierService
● String
scalar
Order.shippingContainers
● [ShippingContainer!]!
non-null object
The shipping containers of the order. An order can have zero or more shipping containers.
Order.shippingCost
● Decimal
scalar
Order.sourceIntegration
● Integration
object
The integration object that received this order.
Order.sourceIntegrationId
● ID
scalar
The ID for the integration that received this order.
Order.stats
● OrderStats!
non-null object
The statistics of the order.
Order.status
● OrderStatus!
non-null object
The status object of the order.
Order.statusAlerts
● [OrderStatusAlert!]!
non-null object
The alerts associated with the status.
Order.statusName
● OrderStatusEnum!
non-null enum
The code name of the order status.
Order.tags
● [OrderTag!]!
non-null object
The tags assigned to the order. Tags in the order are used to enable processing functionality and to categorize orders.
Order.thirdPartyBilling
● Boolean!
non-null scalar
Indicates if the order shipping is billed to a third party.
Order.units
● Int!
non-null scalar
The total number of units in the order. This is the sum of the quantity of each item in the order.
Order.updatedAt
● ISO8601DateTime!
non-null scalar
Returned By
allocateOrder
mutation ● createOrder
mutation ● order
query ● ordersSaveB2bData
mutation ● ordersSaveEnrichmentData
mutation ● shipOrderManually
mutation ● unfulfillOrder
mutation ● updateOrder
mutation
Member Of
EnrichmentOrderData
object ● OrderConnection
object ● OrderEdge
object ● OrderFulfillment
object ● OrderStatus
object ● OrderStatusAlert
object ● ShippingContainer
object