Inventory Order Updates, Theme Commit Session Validity, Discounts Functions Removed

9/18/2026, 12:01:05 AM

The unstable API has had publisher changes: the descriptions for inventoryPurchaseOrder and inventoryPurchaseOrders queries were simplified, removing the note about unstable API/preview feature. The mutations discountsAllocatorFunctionRegister and discountsAllocatorFunctionUnregister and their payload types have been removed, meaning apps can no longer register or unregister discounts allocator functions. The draftThemeFilesCommit mutation now explains that a successful commit consumes the session; sessions cannot be reused after a non‑contention commit, and clients must restart staging with a new session ID if they retry. On the InventoryPurchaseOrder type, the legacy referenceName field was removed and a new paginated transfers field was added to link associated inventory transfers. InventoryShipment and InventoryShipmentLineItem gained new cancellation metrics – totalCanceledQuantity at the shipment level and canceledQuantity on each line item. Additional enum values were added: CANCELED to InventoryShipmentReceiveLineItemReason and INVALID_SHIPMENT_INPUT to InventoryShipmentReceiveUserErrorCode; the Collection type received a new createdAt field; the market fields on CompanyLocation and Customer got revised descriptions (while remaining deprecated); InventorySupplierSnapshot replaced supplier with supplierName; and the InventorySupplier type was removed.

Query Changes

πŸ”„ Modified Queries (2)

inventoryPurchaseOrder

Returns an InventoryPurchaseOrder object by ID.

inventoryPurchaseOrders

Returns a paginated list of purchase orders.

Mutation Changes

βž– Removed Mutations (2)

discountsAllocatorFunctionRegister

Registers a discounts allocator function.

discountsAllocatorFunctionUnregister

Unregisters a discounts allocator function.

πŸ”„ Modified Mutations (1)

draftThemeFilesCommit

Commits staged theme file changes for a caller-provided session. After any attempt other than session lock contention, the session is consumed and scheduled for cleanup. Retry by staging the complete desired snapshot under a new session ID.

~ Modified argument: sessionId

Type Changes

βž– Removed Types (5)

πŸ—οΈDiscountsAllocatorFunctionRegisterPayloadβž– RemovedOBJECT

Return type for discountsAllocatorFunctionRegister mutation.

Fields: success, userErrors
πŸ—οΈDiscountsAllocatorFunctionUnregisterPayloadβž– RemovedOBJECT

Return type for discountsAllocatorFunctionUnregister mutation.

Fields: success, userErrors
πŸ—οΈDiscountsAllocatorFunctionUserErrorβž– RemovedOBJECT

An error that occurs during the execution of a discounts allocator function mutation.

Fields: code, field, message
πŸ“‹DiscountsAllocatorFunctionUserErrorCodeβž– RemovedENUM

Possible error codes that can be returned by DiscountsAllocatorFunctionUserError.

Values: INTERNAL_ERROR, FUNCTION_NOT_FOUND, INELIGIBLE_SHOP, INVALID_FUNCTION_TYPE
πŸ—οΈInventorySupplierβž– RemovedOBJECT

Represents an inventory supplier associated with a purchase order.

Note:
This object is available only in the unstable API version and to development stores
that have enabled the Physical inventory feature preview.

Fields: name

πŸ”„ Modified Types (9)

πŸ—οΈCollectionπŸ”„ Modified
βž• Field added: createdAt

The date and time when the collection was created.

πŸ—οΈCompanyLocationπŸ”„ Modified
πŸ”„ Field modified: market
πŸ—οΈCustomerπŸ”„ Modified
πŸ”„ Field modified: market
πŸ—οΈInventoryPurchaseOrderπŸ”„ Modified
βž– Field removed: referenceName
βž• Field added: transfers

The inventory transfers linked to this purchase order.

πŸ—οΈInventoryShipmentπŸ”„ Modified
βž• Field added: totalCanceledQuantity

The total quantity of items marked as canceled across all line items in this shipment.

πŸ—οΈInventoryShipmentLineItemπŸ”„ Modified
βž• Field added: canceledQuantity

The quantity of items that were marked as canceled in this shipment line item.

πŸ—οΈInventoryShipmentReceiveLineItemReasonπŸ”„ Modified
βž• Enum value added: CANCELED
πŸ—οΈInventoryShipmentReceiveUserErrorCodeπŸ”„ Modified
βž• Enum value added: INVALID_SHIPMENT_INPUT
πŸ—οΈInventorySupplierSnapshotπŸ”„ Modified
βž– Field removed: supplier
βž• Field added: supplierName

The name of the supplier as it was when the purchase order was created.