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!
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
statusFulfillmentOrderStatus!Fulfillment status
orderOrderAssociated order
parcels[FulfillmentParcel!]!Shipment parcels
createdAtDateTime!Creation timestamp

View complete definition: FulfillmentOrder Object Definition

Recipient Type

Customer delivery information.

FieldTypeDescription
emailString!Recipient email
firstNameString!Given name
lastNameString!Family name
phoneStringPhone number
addressAddress!Delivery address details

Address Type

Physical address information.

FieldTypeDescription
street1String!Street address line 1
street2StringStreet address line 2
cityString!City name
postCodeString!Postal code
countryString!Country code

OrderProduct Type

Product details within an order.

FieldTypeDescription
idID!Product line item ID
titleString!Product name
skuStringProduct SKU
quantityInt!Ordered quantity
priceFloat!Unit price

Collection Type (Collect)

Batch of orders for carrier pickup.

FieldTypeDescription
idID!Collection ID
organizationIdID!Organization ID
statusCollectStatus!Current collection status
fulfillmentOrders[FulfillmentOrder!]!Orders in collection
createdAtDateTime!Creation timestamp

View complete definition: Collection Object Definition

Expeditor Type

Available carrier/shipper.

FieldTypeDescription
idID!Expeditor ID
codeString!Carrier code
nameString!Carrier name
services[ExpeditorService!]!Available shipping services

View complete definition: Expeditor Object Definition

Pickup Type

Organization pickup location.

FieldTypeDescription
idID!Pickup location ID
nameString!Location name
addressAddressPickup address
schedule[PickupSchedule!]!Availability schedule

View complete definition: Pickup Object Definition


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.