Skip to main content

V3 API Schema

This page documents the GraphQL schema for the Wing V3 API. The schema defines the Query and Mutation operations available, along with their associated input and return types.

Below you'll find all available operations and an interactive reference of core types with links to their complete definitions and usage examples.

Query

The Query type defines the read operations available in the V3 API.

FieldArgumentTypeDescription
collects[Collect!]!Retrieve a list of collects
inputCollectsInput!
fulfillmentOrderFulfillmentOrder!Retrieve a single fulfillment order by ID
inputFulfillmentOrderInput!
fulfillmentOrders[FulfillmentOrder!]!Retrieve a list of fulfillment orders
inputFulfillmentOrdersInput!
orderOrder!Retrieve a single order by ID or reference
inputOrderInput!
orders[Order!]!Retrieve a list of orders
inputOrdersInput!
organizationExpeditors[OrganizationExpeditor!]!Retrieve a list of organization expeditors
inputOrganizationExpeditorsInput!
organizationPickups[OrganizationPickup!]!Retrieve a list of organization pickups
inputOrganizationPickupsInput!

Mutation

The Mutation type defines the write operations available in the V3 API.

FieldArgumentTypeDescription
addFulfillmentOrdersToCollectAddFulfillmentOrdersToCollectResult!Add fulfillment orders to a collect
inputAddFulfillmentOrdersToCollectInput!
cancelFulfillmentOrderParcelsCancelFulfillmentOrderParcelsResult!Cancel parcels for fulfillment orders
inputCancelFulfillmentOrderParcelsInput!
createFulfillmentOrderFulfillmentOrder!Create a new fulfillment order
inputCreateFulfillmentOrderInput!
createFulfillmentParcelFulfillmentOrder!Create a parcel for a fulfillment order
inputCreateFulfillmentParcelInput!
createFulfillmentReturnParcelFulfillmentOrder!Create a return parcel for a fulfillment order
inputCreateFulfillmentReturnParcelInput!
createOrderOrder!Create a new order
inputOrderToCreateInput!
createReturnFulfillmentOrderFulfillmentOrder!Create a return fulfillment order
inputCreateReturnFulfillmentOrderInput!
deleteFulfillmentOrdersDeleteFulfillmentOrdersResult!Delete fulfillment orders. Returns successfully deleted items and partial error details. Max 100 IDs per request.
fulfillmentOrderIds[ID!]!
deleteOrdersDeleteOrdersResult!Delete orders. Returns successfully deleted items and partial error details. Max 100 IDs per request.
orderIds[ID!]!
mergeFulfillmentOrderMergeFulfillmentOrderResult!Merge fulfillment orders
inputMergeFulfillmentOrderInput!
migrateFulfillmentOrderMigrateFulfillmentOrderResult!Migrate a fulfillment order
inputMigrateFulfillmentOrderInput!
removeFulfillmentOrdersFromCollectRemoveFulfillmentOrdersFromCollectResult!Remove fulfillment orders from a collect
inputRemoveFulfillmentOrdersFromCollectInput!
splitFulfillmentOrderSplitFulfillmentOrderResult!Split a fulfillment order
inputSplitFulfillmentOrderInput!
upsertNextCollectCollect!Create or update the next collect
inputUpsertNextCollectInput!

Core Types

This section provides an overview of the main types used throughout the GraphQL API. Each type contains fields that may themselves be complex types - click on any type name to explore its complete definition.

Order Type

The primary object representing a customer order.

FieldTypeDescription
idID!Unique order identifier
refString!Order reference number
statusOrderStatus!Current order status
recipientRecipientDelivery recipient details
orderedAtDateTime!When the order was placed
orderProducts[OrderProduct!]!Products in the order
fulfillmentOrders[FulfillmentOrder!]!Associated fulfillment orders

View complete definition: Order Object Definition

FulfillmentOrder Type

Represents fulfillment operations for orders.

FieldTypeDescription
idID!Unique fulfillment order ID
orderIdID!ID of the parent order
wingRefString!Wing system reference
statusFulfillmentOrderStatus!Fulfillment status
serviceWingService!Wing service used
isReturnBoolean!Whether this is a return fulfillment order
orderOrderAssociated order
parcels[Parcel!]!Shipment parcels
createdAtDateTime!Creation timestamp

View complete definition: FulfillmentOrder Object Definition

Recipient Type

Delivery recipient information, embedded in an Order.

FieldTypeDescription
idID!Unique recipient identifier
orderIdID!ID of the parent order
firstNameStringFirst name
lastNameString!Last name
fullNameString!Full name
emailStringEmail address
phoneString!Phone number
companyStringCompany name
line1String!Street address line 1
line2StringStreet address line 2
additionalStringAdditional address information
cityString!City
zipString!Postal code
countryCodeString!ISO 3166-1 alpha-2 country code
createdAtDateTime!Creation timestamp
orderOrder!The parent order object

