Shop types
Type definitions referenced by Shop queries and mutations.
AdjustInventoryInput
Section titled “AdjustInventoryInput”Input object.
| Field | Type | Description |
|---|---|---|
variantId |
String! |
Variant uuid to stock. |
locationId |
String! |
Location uuid. |
quantity |
Int! |
Absolute on-hand quantity to set. |
Boolean
Section titled “Boolean”Scalar. The Boolean scalar type represents true or false.
BuyShippingLabelInput
Section titled “BuyShippingLabelInput”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! |
— |
CartLine
Section titled “CartLine”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. |
CatalogVariant
Section titled “CatalogVariant”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). |
CatalogVariantConnection
Section titled “CatalogVariantConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[CatalogVariantEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
CatalogVariantEdge
Section titled “CatalogVariantEdge”Object.
| Field | Type | Description |
|---|---|---|
node |
CatalogVariant! |
— |
cursor |
String! |
— |
CheckoutStartResult
Section titled “CheckoutStartResult”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). |
Collection
Section titled “Collection”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! |
— |
CollectionInput
Section titled “CollectionInput”Input object.
| Field | Type | Description |
|---|---|---|
title |
String! |
— |
handle |
String |
— |
description |
String |
— |
type |
String |
One of: manual, rule. |
rule |
JSON |
— |
product_uuids |
[String!] |
— |
CreateProductInput
Section titled “CreateProductInput”Input object.
| Field | Type | Description |
|---|---|---|
title |
String! |
— |
handle |
String |
— |
description |
String |
— |
media |
[String!] |
— |
seo |
JSON |
— |
Customer
Section titled “Customer”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! |
— |
Discount
Section titled “Discount”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! |
— |
DiscountInput
Section titled “DiscountInput”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 |
— |
Fulfillment
Section titled “Fulfillment”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! |
— |
FulfillmentInput
Section titled “FulfillmentInput”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.
InventoryLevel
Section titled “InventoryLevel”Object.
| Field | Type | Description |
|---|---|---|
id |
Int! |
— |
uuid |
String! |
— |
quantity |
Int! |
— |
sku |
String |
— |
variant |
ProductVariant! |
— |
location |
Location! |
— |
created_at |
String! |
— |
updated_at |
String! |
— |
InventoryReceipt
Section titled “InventoryReceipt”Object.
| Field | Type | Description |
|---|---|---|
uuid |
String! |
— |
reference |
String! |
— |
source |
String |
— |
note |
String |
— |
location |
Location! |
— |
lines |
[InventoryReceiptLine!]! |
— |
created_at |
String! |
— |
InventoryReceiptConnection
Section titled “InventoryReceiptConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[InventoryReceiptEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
InventoryReceiptEdge
Section titled “InventoryReceiptEdge”Object.
| Field | Type | Description |
|---|---|---|
node |
InventoryReceipt! |
— |
cursor |
String! |
— |
InventoryReceiptLine
Section titled “InventoryReceiptLine”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.
Location
Section titled “Location”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! |
— |
LocationAddress
Section titled “LocationAddress”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! |
— |
LocationInput
Section titled “LocationInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
settings_location_uuid |
String |
Reference a settings location (validated against settings); null unlinks. |
active |
Boolean |
— |
OptionValue
Section titled “OptionValue”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! |
— |
OrderConnection
Section titled “OrderConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[OrderEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
OrderEdge
Section titled “OrderEdge”Object.
| Field | Type | Description |
|---|---|---|
node |
Order! |
— |
cursor |
String! |
— |
OrderFilter
Section titled “OrderFilter”Input object.
| Field | Type | Description |
|---|---|---|
status |
String |
One of: pending, paid, fulfilled, cancelled, refunded. |
search |
String |
Substring match on customer email. |
OrderLine
Section titled “OrderLine”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. |
OrderShippingMethod
Section titled “OrderShippingMethod”Object.
| Field | Type | Description |
|---|---|---|
carrier |
String! |
— |
carrier_name |
String |
— |
service_level |
String |
— |
service_name |
String |
— |
shipment_uuid |
String |
— |
rate_uuid |
String |
— |
OrderShippingRate
Section titled “OrderShippingRate”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. |
OrderShippingRates
Section titled “OrderShippingRates”Object.
| Field | Type | Description |
|---|---|---|
shipment_uuid |
String! |
— |
rates |
[OrderShippingRate!]! |
— |
recommended_rate_uuid |
String |
— |
messages |
[String!]! |
— |
customer_choice |
OrderShippingMethod |
— |
OrderStatus
Section titled “OrderStatus”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! |
— |
PageInfo
Section titled “PageInfo”Object.
| Field | Type | Description |
|---|---|---|
hasNextPage |
Boolean! |
— |
hasPreviousPage |
Boolean! |
— |
startCursor |
String |
— |
endCursor |
String |
— |
Product
Section titled “Product”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! |
— |
ProductConnection
Section titled “ProductConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[ProductEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
ProductEdge
Section titled “ProductEdge”Object.
| Field | Type | Description |
|---|---|---|
node |
Product! |
— |
cursor |
String! |
— |
ProductFilter
Section titled “ProductFilter”Input object.
| Field | Type | Description |
|---|---|---|
status |
String |
One of: draft, active, archived. |
search |
String |
Substring match on title or handle. |
ProductOption
Section titled “ProductOption”Object.
| Field | Type | Description |
|---|---|---|
id |
Int! |
— |
uuid |
String! |
— |
name |
String! |
— |
position |
Int! |
— |
values |
[OptionValue!]! |
— |
ProductOptionInput
Section titled “ProductOptionInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
values |
[String!]! |
— |
ProductVariant
Section titled “ProductVariant”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! |
— |
ReceiveInventoryInput
Section titled “ReceiveInventoryInput”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!]! |
— |
ReceiveInventoryLineInput
Section titled “ReceiveInventoryLineInput”Input object.
| Field | Type | Description |
|---|---|---|
variantId |
String! |
Variant uuid. |
quantity |
Int! |
Units received (> 0); ADDED to the location’s on-hand quantity. |
Refund
Section titled “Refund”Object.
| Field | Type | Description |
|---|---|---|
id |
Int! |
— |
uuid |
String! |
— |
order_uuid |
String! |
— |
amount |
Int! |
— |
currency |
String! |
— |
reason |
String |
— |
pay_refund_ref |
String |
— |
created_at |
String! |
— |
ShippingLabelFile
Section titled “ShippingLabelFile”Object.
| Field | Type | Description |
|---|---|---|
filename |
String! |
— |
content_type |
String! |
— |
data_base64 |
String! |
— |
ShippingRate
Section titled “ShippingRate”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 |
— |
ShippingRateInput
Section titled “ShippingRateInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
price |
Int! |
— |
currency |
String! |
— |
min_subtotal |
Int |
— |
max_subtotal |
Int |
— |
ShippingTrackingUpdateInput
Section titled “ShippingTrackingUpdateInput”Input object. Fixed contract — called by the shipping service.
| Field | Type | Description |
|---|---|---|
labelUuid |
ID! |
— |
sourceRef |
String! |
— |
carrier |
String! |
— |
trackingNumber |
String |
— |
trackingUrl |
String |
— |
trackingStatus |
String! |
— |
ShippingZone
Section titled “ShippingZone”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! |
— |
ShippingZoneInput
Section titled “ShippingZoneInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
country_codes |
[String!]! |
— |
rates |
[ShippingRateInput!] |
— |
ShopCustomerStats
Section titled “ShopCustomerStats”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 |
— |
SortInput
Section titled “SortInput”Input object.
| Field | Type | Description |
|---|---|---|
field |
String! |
Entity field to sort by (created_at, title, number, total, …). |
direction |
String |
ASC or DESC. |
StorefrontCollection
Section titled “StorefrontCollection”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!]! |
— |
StorefrontProductFilter
Section titled “StorefrontProductFilter”Input object.
| Field | Type | Description |
|---|---|---|
search |
String |
Substring match on title or handle. |
String
Section titled “String”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.
TaxRate
Section titled “TaxRate”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! |
— |
TaxRateInput
Section titled “TaxRateInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
rate_bps |
Int! |
— |
country_code |
String |
— |
UpdateProductInput
Section titled “UpdateProductInput”Input object.
| Field | Type | Description |
|---|---|---|
title |
String |
— |
handle |
String |
— |
description |
String |
— |
status |
String |
— |
media |
[String!] |
— |
seo |
JSON |
— |
VariantInput
Section titled “VariantInput”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}. |