Shopify - New/updated draft order trigger

This trigger checks for new or updated draft orders in Shopify on every poll interval. An order is a customer's request to purchase one or more products from a shop. Each new order is processed as a new job.

Refer to the Shopify documentation for more information on the order resource.

Input

FieldDescription
Trigger poll intervalSet the frequency at which Workato checks for new or updated draft orders.
When first started, this recipe should pick up events fromGet orders since the given date/time. Leave empty to get all orders created from time when recipe is first started. After a recipe has been run or tested, this value cannot be changed. Refer to Triggers to learn more about this input field.
Order statusChoose from Open, Archived, Canceled, Any. Defaults to Open

Output

FieldDescription
Order IDThe order ID.
Send receiptWhether a confirmation was sent to the customer.
Send fulfillment receiptWhether a fulfillment confirmation was sent to the customer.
EmailCustomer's email address
NameOrder name. For example, #1001
NoteNotes about the order.
Fulfillment statusValid values: fulfilled, null, partial
Tax linesA list of tax line objects, each of which details a tax applied to the item. Each tax line includes:
- Title
- Price
- Price set
- Rate
Currency codeThe currency code.
Referring siteFor example, http://www.example.com
Taxes includedWhether taxes are included.
Closed atThe date and time when this order was closed.
Financial statusValid values: pending, authorized, partially_paid, paid, partially_refunded, refunded, voided
Note attributesAdditional information on order, including:
- Name
- Value
TagsTags attached to the order, formatted as a string of comma-separated values. Tags are additional short descriptors, commonly used for filtering and searching. Each individual tag is limited to 40 characters in length.
Billing addressThe mailing address associated with the payment method.
Shipping addressThe mailing address to where the order will be shipped.
Total discountsTotal amount of the discounts to be applied to the price of the order.
Discount codesA list of discounts applied to the order. Each discount object includes the following properties:
- Amount
- Discount name
- Type
Buyer accepts marketingWhether the customer consented to receive email updates from the shop.
Discount applicationsA list of discount applications. Each discount application object includes the following properties:
- Type
- Value
- Value type
- Allocation method
- Target selection
- Target type
- Description
- Title
Current total duties setThe current total duties charged on the order in shop and presentment currencies. The amount values associated with this field reflect order edits, returns, and refunds.
Original total duties setThe original total duties charged on the order in shop and presentment currencies.
Total line items price setThe total of all line item prices in shop and presentment currencies.
Total discounts setThe total amount allocated to the line item in the presentment currency. Instead of using this field, Shopify recommends using discount_allocations, which provides the same information.
Total shipping price setThe total shipping price of the order, excluding discounts and returns, in shop and presentment currencies. If taxes_included is set to true, then total_shipping_price_set includes taxes.
Total price setThe total price of the order in shop and presentment currencies.
Subtotal price setThe subtotal price of the order in shop and presentment currencies.
Total tax setThe total tax of the order in shop and presentment currencies.
Line itemsA list of line item objects, each containing information about an item in the order.
- Includes ID
- Variant ID
- Title
- Quantity
- Current quantity
- Price
- Grams
- Sku
- Variant title
- Admin GraphQL API ID
- Vendor
- Fulfillment service
- Product ID
- Requires shipping
- Taxable
- Gift card
- Name
- Variant inventory management
- Product exists
- Fulfillable quantity
- Total discount
- Fulfillment status
- Line item tax lines
- Duties
- Line item properties
- Price set
- Total discount set
- Discount allocations
Created atThe date and time when the order was created.
Updated atThe date and time when the order was last updated.
Canceled atThe date and time when the order was canceled.
Cancel reasonThe cancellation reason.
Customer localeThe two or three-letter language code, optionally followed by a region modifier.
Presentment currencyThe presentment currency that was used to display prices to the customer.
Total tip receivedThe total tip received.
Admin GraphQL API IDA unique admin GraphQL API ID.
Total price USD (deprecated)The total price in USD.
Checkout tokenThe checkout token.
ReferenceAn order reference.
User_IDThe ID of the user logged into Shopify POS who processed the order, if applicable.
Location IDThe ID of the physical location where the order was processed. This property refers to the POS location. location_id will always be set to null for online orders.
App IDThe ID of the app that created the order.
Source identifierA reference to the source.
Source URLA URL of the source.
Processed atThe date and time when this order was processed.
device_IDInformation about the device used to create the order.
Browser ipThe browser IP when the order was created.
Landing site refA URL of the landing site.
Order numberThe order 's position in the shop's count of orders starting at 1001. Order numbers are sequential and start at 1001.
NumberThe order's position in the shop's count of orders. Numbers are sequential and start at 1.
NoteNotes about this order.
TokenA unique token for the order.
Gateway (deprecated)The payment gateway used.
TestWhether this is a test order.
Total priceThe total price.
Subtotal priceThe subtotal price.
Total weightThe total weight.
Total taxThe total tax.
ConfirmedWhether the order has been confirmed.
Total discountsThe total discounts applied to the price of the order in the shop currency.
Total line items priceThe sum of all line item prices in the shop currency.
Cart tokenThe ID of the cart that's associated with the order.
NameThe name of the customer.
Landing siteThe URL for the page where the buyer landed when they entered the shop.
Payment gateway namesThe list of payment gateways used for the order.
Processing method (deprecated)How the payment was processed.
Checkout IDThe checkout ID.
Source nameWhere the order originated. Can be set only during order creation, and is not writeable afterwards.
Tax linesA list of tax line objects, each of which details a tax applied to the item. Each tax line includes:
- Title
- Price
- Price set
- Rate
Contact emailThe contact email.
Order status URLThe URL for the order status.
Shipping linesAn array of objects, each of which details a shipping method used. Each shipping line includes:
- ID
- Carrier identifier
- Shipping name
- Discounted price
- Discounted price set
- Phone
- Price
- Price set
- Requested fulfillment service ID
- Source
- Title
- Tax lines
- Discount allocations
- Is removed
FulfillmentsA list of fulfillments associated with the order.
Client detailsInformation about the browser that the customer used when they placed their order.
RefundsA list of refunds applied to the order.
Payment details (deprecated)An object containing information about the payment.
TransactionsA list of order transactions.
CustomerInformation about the customers.
MetafieldsInformation about metafields.

Last updated: