Skip to main content

Order Object Definition

Complete reference for the Order type in the GraphQL schema.

Overview

Represents a customer order that needs to be fulfilled. Orders contain customer information, shipping details, and the products being ordered.

Use Cases

  • Retrieve customer orders - Query all orders for a specific customer
  • Order status tracking - Monitor order status changes
  • Create new orders - Add new orders from external systems (e.g., marketplace integrations)
  • Order history - Access order details for reporting and analytics

Schema Definition

FieldArgumentTypeDescription
idID!Unique identifier for the order
refString!Order reference number
statusOrderStatus!Current order status
recipientRecipient!Recipient information for delivery
orderedAtDateTime!Timestamp when the order was placed
createdAtDateTime!Timestamp when the order was created in the system
organizationIdID!Organization that owns this order
organizationOrganization!Organization object
serviceWingService!Wing service configuration
organizationServiceOrganizationService!Organization-specific service configuration
orderProducts[OrderProduct!]!Products included in the order
fulfillmentOrders[FulfillmentOrder!]!Associated fulfillment orders for shipping
parcels[Parcel!]!Parcels created for this order
orderEvents[OrderEvent!]!Historical events for this order
anomalies[Anomaly!]!Any anomalies detected for this order
collectOrderProducts[CollectOrderProduct!]!Products for collection
claimClaimAssociated claim if applicable
channelOrderChannelOrderOriginal order from sales channel
tags[String!]!Tags for organizing and filtering orders
customLocationStringCustom location information for delivery
carrierPickupIdIDCarrier pickup point ID if applicable
carrierPickupNameStringName of the carrier pickup point
carrierPickupInfosJSONAdditional carrier pickup information
invoiceUrlStringURL to access the order invoice
isInsuranceEnabledBoolean!Whether insurance is enabled for this order
isSignatureEnabledBoolean!Whether signature is required on delivery
isSaturdayDeliveryEnabledBoolean!Whether Saturday delivery is enabled
labellingAuthorizedByStringPerson or system that authorized labelling
warehouseAnomalyToProcessStatusWarehouseAnomalyToProcessStatus!Status of anomalies to be processed
createdByOrganizationAccountIdIDOrganization account that created this order
createdByOrganizationAccountOrganizationAccountOrganization account object that created this order
createdByWingAccountIdIDWing account that created this order
createdByWingAccountWingAccountWing account object that created this order