Skip to content
gist.link ↗

Shop types

Type definitions referenced by Shop queries and mutations.

Input object.

Field Type Description
variantId String! Variant uuid to stock.
locationId String! Location uuid.
quantity Int! Absolute on-hand quantity to set.

Scalar. The Boolean scalar type represents true or false.

Input object.

Field Type Description
rateUuid String! —
format String PDF (default) | PNG | ZPL
items JSON Items in this shipment ([{variant_uuid, title, quantity}]); default = every shippable line.

Object.

Field Type Description
id Int! —
uuid String! —
token String! —
currency String! —
discount_code String —
subtotal Int! Sum of line totals, integer minor units.
expires_at String —
lines [CartLine!]! —
created_at String! —
updated_at String! —

Object.

Field Type Description
id Int! —
uuid String! —
variant_uuid String! —
title String! —
quantity Int! —
unit_price Int! Unit price snapshot, integer minor units.
currency String! —
line_total Int! quantity * unit_price, integer minor units.

Object. A sellable variant in the suite catalog (shop is the single product catalog).

Field Type Description
uuid String! Variant uuid.
product_uuid String! —
product_title String! —
variant_title String! —
title String! “<product title> — <variant title>”, or just the product title when the variant title is “Default”/empty.
sku String —
price Int! Unit price in minor units.
currency String! ISO 4217 currency code.
product_status String! draft | active | archived.
tracked Boolean! Whether the variant has an inventory-tracking record.
on_hand Int! On-hand quantity summed across all locations (0 if none).

Object.