OrderProduct Type

Product line item within an order.

FieldTypeDescription
orderIdID!ID of the parent order
productIdID!ID of the product
quantityInt!Ordered quantity
createdAtDateTime!Creation timestamp
orderOrder!The parent order object
productProduct!The product object

Collection Type (Collect)

Batch of fulfillment orders grouped for a carrier pickup.

FieldTypeDescription
idID!Collection ID
statusCollectStatus!Current collection status
isPlannedBoolean!Whether this collect is planned
shouldStartAtDateTime!Scheduled start time
shouldEndAtDateTime!Scheduled end time
parcelsCountInt!Total number of parcels
receivedParcelsCountInt!Number of parcels received by carrier
organizationPickupIdID!ID of the associated pickup point
organizationPickupOrganizationPickup!The associated pickup point object
createdAtDateTime!Creation timestamp

View complete definition: Collection Object Definition

OrganizationExpeditor Type

Carrier/expeditor configured for an organization.

FieldTypeDescription
idID!Expeditor ID
organizationIdID!Organization that owns this expeditor
companyString!Company name
emailString!Contact email
phoneString!Contact phone
line1String!Street address line 1
cityString!City
zipString!Postal code
countryCodeString!Country code
createdAtDateTime!Creation timestamp
organizationPickup[OrganizationPickup!]!Pickup points linked to this expeditor

View complete definition: Expeditor Object Definition

OrganizationPickup Type

Pickup point configured for an organization.

FieldTypeDescription
idID!Pickup point ID
organizationIdID!Organization that owns this pickup
friendlyNameString!Display name for this pickup point
line1String!Street address line 1
cityString!City
zipString!Postal code
countryCodeString!Country code
phoneString!Contact phone
emailString!Contact email
timezoneString!Timezone for scheduled collects
areMultiDailyCollectsAuthorizedBoolean!Whether multiple daily collects are allowed
organizationExpeditorIdID!Associated expeditor ID
createdAtDateTime!Creation timestamp

View complete definition: Pickup Object Definition

Parcel Type

Physical shipment unit associated with a fulfillment order.

FieldTypeDescription
idID!Unique parcel identifier
orderIdID!ID of the parent order
trackingIdString!Carrier tracking number
trackingURLStringURL to track the parcel on the carrier website
labelURLString!URL to download the shipping label
statusParcelStatus!Current parcel status
carrierServiceCarrierService!Carrier and service used for this parcel
carrierStatusStringRaw carrier status string
isReturnBoolean!Whether this is a return parcel
createdAtDateTime!Creation timestamp
organizationExpeditorOrganizationExpeditor!Expeditor associated with this parcel
orderOrder!The parent order object
parcelProducts[ParcelProduct!]!Products included in this parcel
anomalies[Anomaly!]!Anomalies detected for this parcel
parcelEvents[ParcelEvent]!Tracking events for this parcel

View complete definition: Parcel Object Definition

DeleteOrdersResult Type

Result returned by the deleteOrders mutation. Supports partial success — orders that could not be deleted are listed in the error field.

FieldTypeDescription
orders[Order!]!Successfully deleted orders
errorDeleteOrdersErrorIDs that could not be deleted

DeleteOrdersError Type

FieldTypeDescription
alreadyLabelOrderIds[ID!]!Orders that already have a label generated
inCollectOrderIds[ID!]!Orders currently in a collect
notFoundOrderIds[ID!]!Order IDs not found
withInvalidStatusOrderIds[ID!]!Orders with a status that prevents deletion

DeleteFulfillmentOrdersResult Type

Result returned by the deleteFulfillmentOrders mutation. Supports partial success — fulfillment orders that could not be deleted are listed in the error field.

FieldTypeDescription
fulfillmentOrders[FulfillmentOrder!]!Successfully deleted fulfillment orders
errorDeleteFulfillmentOrdersErrorIDs that could not be deleted

DeleteFulfillmentOrdersError Type

FieldTypeDescription
alreadyLabelledIds[ID!]!Fulfillment orders that already have a label
inCollectIds[ID!]!Fulfillment orders currently in a collect
statusNotAllowedIds[ID!]!Fulfillment orders with a status that prevents deletion
notFoundIds[ID!]!Fulfillment order IDs not found

Navigation Tip: Click on any type name (shown in brackets like [Order](#order-type)) to jump to that type's details on this page. Then use the "View complete definition" links to access full documentation including all fields, nested types, and usage examples.