Description
Topic: Orders
Fields
billing_address: AddressCreate
Billing address of an order
billing_address_short_id: String
Billing address of an order (short)
Example: "ar_EQzGqWoY"
Valid when: billing_address_short_id matches regexp pattern: ^ar_
Valid order id to clone from, if used all other parameters are ignored
Example: "or_EQzGqWoY"
Valid when: clone_from_id matches regexp pattern: ^or_
Currency to calculate the order in
Example: "USD"
Customer email, used in no auth order flows
Example: "Customer email, used in no auth order flows"
Customer id order belongs to, must be your customer id (specify this parameter to convert anonymous order to customer order)
Example: "cu_EQzGqWoY"
Valid when: customer_id matches regexp pattern: ^cu_
A discount code that can be entered by a customer on checkout
Example: "AD1241251"
Gateway used
Example: "gw_EQzGqWoY"
Valid when: gateway_id matches regexp pattern: ^gw_
line_items: [OrderLineItemCreate!]
Order line items
The mobile phone number of the customer (used for notifications)
Example: "45634634562"
Whether to notify customer via mobile phone or not
Example: false
send_fulfillment_notifications: Boolean
Should customer receive fulfillment-related notifications or not
Example: false
send_order_notifications: Boolean
Should customer receive order-related notifications or not
Example: false
shipping_address: AddressCreate
Shipping address of an order
shipping_address_short_id: String
Shipping address of an order (short)
Example: "ar_EQzGqWoY"
Valid when: shipping_address_short_id matches regexp pattern: ^ar_
Used By
Mutations
Preview (typescript)
interface StorefrontOrderCreate {billing_address?: | nullbilling_address_short_id?: stringclone_from_id?: stringcurrency?: stringcustomer_email?: stringcustomer_id?: stringdiscount_code?: stringgateway_id?: stringline_items?: []mobile?: stringmobile_notifications?: booleansend_fulfillment_notifications?: booleansend_order_notifications?: booleanshipping_address?: | nullshipping_address_short_id?: stringshipping_rate_ids?: string[]}