GitHub

ShopifyOrder

interface

import { ShopifyOrder } from '@daffodil/driver/shopify'

An order is a customer’s completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time they provides an email address, billing address and payment information.

interface ShopifyOrder {
  __typename: "Order"
  billingAddress: ShopifyMailingAddress
  cancelReason: ShopifyOrderCancelReason
  canceledAt: Maybe<Scalars['DateTime']['output']>
  currencyCode: ShopifyCurrencyCode
  currentSubtotalPrice: ShopifyMoneyV2
  currentTotalDuties: ShopifyMoneyV2
  currentTotalPrice: ShopifyMoneyV2
  currentTotalTax: ShopifyMoneyV2
  customAttributes: ShopifyAttribute[]
  customerLocale: string
  customerUrl: Maybe<Scalars['URL']['output']>
  discountApplications: ShopifyDiscountApplicationConnection
  edited: boolean
  email: string
  financialStatus: ShopifyOrderFinancialStatus
  fulfillmentStatus: ShopifyOrderFulfillmentStatus
  id: string
  lineItems: ShopifyOrderLineItemConnection
  metafield: ShopifyMetafield
  metafields: ShopifyMetafield[]
  name: string
  orderNumber: number
  originalTotalDuties: ShopifyMoneyV2
  originalTotalPrice: ShopifyMoneyV2
  phone: string
  processedAt: Scalars['DateTime']['output']
  shippingAddress: ShopifyMailingAddress
  shippingDiscountAllocations: ShopifyDiscountAllocation[]
  statusUrl: Scalars['URL']['output']
  subtotalPrice: ShopifyMoneyV2
  subtotalPriceV2: ShopifyMoneyV2
  successfulFulfillments: ShopifyFulfillment[]
  totalPrice: ShopifyMoneyV2
  totalPriceV2: ShopifyMoneyV2
  totalRefunded: ShopifyMoneyV2
  totalRefundedV2: ShopifyMoneyV2
  totalShippingPrice: ShopifyMoneyV2
  totalShippingPriceV2: ShopifyMoneyV2
  totalTax: ShopifyMoneyV2
  totalTaxV2: ShopifyMoneyV2
}

Properties

__typename
"Order"
billingAddress
ShopifyMailingAddress

The address associated with the payment method.

cancelReason
ShopifyOrderCancelReason

The reason for the order's cancellation. Returns null if the order wasn't canceled.

canceledAt
Maybe<Scalars['DateTime']['output']>

The date and time when the order was canceled. Returns null if the order wasn't canceled.

currencyCode
ShopifyCurrencyCode

The code of the currency used for the payment.

currentSubtotalPrice
ShopifyMoneyV2

The subtotal of line items and their discounts, excluding line items that have been removed. Does not contain order-level discounts, duties, shipping costs, or shipping discounts. Taxes aren't included unless the order is a taxes-included order.

currentTotalDuties
ShopifyMoneyV2

The total cost of duties for the order, including refunds.

currentTotalPrice
ShopifyMoneyV2

The total amount of the order, including duties, taxes and discounts, minus amounts for line items that have been removed.

currentTotalTax
ShopifyMoneyV2

The total of all taxes applied to the order, excluding taxes for returned line items.

customAttributes
ShopifyAttribute[]

A list of the custom attributes added to the order. For example, whether an order is a customer's first.

customerLocale
string

The locale code in which this specific order happened.

customerUrl
Maybe<Scalars['URL']['output']>

The unique URL that the customer can use to access the order.

discountApplications
ShopifyDiscountApplicationConnection

Discounts that have been applied on the order.

edited
boolean

Whether the order has had any edits applied or not.

email
string

The customer's email address.

financialStatus
ShopifyOrderFinancialStatus

The financial status of the order.

fulfillmentStatus
ShopifyOrderFulfillmentStatus

The fulfillment status for the order.

id
string

A globally-unique ID.

lineItems
ShopifyOrderLineItemConnection

List of the order’s line items.

metafield
ShopifyMetafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

metafields
ShopifyMetafield[]

A list of custom fields that a merchant associates with a Shopify resource.

name
string

Unique identifier for the order that appears on the order. For example, #1000 or _Store1001.

orderNumber
number

A unique numeric identifier for the order for use by shop owner and customer.

originalTotalDuties
ShopifyMoneyV2

The total cost of duties charged at checkout.

originalTotalPrice
ShopifyMoneyV2

The total price of the order before any applied edits.

phone
string

The customer's phone number for receiving SMS notifications.

processedAt
Scalars['DateTime']['output']

The date and time when the order was imported. This value can be set to dates in the past when importing from other systems. If no value is provided, it will be auto-generated based on current date and time.

shippingAddress
ShopifyMailingAddress

The address to where the order will be shipped.

shippingDiscountAllocations
ShopifyDiscountAllocation[]

The discounts that have been allocated onto the shipping line by discount applications.

statusUrl
Scalars['URL']['output']

The unique URL for the order's status page.

subtotalPrice
ShopifyMoneyV2

Price of the order before shipping and taxes.

subtotalPriceV2
ShopifyMoneyV2

Price of the order before duties, shipping and taxes.

successfulFulfillments
ShopifyFulfillment[]

List of the order’s successful fulfillments.

totalPrice
ShopifyMoneyV2

The sum of all the prices of all the items in the order, duties, taxes and discounts included (must be positive).

totalPriceV2
ShopifyMoneyV2

The sum of all the prices of all the items in the order, duties, taxes and discounts included (must be positive).

totalRefunded
ShopifyMoneyV2

The total amount that has been refunded.

totalRefundedV2
ShopifyMoneyV2

The total amount that has been refunded.

totalShippingPrice
ShopifyMoneyV2

The total cost of shipping.

totalShippingPriceV2
ShopifyMoneyV2

The total cost of shipping.

totalTax
ShopifyMoneyV2

The total cost of taxes.

totalTaxV2
ShopifyMoneyV2

The total cost of taxes.