Shopify Custom icon

Shopify Custom

Shopify Admin GraphQL node with metafields and definitions support

Draft Order → Get Many

AI-generated

Summary

Retrieves draft orders from a Shopify store through the GraphQL Admin API. It can fetch every page or a limited number, and supports search queries, sorting, optional metafields, and a choice of output format.

Inputs

  • authentication — Admin API Credentials (access token or Dev Dashboard client credentials) or OAuth2. Defaults to Admin API.
  • getAll — If true (default), fetches all pages of results.
  • limit — Maximum number of draft orders to return when Get All is off. Default 50, range 1–250.
  • paginationOptions — Options collection. Cursor (afterCursor) continues from a specific cursor. Search Query takes Shopify search syntax to filter results. Sorting sets Sort By (ID, Created At, Updated At, Number) and Reverse. Metafields has Include Metafields, a selection of metafield definitions to read, and Resolve Metafield References for reference-type metafields.
  • returnFields — Extra field groups to include: Note and Tags. Core identity fields are always returned.
  • outputMode — Simplified (default), Raw (full Shopify response), or Selected Fields.
  • selectedFields — Comma-separated field names to keep, e.g. ID,title,status. Shown only when Output Mode is Selected Fields.

Output shape

A list of draft order items, one n8n item per draft order in Simplified or Selected Fields mode. Raw mode returns the unprocessed Shopify payload.

The source pack shows only signatures, so the exact field set and the per-item shape are not confirmed. The Note and Tags fields appear only if selected in Fields to Return. Metafields are included only when enabled. Selected Fields mode filters the output to the named fields.

Examples

Example 1: Export all draft orders, newest first

Get All on; Sorting: Sort By Created At, Reverse on; Fields to Return: Note, Tags.

Example 2: Fetch the 20 most recently updated draft orders matching a search

Get All off; Limit 20; Search Query using Shopify search syntax, e.g. status:open; Sort By Updated At.

Example 3: Get a compact list of IDs and statuses

Output Mode Selected Fields; Selected Fields: ID,status.

Links

Discussion