Field Type Description
edges [CatalogVariantEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node CatalogVariant! —
cursor String! —

Object. Result of checkoutStart: the created pending order plus the pay hosted URL.

Field Type Description
order Order! —
checkout_url String! Public hosted checkout URL on the pay service — redirect the buyer here.
checkout_session_token String! pay checkout-session token (shop polls it for terminal status).

Object.

Field Type Description
id Int! —
uuid String! —
title String! —
handle String! —
description String —
type String! One of: manual, rule.
rule JSON Rule JSON for type=rule.
product_uuids [String!]! Member product uuids for type=manual.
created_at String! —
updated_at String! —

Input object.

Field Type Description
title String! —
handle String —
description String —
type String One of: manual, rule.
rule JSON —
product_uuids [String!] —

Input object.

Field Type Description
title String! —
handle String —
description String —
media [String!] —
seo JSON —

Object.

Field Type Description
id Int! —
uuid String! —
email String! —
name String —
guest Boolean! —
auth_user_uuid String Optional link to an auth-service identity uuid; never a local User.
crm_contact_uuid String CRM contact this customer is mapped to (null until the async sync completes).
crm_company_uuid String CRM company of the mapped contact, if any.
created_at String! —
updated_at String! —

Object.

Field Type Description
id Int! —
uuid String! —
code String! —
type String! One of: percent, fixed.
value Int! percent: basis points (1500 = 15.00%); fixed: integer minor units.
currency String ISO 4217 currency for fixed discounts; null for percent.
starts_at String —
ends_at String —
usage_limit Int —
used_count Int! —
active Boolean! —
created_at String! —
updated_at String! —

Input object.

Field Type Description
code String! —
type String! One of: percent, fixed.
value Int! —
currency String —
starts_at String ISO-8601 datetime.
ends_at String ISO-8601 datetime.
usage_limit Int —

Object.

Field Type Description
id Int! —
uuid String! —
order_uuid String! —
items JSON! Fulfilled items: [{variant_uuid, title, quantity}] (no money).
tracking_number String —
tracking_url String —
carrier String —
service_level String —
label_uuid String Shipping-service label uuid, when bought through shipping.
label_status String purchased | voided
tracking_status String pre_transit | in_transit | out_for_delivery | delivered | returned | failure | unknown
created_at String! —

Input object.

Field Type Description
items JSON! Items shipped: [{variant_uuid, title, quantity}].
tracking_number String —
tracking_url String —
carrier String —

Scalar. The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Object.

Field Type Description
id Int! —
uuid String! —
quantity Int! —
sku String —
variant ProductVariant! —
location Location! —
created_at String! —
updated_at String! —

Object.

Field Type Description
uuid String! —
reference String! —
source String —
note String —
location Location! —
lines [InventoryReceiptLine!]! —
created_at String! —

Object.

Field Type Description
edges [InventoryReceiptEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node InventoryReceipt! —
cursor String! —

Object.

Field Type Description
variant_id String! Variant uuid.
sku String —
title String! —
quantity Int! —
on_hand_after Int! On-hand quantity at the receiving location right after this line was applied.

Scalar. Arbitrary JSON value (objects, arrays, scalars). Serialized as-is.

Object.

Field Type Description
id Int! —
uuid String! —
name String! —
settings_location_uuid String The settings location this inventory location sits at (settings owns the address).
address LocationAddress Read-only, resolved from settings location(uuid) (cached briefly); null when unlinked or unavailable.
active Boolean! —
created_at String! —
updated_at String! —

Object. A settings location’s address as seen by shop (read-only; manage it in the Settings app).

Field Type Description
settings_location_uuid String! —
name String! —
kind String warehouse | store | office | other
line1 String! —
line2 String —
city String! —
region String —
postal_code String —
country String! ISO 3166-1 alpha-2
phone String —
email String —
contact_name String —
ships_from Boolean! —
active Boolean! —

Input object.

Field Type Description
name String! —
settings_location_uuid String Reference a settings location (validated against settings); null unlinks.
active Boolean —

Object.

Field Type Description
id Int! —
uuid String! —
value String! —
position Int! —
option_name String! —

Object.

Field Type Description
id Int! —
uuid String! —
number Int! —
formatted_number String! —
email String! —
customer Customer —
lines [OrderLine!]! —
currency String! —
subtotal Int! All amounts integer minor units.
tax_total Int! —
shipping_total Int! —
discount_total Int! —
total Int! —
status String! One of: pending, paid, fulfilled, cancelled, refunded.
payment_ref String —
checkout_session_token String —
checkout_url String —
discount_code String —
shipping_address JSON Ship-to collected in pay’s checkout (shipping AddressInput shape).
requires_shipping Boolean! True when any line requires shipping.
shipping_method OrderShippingMethod Shipping the customer chose in pay’s checkout.
fulfillments [Fulfillment!]! —
refunds [Refund!]! —
paid_at String —
cancelled_at String —
created_at String! —
updated_at String! —

Object.

Field Type Description
edges [OrderEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node Order! —
cursor String! —

Input object.

Field Type Description
status String One of: pending, paid, fulfilled, cancelled, refunded.
search String Substring match on customer email.

Object.

Field Type Description
variant_uuid String! —
title String! —
quantity Int! —
unit_price Int! Unit price snapshot, integer minor units.
currency String! —
line_total Int! quantity * unit_price, integer minor units.

Object.

Field Type Description
carrier String! —
carrier_name String —
service_level String —
service_name String —
shipment_uuid String —
rate_uuid String —

Object.

Field Type Description
uuid String! —
carrier String! —
carrier_name String! —
service_level String! —
service_name String! —
amount Int! Integer minor units.
currency String! —
estimated_days Int —
attributes [String!]! —
recommended Boolean! True for the rate matching the customer’s chosen carrier + service level.

Object.

Field Type Description
shipment_uuid String! —
rates [OrderShippingRate!]! —
recommended_rate_uuid String —
messages [String!]! —
customer_choice OrderShippingMethod —

Object. Public, admin-free order status/receipt shape returned by orderStatus.

Field Type Description
uuid String! —
formatted_number String! —
email String! —
currency String! —
subtotal Int! —
tax_total Int! —
shipping_total Int! —
discount_total Int! —
total Int! —
status String! One of: pending, paid, fulfilled, cancelled, refunded.
lines [OrderLine!]! —
created_at String! —

Object.

Field Type Description
hasNextPage Boolean! —
hasPreviousPage Boolean! —
startCursor String —
endCursor String —

Object.

Field Type Description
id Int! —
uuid String! —
title String! —
handle String! —
description String —
status String! One of: draft, active, archived.
media [String!]! CDN media urls.
seo JSON SEO metadata (title/description/etc.).
options [ProductOption!]! —
variants [ProductVariant!]! —
created_at String! —
updated_at String! —

Object.

Field Type Description
edges [ProductEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node Product! —
cursor String! —

Input object.

Field Type Description
status String One of: draft, active, archived.
search String Substring match on title or handle.

Object.

Field Type Description
id Int! —
uuid String! —
name String! —
position Int! —
values [OptionValue!]! —

Input object.

Field Type Description
name String! —
values [String!]! —

Object.

Field Type Description
id Int! —
uuid String! —
title String! —
sku String —
barcode String —
price Int! Price in integer minor units.
currency String! ISO 4217 currency code (3 letters).
compare_at_price Int Compare-at (was) price in integer minor units.
weight_grams Int! —
requires_shipping Boolean! —
length_mm Int Optional packed dimensions (mm) used to build shipping parcels; null = default box.
width_mm Int —
height_mm Int —
option_values JSON Snapshot of {option_name: value} identifying this variant.
position Int! —

Input object.

Field Type Description
reference String! Idempotency key, unique per organization (max 191 chars), e.g. “pay:po:<uuid>”.
locationId String Location uuid. Defaults to the org’s first active location (one named “Default location” is created if none exists).
source String Free-text origin of the receipt, e.g. “pay”.
note String —
lines [ReceiveInventoryLineInput!]! —

Input object.

Field Type Description
variantId String! Variant uuid.
quantity Int! Units received (> 0); ADDED to the location’s on-hand quantity.

Object.

Field Type Description
id Int! —
uuid String! —
order_uuid String! —
amount Int! —
currency String! —
reason String —
pay_refund_ref String —
created_at String! —

Object.

Field Type Description
filename String! —
content_type String! —
data_base64 String! —

Object.

Field Type Description
id Int! —
uuid String! —
name String! —
price Int! Flat price in integer minor units.
currency String! —
min_subtotal Int —
max_subtotal Int —

Input object.

Field Type Description
name String! —
price Int! —
currency String! —
min_subtotal Int —
max_subtotal Int —

Input object. Fixed contract — called by the shipping service.

Field Type Description
labelUuid ID! —
sourceRef String! —
carrier String! —
trackingNumber String —
trackingUrl String —
trackingStatus String! —

Object.

Field Type Description
id Int! —
uuid String! —
name String! —
country_codes [String!]! ISO 3166-1 alpha-2 country codes, or [“*”] for a catch-all zone.
rates [ShippingRate!]! —
created_at String! —
updated_at String! —

Input object.

Field Type Description
name String! —
country_codes [String!]! —
rates [ShippingRateInput!] —

Object.

Field Type Description
email String! —
orders_count Int! Number of sales (paid, fulfilled, or refunded orders).
total_spent_minor Int! Net of refunds, integer minor units of currency (most recent sale’s currency).
currency String —
last_order_at String —

Input object.

Field Type Description
field String! Entity field to sort by (created_at, title, number, total, …).
direction String ASC or DESC.

Object. A collection resolved for the storefront, with its active products embedded.

Field Type Description
id Int! —
uuid String! —
title String! —
handle String! —
description String —
products [Product!]! —

Input object.

Field Type Description
search String Substring match on title or handle.

Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Object.

Field Type Description
id Int! —
uuid String! —
name String! —
rate_bps Int! Rate in basis points (2000 = 20.00%).
country_code String ISO 3166-1 alpha-2 country code, or null for the default rate.
created_at String! —
updated_at String! —

Input object.

Field Type Description
name String! —
rate_bps Int! —
country_code String —

Input object.

Field Type Description
title String —
handle String —
description String —
status String —
media [String!] —
seo JSON —

Input object.

Field Type Description
title String! —
sku String —
barcode String —
price Int! Price in integer minor units.
currency String! ISO 4217 currency code (3 letters).
compare_at_price Int —
weight_grams Int —
requires_shipping Boolean —
length_mm Int Packed dimensions in mm (all three, or null to clear).
width_mm Int —
height_mm Int —
option_values JSON Map of {option_name: value}.