Orders, order attribution, and refunds.
Queries
orderAttribution
A single OrderAttribution by ID
Arguments
id(ID!) — The unique identifier of the OrderAttribution
Returns: OrderAttribution — A conversion linked to an Order & one or more Messages
orderAttributionsByIds
A list of OrderAttributions by IDs
Arguments
ids([ID!]!) — The IDs of the OrderAttributions
Returns: [OrderAttribution]! — A conversion linked to an Order & one or more Messages
searchOrderAttributions
Searches OrderAttributions
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)filters([SearchFilterInput!]) — A set of filters to applyfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)sortBy(SortOrderAttributionsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: OrderAttributionConnection! — A connection to a list of items.
Objects
IntegratedOrder
An order from an Integration
Fields
assisted_by([UserProfile]!) — The users that assisted with the IntegratedOrder — 🚧 Deprecated: Use data insteadchannel(String) — The order channel of the IntegratedOrder — 🚧 Deprecated: Use data insteadcreated_at(DateTime!) — The date the IntegratedOrder was createdcustomer(Customer) — The customer that placed the IntegratedOrderdata(IntegratedOrderFields) — The associated data of the IntegratedOrderdeleted_at(DateTime) — The date the IntegratedOrder was deleteddiscount_codes([String!]!) — The discount codes of the IntegratedOrder — 🚧 Deprecated: Use data insteadexternal_created_at(DateTime!) — The date the IntegratedOrder was created externally — 🚧 Deprecated: Use processed_at insteadexternal_id(ID!) — The unique external identifier of the IntegratedOrderexternal_status(String) — The external status of the IntegratedOrder — 🚧 Deprecated: Use data insteadfulfillments([IntegratedOrderFulfillment!]!) — The fulfillments associated with the IntegratedOrder — 🚧 Deprecated: Use data insteadid(ID) — The unique identifier of the IntegratedOrderintegrated_customer(IntegratedCustomer) — The IntegratedCustomer that placed the IntegratedOrderintegrated_location(IntegratedLocation!) — The location associated to the IntegratedOrderintegrated_order_items(IntegratedOrderItemConnection!) — The items associated with the IntegratedOrderintegrated_order_refunds(IntegratedOrderRefundConnection!) — The items associated with the IntegratedOrderintegrated_refunds([IntegratedOrderRefund!]!) — The refunds associated with the IntegratedOrder — 🚧 Deprecated: Use integrated_order_refunds insteadintegration(Integration!) — The integration associated with the IntegratedOrderlegacy_id(ID!) — The unique legacy identifier of the IntegratedOrdernote(String) — The note of the IntegratedOrder — 🚧 Deprecated: Use data insteadnumber(String) — The order number of the IntegratedOrder — 🚧 Deprecated: Use data insteadorder_attribution(OrderAttribution) — The attribution of the IntegratedOrderprocessed_at(DateTime!) — The date the IntegratedOrder was processedprocessed_by(UserProfile) — The user that processed the IntegratedOrder — 🚧 Deprecated: Use data insteadstatus(IntegratedOrderStatus!) — The status of the IntegratedOrder — 🚧 Deprecated: Use data insteadsubtotal_amount(Money!) — The subtotal amount of the IntegratedOrder — 🚧 Deprecated: Use data insteadtags([String!]!) — The tags of the IntegratedOrder — 🚧 Deprecated: Use data insteadtotal_amount(Money!) — The total amount of the IntegratedOrder — 🚧 Deprecated: Use data insteadtotal_discount_amount(Money!) — The total discount amount of the IntegratedOrder — 🚧 Deprecated: Use data insteadtotal_shipping_amount(Money!) — The total shipping amount of the IntegratedOrder — 🚧 Deprecated: Use data insteadtotal_tax_amount(Money!) — The total tax amount of the IntegratedOrder — 🚧 Deprecated: Use data insteadupdated_at(DateTime!) — The date the IntegratedOrder was updated
IntegratedOrderFields
The fields from an IntegratedOrder from an Integration
Fields
assisted_by([UserProfile]!) — The users that assisted with the IntegratedOrderchannel(String) — The order channel of the IntegratedOrderdiscount_codes([String!]!) — The discount codes of the IntegratedOrderexternal_status(String) — The external status of the IntegratedOrderfulfillments([IntegratedOrderFulfillment!]!) — The fulfillments associated with the IntegratedOrdernote(String) — The note of the IntegratedOrdernumber(String) — The order number of the IntegratedOrderprocessed_by(UserProfile) — The user that processed the IntegratedOrderstatus(IntegratedOrderStatus!) — The status of the IntegratedOrdersubtotal_amount(Money!) — The subtotal amount of the IntegratedOrdertags([String!]!) — The tags of the IntegratedOrdertotal_amount(Money!) — The total amount of the IntegratedOrdertotal_discount_amount(Money!) — The total discount amount of the IntegratedOrdertotal_shipping_amount(Money!) — The total shipping amount of the IntegratedOrdertotal_tax_amount(Money!) — The total tax amount of the IntegratedOrder
IntegratedOrderFulfillment
A fulfillment of an IntegratedOrder
Fields
line_item_ids([ID!]!) — The line item ids of the IntegratedOrderFulfillmentshipment_status(IntegratedOrderFulfillmentShipmentStatus!) — The shipment status of the IntegratedOrderFulfillmentstatus(IntegratedOrderFulfillmentStatus!) — The status of the IntegratedOrderFulfillmenttracking_company(String) — The tracking company of the IntegratedOrderFulfillmenttracking_numbers([String!]!) — The tracking numbers of the IntegratedOrderFulfillmenttracking_urls([URL!]!) — The tracking numbers of the IntegratedOrderFulfillment
IntegratedOrderItem
An order item from an Integration
Fields
created_at(DateTime!) — The date the IntegrationOrderItem was createddata(IntegratedOrderItemFields) — The associated data of the IntegrationOrderItemlegacy_id(ID!) — The unique identifier of the IntegrationOrderItemline_item_id(String) — The line item id of the IntegrationOrderItem — 🚧 Deprecated: Use data insteadproduct(Product) — The associated product of the IntegrationOrderItemproduct_variant(ProductVariant) — The associated product of the IntegrationOrderItemquantity(Int!) — The quantity of the IntegrationOrderItem — 🚧 Deprecated: Use data insteadsku(String) — The sku of the IntegrationOrderItem — 🚧 Deprecated: Use data insteadtitle(String) — The title of the IntegrationOrderItem — 🚧 Deprecated: Use data insteadupdated_at(DateTime!) — The date the IntegrationOrderItem was updatedvendor(String) — The vendor of the IntegrationOrderItem — 🚧 Deprecated: Use data instead
IntegratedOrderItemConnection
A connection to a list of items.
Fields
edges([IntegratedOrderItemEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.
IntegratedOrderItemEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(IntegratedOrderItem) — The item at the end of the edge
IntegratedOrderItemFields
The fields from an IntegratedItem from an Integration
Fields
line_item_id(ID) — The line item id of the IntegrationOrderItemline_item_product_id(ID) — The product id of the IntegrationOrderItemline_item_product_variant_id(ID) — The product variant id of the IntegrationOrderItemoptions([IntegratedOrderItemOption!]!) — The options of the IntegratedOrderItemquantity(Int!) — The quantity of the IntegrationOrderItemsku(String) — The sku of the IntegrationOrderItemtitle(String) — The title of the IntegrationOrderItemvendor(String) — The vendor of the IntegrationOrderItem
IntegratedOrderItemOption
Fields
key(ID!) — The key of the IntegratedOrderItemOptionvalues([String!]!) — The values of the IntegratedOrderItemOption
IntegratedOrderRefund
An order refund from an Integration
Fields
created_at(DateTime!) — The date the IntegrationOrderRefund was createddata(IntegratedOrderRefundFields) — The associated data of the IntegrationOrderRefundlegacy_id(ID!) — The unique identifier of the IntegrationOrderRefundline_item_ids([ID!]!) — The line item ids of the IntegrationOrderRefund — 🚧 Deprecated: Use data insteadrefund_amount(Money!) — The total discount amount of the IntegrationOrder — 🚧 Deprecated: Use data insteadupdated_at(DateTime!) — The date the IntegrationOrderRefund was updated
IntegratedOrderRefundConnection
A connection to a list of items.
Fields
edges([IntegratedOrderRefundEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.
IntegratedOrderRefundEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(IntegratedOrderRefund) — The item at the end of the edge
IntegratedOrderRefundFields
The fields from an IntegratedRefund from an Integration
Fields
line_item_ids([ID!]!) — The line item ids of the IntegrationOrderRefundrefund_amount(Money!) — The total discount amount of the IntegrationOrderRefund
OrderAttribution
A conversion linked to an Order & one or more Messages
Fields
attributable_amount_absolute(Money!) — The total purchase amount attributed to the OrderAttributionconverted_at(DateTime!) — The date of the Ordercreated_at(DateTime!) — The date the OrderAttribution was createdcurrency(Currency!) — The currency of the OrderAttributiondeleted_at(DateTime) — The date the OrderAttribution was deleteddiscount_codes([String!]!) — The discount codes associated to the Order — 🚧 Deprecated: Use the integrated_order insteaddiscounts_absolute(Money!) — The total discount value of the Order — 🚧 Deprecated: Use the integrated_order insteadexternal_id(ID!) — The external unique identifier of the Order — 🚧 Deprecated: Use the integrated_order insteadid(ID!) — The unique identifier of the OrderAttributionintegrated_order(IntegratedOrder) — The IntegratedOrder of the OrderAttributionmanually_excluded_at(DateTime) — The date the OrderAttribution was manually excludedmessage_attributions([MessageAttribution!]!) — The MessageAttributions attributed to the OrderAttributionorder_number(String) — The order number of the OrderAttribution — 🚧 Deprecated: Use the integrated_order insteadorder_source(String) — The order source of the OrderAttribution — 🚧 Deprecated: Use the integrated_order insteadshipping_absolute(Money!) — The total shipping value of the Order — 🚧 Deprecated: Use the integrated_order insteadstatus(OrderAttributionStatus!) — The order status of the OrderAttributionsubtotal_absolute(Money!) — The subtotal value of the Order — 🚧 Deprecated: Use the integrated_order insteadtags([String!]!) — The tags associated to the Order — 🚧 Deprecated: Use the integrated_order insteadtax_absolute(Money!) — The total tax value of the Order — 🚧 Deprecated: Use the integrated_order insteadtotal_absolute(Money!) — The total value of the Order — 🚧 Deprecated: Use the integrated_order insteadtotal_refund_absolute(Money!) — The total refund value of the Order — 🚧 Deprecated: Use the integrated_order insteadupdated_at(DateTime!) — The date the OrderAttribution was last updated
OrderAttributionConnection
A connection to a list of items.
Fields
edges([OrderAttributionEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.
OrderAttributionEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(OrderAttribution) — The item at the end of the edge
Input Objects
ExternalOrderChannelInput
An ExternalOrderChannel to be added/updated
Fields
id(ID!) — The id of the ExternalOrderChannellabel(String) — The label of the ExternalOrderChanneltype(ExternalOrderChannelType!) — The type of the ExternalOrderChannel
ExternalOrderFulfillmentInput
Fields
order_item_ids([ID!]) — The unique identifiers of the ExternalOrderItems of the ExternalOrderFulfillmentshipment_status(ExternalOrderFulfillmentShipmentStatus!) — The shipment status of the ExternalOrderFulfillmentstatus(ExternalOrderFulfillmentStatus!) — The status of the ExternalOrderFulfillmenttracking_company(String!) — The tracking company of the ExternalOrderFulfillmenttracking_numbers([String!]!) — The tracking numbers of the ExternalOrderFulfillmenttracking_urls([URL!]!) — The tracking URLs of the ExternalOrderFulfillment
ExternalOrderInput
An ExternalOrder to be added/updated
Fields
assisted_by_user_ids([ID!]) — The unique identifiers of the ExternalUsers assisting the ExternalOrdercancelled_at(DateTime) — The date the ExternalOrder was cancelledchannel(ExternalOrderChannelInput!) — The channel of the ExternalOrdercreated_at(DateTime) — The date the ExternalOrder was createdcurrency(Currency!) — The currency of the ExternalOrdercustomer_id(ID) — The unique identifier of the ExternalCustomer associated with the ExternalOrderdeleted_at(DateTime) — The date the ExternalOrder was deleteddiscount_codes([String!]) — The discount codes to associate to the ExternalOrderfulfillments_lines([ExternalOrderFulfillmentInput!]) — The ExternalOrderFulfillments associated to the ExternalOrderid(ID!) — The unique identifier of the ExternalOrderlocation_id(ID!) — The unique identifier of the ExternalLocation associated with the ExternalOrdernumber(String!) — The order number of the ExternalOrderprocessed_at(DateTime!) — The date the ExternalOrder was processedprocessed_by_user_id(ID) — The unique identifier of the ExternalUser that processed the ExternalOrdersubtotal_amount(MoneyInput!) — The subtotal amount of the ExternalOrdertags([String!]) — Tags to associate to the ExternalOrdertotal_amount(MoneyInput!) — The total amount of the ExternalOrdertotal_discount_amount(MoneyInput!) — The total discount amount of the ExternalOrdertotal_shipping_amount(MoneyInput!) — The total shipping amount of the ExternalOrdertotal_tax_amount(MoneyInput!) — The total tax amount of the ExternalOrderupdated_at(DateTime) — The date the ExternalOrder was last updated
ExternalOrderItemInput
An ExternalOrderItem to be added/updated
Fields
created_at(DateTime) — The date the ExternalOrderItem was createddeleted_at(DateTime) — The date the ExternalOrderItem was deletedid(ID!) — The unique identifier of the ExternalOrderItemorder_id(ID!) — The unique identifier of the ExternalOrder associated with the ExternalOrderItemproduct_gid(ID) — The globally unique identifier of the ExternalProduct associated with the ExternalOrderItem. Use this field if you want to pass an ID from a different integration.product_id(ID) — The unique identifier of the ExternalProduct associated with the ExternalOrderItem. Use this field if you want to pass an ID from the same integration.product_variant_gid(ID) — The globally unique identifier of the ExternalProductVariant associated with the ExternalOrderItem. Use this field if you want to pass an ID from a different integration.product_variant_id(ID) — The unique identifier of the ExternalProductVariant associated with the ExternalOrderItem. Use this field if you want to pass an ID from the same integration.quantity(PositiveInt!) — The quantity of the ExternalOrderItemsku(String) — The SKU of the ExternalOrderItemsubtotal_amount(MoneyInput!) — The subtotal amount of the ExternalOrderItemtitle(String) — The title of the ExternalOrderItemtotal_discount_amount(MoneyInput!) — The total discount amount of the ExternalOrderItemtotal_tax_amount(MoneyInput!) — The total tax amount of the ExternalOrderItemupdated_at(DateTime) — The date the ExternalOrderItem was last updatedvendor(String) — The vendor of the ExternalOrderItem
ExternalRefundInput
An ExternalRefund to be added/updated
Fields
created_at(DateTime) — The date the ExternalRefund was createddeleted_at(DateTime) — The date the ExternalRefund was deletedid(ID!) — The unique identifier of the ExternalRefundoriginal_order_id(ID!) — The unique identifier of the original ExternalOrder associated with the ExternalRefundoriginal_order_item_id(ID) — The unique identifier of the original ExternalRefund associated with the ExternalRefundprocessed_at(DateTime) — The date the ExternalRefund was createdproduct_gid(ID) — The globally unique identifier of the ExternalProduct associated with the ExternalRefund. Use this field if you want to pass an ID from a different integration.product_id(ID) — The unique identifier of the ExternalProduct associated with the ExternalRefund. Use this field if you want to pass an ID from the same integration.product_variant_gid(ID) — The globally unique identifier of the ExternalProductVariant associated with the ExternalRefund. Use this field if you want to pass an ID from a different integration.product_variant_id(ID) — The unique identifier of the ExternalProductVariant associated with the ExternalRefund. Use this field if you want to pass an ID from the same integration.quantity(PositiveInt!) — The quantity of the ExternalRefundsubtotal_amount(MoneyInput!) — The subtotal amount of the ExternalRefundtotal_tax_amount(MoneyInput!) — The total tax amount of the ExternalRefundupdated_at(DateTime) — The date the ExternalRefund was last updated
Enums
ExternalOrderChannelType
Values
CUSTOMMOBILE_APPPOSWEB
ExternalOrderFulfillmentShipmentStatus
Values
DELIVERED— The shipment has been deliveredFAILED— The shipment has failed to be completedIN_TRANSIT— The shipment is in transitNOT_TRACKED— The shipment is not being trackedPENDING— The shipment is awaiting other actions before it can beginREADY_FOR_PICKUP— The shipment is ready for pickup
ExternalOrderFulfillmentStatus
Values
CANCELLED— The fulfillment was cancelledFULFILLED— The fulfillment has been completedNOT_TRACKED— The fulfillment is not being trackedOPEN— The fulfillment is being processedPENDING— The fulfillment is awaiting other actions being taken before it can begin processing
IntegratedOrderFulfillmentShipmentStatus
Values
ATTEMPTED_DELIVERYDELAYEDDELIVEREDFAILEDIN_TRANSITNOT_TRACKEDOUT_FOR_DELIVERYPENDINGPICKED_UPREADY_FOR_PICKUP
IntegratedOrderFulfillmentStatus
Values
CANCELLEDFULFILLEDNOT_TRACKEDOPENPENDING
IntegratedOrderStatus
Values
CANCELLEDCLOSEDINCOMPLETEOPEN
OrderAttributionStatus
Values
CANCELLEDCLOSEDOPENPARTIALLY_REFUNDED
SortOrderAttributionsBy
The available keys to sort OrderAttributions
Values
CONVERTED_ATCREATED_ATUPDATED_AT
