Connect your inventory to your own tools or AI agents. Manage groups and bundles, find groups by variant, set group inventory, refresh SKU connections, and follow sync activity.
Documents Merchant API v1 in Connected Inventory v1.4.0, released November 7, 2026.
BASE URLhttps://ci-api.notasideproject.com/api/v1OpenAPI 3.1 ↓
Advance plan required. Advance is available to all shops. Open Connected Inventory in Shopify Admin to check your plan and access, or contact us at [email protected].
Your first request
Create a key in the app’s API keys page. Set CI_API_KEY and SHOP_DOMAIN in your server environment, then list your manual groups:
Examples use illustrative IDs and product titles. Replace them with your own shop’s values. Requests go to ci-api.notasideproject.com, not this documentation host.
Authentication
Every request requires both headers. The key selects the shop; the shop domain must match that key.
Use the full *.myshopify.com hostname. Do not include a protocol, path, or port. Surrounding whitespace is trimmed and comparison is case-insensitive. A shop query or body field cannot replace the header.
In API keys → Add, give the integration a name and choose its permissions. The secret is shown only once. Store it on your server in a credential manager, never in storefront JavaScript or a public repository.
A shop can create up to five keys. Existing shops with more can keep them, but must drop below five before creating another. Names and permissions cannot be edited; create a replacement key and delete the old one. Deletion revokes access immediately.
A missing or unknown key returns 401 invalid_key. With a valid key, a missing or blank domain returns 400 shop_domain_required; a mismatch returns 403 shop_domain_mismatch. Without an Advance entitlement, requests return 402 plan_required.
Permissions
Read is always included. Write and Delete are independent permissions selected when a key is created.
API key permissions
Field
Description
Readalways included
All GET endpoints: groups, settings, refresh progress, activity logs, and sync history.
Writeoptional
Create or replace manual and bundle groups; set manual or smart-group inventory; enable any group type; start smart-group refreshes. This is the update permission in the API.
Deleteoptional
Delete manual or bundle groups; disable any group type, including smart groups.
Disabling smart groups deletes their generated groups and members. Disabling manual or bundle groups only changes the setting and preserves the groups.
Pagination
All list endpoints return data and next_cursor, ordered by descending app ID. Send the returned cursor as the next request’s after query parameter. Treat it as opaque. Stop when it is null.
Empty or final page
{ "data": [], "next_cursor": null}
limit defaults to 50 and is capped at 200, except /sync_histories, which is capped at 50. Smaller positive limits are honored. Zero, negative, and nonnumeric values fall back to 50. An invalid after returns 422 validation_failed.
Lists contain summaries. Use the detail endpoint for variants, bundle members, or sync result arrays. Bundle member_count counts the master plus components; component quantity does not multiply the count.
Group summary response fields
Field
Description
idinteger
Connected Inventory group ID, not a Shopify ID.
namestring
Stored group name.
statusstring
Stored group status, for example active. Separate from the group type’s enabled setting.
created_at / updated_atstring | null
ISO 8601 timestamps.
member_countinteger
Number of members. Bundles count the master plus components, regardless of component quantity.
Find groups by variant
GET /manual_groups, GET /bundle_groups, and GET /auto_groups accept an optional variant_id query parameter. Read-only keys can use it.
Variant lookup paths
GET /api/v1/manual_groups?variant_id=1001&limit=50GET /api/v1/bundle_groups?variant_id=1001&limit=50GET /api/v1/auto_groups?variant_id=1001&limit=50
Use a positive decimal Shopify variant ID without leading zeros. Empty values, GIDs, arrays, objects, signs, and whitespace return 422 validation_failed. Omit the parameter to list all groups.
Lookup reads saved membership without calling Shopify. Smart lookup includes active groups only. Bundle lookup matches both masters and components; a component can match multiple bundles. Each group appears once, and member_count counts every member.
An unknown variant or one without matching groups returns 200 with an empty data array and next_cursor: null. The response does not distinguish those cases. Follow pagination and repeat the same variant_id with each after cursor.
The returned id is the app's group ID. Use it to read group details or to set inventory for a manual or smart group.
Set group inventory
PUT /manual_groups/{group_id}/inventory and PUT /auto_groups/{group_id}/inventory set every saved member's available inventory at one Shopify location. Both require Write permission. There is no bundle inventory endpoint.
Absolute inventory writes can overwrite concurrent changes. Every target receives the requested quantity, even if an order or another caller changed inventory. These requests do not compare against a previous quantity or activate items at a location.
Send exactly location_id and inventory_quantity as JSON. The location accepts a positive integer or a decimal string without leading zeros. Quantity must be an integer from -1000000000 to 1000000000 inclusive. Zero and negative quantities are accepted. Floats, quantity strings, missing fields, and extra fields are rejected.
The selected group must belong to the key's shop. Smart groups must be active. The global manual or smart sync setting does not block this explicit write. Only saved members of the selected group are targeted; membership is not expanded to overlapping groups.
The API trusts saved inventory item IDs without verifying their variant mapping in Shopify. A valid but incorrect saved item ID can update another item in the same shop. Empty groups, invalid saved IDs, and conflicting item IDs for one variant fail before any write.
Inventory item IDs are deduplicated, sorted numerically, and sent in sequential batches of at most 250. The first unsuccessful or unconfirmed batch stops the request. Earlier confirmed writes remain applied.
Inventory execution statuses
Field
Description
completedHTTP 200
Shopify confirmed every batch. All targets appear in updated_inventory_item_ids.
partialnon-2xx
Earlier batches were confirmed, but a later batch was unconfirmed. Earlier writes remain applied.
unknownnon-2xx
The first attempted batch could not be confirmed. Shopify may have applied its writes.
failedHTTP 503
A Shopify client could not be initialized. Every target is unattempted.
Execution responses identify confirmed items in updated_inventory_item_ids, the unconfirmed attempted batch in unknown_inventory_item_ids, and remaining targets in unattempted_inventory_item_ids. IDs are decimal strings.
Shopify user errors return 422 shopify_rejected with error.user_errors. The attempted batch is still unknown. Top-level GraphQL errors return 502 shopify_graphql_error, or 503 for throttling. Invalid confirmation data returns 502 shopify_invalid_response. Transport failures and unsuccessful HTTP responses return 503 shopify_unavailable.
Reconcile unknown items in Shopify before retrying. There is no rollback, automatic retry, durable continuation, or create-request idempotency. Timeouts and malformed responses can occur after Shopify applied changes. A retry reads current group membership and writes the absolute quantity again, which can overwrite intervening sales.
Validation and access failures use the standard error body without execution fields. The API records an attributed attempt before the first write. An initial audit failure returns 503 audit_unavailable without contacting Shopify. If the final audit update fails, the response still reports the inventory outcome; the saved attempt may remain marked as attempting.
The default allowance is 60 requests per fixed minute per shop, shared by all keys and all v1 endpoints. The minute starts with the first counted request and does not slide forward with later requests. The server can configure a different allowance.
Reads, writes, polling, validation failures, and idempotent replays all count. Failed key, domain, and plan checks do not.
Rate limit response
HTTP/1.1 429 Too Many RequestsRetry-After: 60Cache-Control: no-store{"error":{"code":"rate_limited","message":"API rate limit exceeded. Retry after 60 seconds."}}
Wait for Retry-After before retrying; add a small random delay when multiple clients retry together. Reuse the same idempotency key and exact body when retrying a create. No remaining-budget header is returned. A failed rate-limit check returns 503 rate_limit_unavailable and the action does not run.
Space refresh polling out—for example, every five seconds—and stop on a terminal status. A 202 refresh response only means the request was accepted.
Idempotency
POST /manual_groups and POST /bundle_groups require Idempotency-Key. Use a fresh value for each logical create and preserve it across retries.
Keys are scoped to an API key, across both create endpoints. Reusing a key with the same raw body returns the original response and status (201) without creating another group. Whitespace or JSON property order changes alter the raw body and can trigger 409 idempotency_conflict. Keep the serialized bytes identical.
An unfinished request returns 409 idempotency_in_progress; retry later. Missing keys return 400 idempotency_key_required. Other endpoints do not require or implement this create-replay contract.
Variant data & validation
Manual and bundle group creation and replacement require JSON objects with Content-Type: application/json. Every variant must include these five fields:
Required variant fields
Field
Description
product_gidstring · required
Full Shopify Product GID, such as gid://shopify/Product/100.
variant_gidstring · required
Full Shopify ProductVariant GID, such as gid://shopify/ProductVariant/1001.
inventory_item_gidstring · required
Full Shopify InventoryItem GID. Its numeric ID is used for inventory sync.
product_titlestring · required
Nonblank product title. Saved as supplied; not fetched from Shopify.
variant_titlestring · required
Nonblank variant title. Use the actual variant title, including Default Title where applicable.
GIDs are case-sensitive and must end in a positive decimal ID. Bare numbers, wrong resource types, whitespace, query strings, and fragments are rejected. Legacy product_id, variant_id, and inventory_item_id fields are rejected.
You supply the variant metadata. The API saves these values without fetching the variant from Shopify. Verify that the variant belongs to your shop and that its product, variant, and inventory item IDs match. Returned titles are saved values, not a live Shopify read.
Manual groups: at least two distinct variants. A variant cannot belong to another manual group.
Bundles: one master and at least one distinct component. Every component requires an integer quantity ≥ 1.
A bundle master cannot be a component in the same or another bundle, or the master of another bundle. Components can be shared across bundles if they are not masters.
PUT replaces: always send the complete desired name and membership. It is not a patch.
Errors
Handled API errors use this JSON shape. Inspect the stable code and use message for context. Inventory execution errors also include outcome fields and can follow confirmed writes. Infrastructure or unknown-route errors may use a different response format.
Error response
{ "error": { "code": "validation_failed", "message": "A manual group must contain at least two distinct variants." }}
HTTP
Code & recovery
400
shop_domain_required
Send a nonblank X-Shopify-Shop-Domain header.
400
idempotency_key_required
Send Idempotency-Key when creating a manual or bundle group.
401
invalid_key
The bearer key is missing, unknown, or revoked.
402
plan_required
The shop needs an active Advance entitlement.
403
shop_domain_mismatch
The supplied domain does not match the key’s shop.
403
permission_required
The key lacks Write or Delete permission for this operation.
404
not_found
The resource does not exist in this shop. Another shop’s resource is also reported as not found.
409
idempotency_conflict
This API key already used the Idempotency-Key with different raw request bytes.
409
idempotency_in_progress
A create with this Idempotency-Key is still running. Retry later with the same key and body.
409
smart_groups_disabled
Enable smart groups before requesting a refresh.
409
refresh_in_progress
A smart-group refresh is already running. Wait for it to finish before starting another.
422
validation_failed
Invalid JSON, request fields, group membership, or pagination cursor. Read error.message for the reason.
429
rate_limited
The shop’s shared request allowance is exhausted. Wait for Retry-After (60 seconds).
422
shopify_rejected
Shopify returned inventory user errors. Read error.user_errors and reconcile the unknown batch before retrying.
502
shopify_graphql_error
Shopify returned top-level GraphQL errors during an inventory write. The attempted batch is unknown.
502
shopify_invalid_response
Shopify did not return valid inventory confirmation data. The attempted batch is unknown.
503
shopify_graphql_error
Shopify throttled an inventory write. The attempted batch is unknown. There is no automatic retry.
503
audit_unavailable
The inventory attempt could not be recorded. No Shopify write was sent.
503
rate_limit_unavailable
The rate limit could not be checked; the action did not run. Retry later.
503
shopify_unavailable
Shopify was unavailable during subscription verification or inventory execution. Inventory responses report confirmed, unknown, and unattempted items; reconcile unknown items before retrying.
Endpoints
Manual groups
Connect specific variants that share inventory. A variant can belong to only one manual group.
Return group summaries in descending ID order. Fetch a group by ID to read its members.
Optional variant_id matches saved membership. member_count includes every member, not only the matching variant.
Query: limit (default 50, maximum 200) and after (the previous next_cursor). See pagination.
Optional query: variant_id, a positive decimal Shopify variant ID without leading zeros. Empty values, GIDs, arrays, and objects return 422 validation_failed. See variant lookup.
Set available inventory to one absolute quantity at one Shopify location for every saved member of the selected manual group. This can overwrite concurrent inventory changes.
Send exactly location_id and inventory_quantity. Inventory item IDs are deduplicated and sorted numerically, then sent in sequential batches of at most 250. Only the selected group's saved members are targeted; overlapping groups are not expanded. There is no bundle inventory endpoint.
A missing or other shop's group returns 404 not_found. The global manual-group sync setting does not block this explicit write.
The API trusts saved inventory item IDs without verifying their variant mapping in Shopify. Empty groups, malformed saved IDs, and conflicting item IDs for one variant return 422 validation_failed before audit logging or Shopify writes.
HTTP 200 confirms all batches. The first unconfirmed batch stops the request; earlier confirmed writes remain applied. Non-2xx execution responses include updated, unknown, and unattempted IDs. There is no rollback, automatic retry, durable continuation, or create-request idempotency. Reconcile unknown items in Shopify before retrying.
group_id — required positive integer identifying the selected group in Connected Inventory.
completed on HTTP 200. Execution errors use partial after confirmed batches, unknown when the first batch is unconfirmed, or failed when no Shopify client could be initialized.
group_idinteger
Selected Connected Inventory group ID.
location_idstring
Shopify location ID, returned as a decimal string.
inventory_quantityinteger
Requested absolute available quantity.
updated_inventory_item_idsstring[]
Decimal inventory item IDs in confirmed batches.
unknown_inventory_item_idsstring[]
Decimal IDs in the attempted but unconfirmed batch. Shopify may have applied these writes.
unattempted_inventory_item_idsstring[]
Decimal IDs that were not sent to Shopify.
errorobject, on execution error
code and message. shopify_rejected also includes user_errors. Validation, authentication, and initial audit errors use the standard error body without inventory outcome fields.
Return group summaries in descending ID order. Fetch a group by ID to read its members.
Optional variant_id matches saved master or component membership. A shared component can match multiple bundles. Each group appears once and member_count includes all members.
Query: limit (default 50, maximum 200) and after (the previous next_cursor). See pagination.
Optional query: variant_id, a positive decimal Shopify variant ID without leading zeros. Empty values, GIDs, arrays, and objects return 422 validation_failed. See variant lookup.
Return active smart-group summaries in descending ID order. The list does not include member details.
Optional variant_id matches saved membership in active groups only. member_count includes every member, not only the matching variant.
Query: limit (default 50, maximum 200) and after (the previous next_cursor). See pagination.
Optional query: variant_id, a positive decimal Shopify variant ID without leading zeros. Empty values, GIDs, arrays, and objects return 422 validation_failed. See variant lookup.
Enable smart groups. Switching from off to on starts at most one refresh in the background. Repeating enable while already enabled does not start another.
The response does not contain a run ID and does not mean the scan is complete. A separate refresh request can return refresh_in_progress until the automatic scan finishes. No request body is required.
Disable smart groups and delete the shop’s generated smart groups and their members. Shopify products and variants are not deleted.
Unlike disabling manual or bundle groups, this removes the generated groups. Enabling smart groups again starts a new scan. No request body is required.
Read the local run record. queued means waiting; running covers scanning, importing, and promoting. completed means the new groups can be read. failed and canceled are also terminal states.
Stop polling on completed, failed, or canceled. error contains the stored failure or cancellation reason when available. This read does not call Shopify.
id — required positive integer identifying this resource in Connected Inventory.
Set available inventory to one absolute quantity at one Shopify location for every saved member of the selected smart group. This can overwrite concurrent inventory changes.
Send exactly location_id and inventory_quantity. Inventory item IDs are deduplicated and sorted numerically, then sent in sequential batches of at most 250. Only the selected group's saved members are targeted; overlapping groups are not expanded. There is no bundle inventory endpoint.
Only active smart groups can be selected. A missing, inactive, or other shop's group returns 404 not_found. The global smart-group sync setting does not block this explicit write.
The API trusts saved inventory item IDs without verifying their variant mapping in Shopify. Empty groups, malformed saved IDs, and conflicting item IDs for one variant return 422 validation_failed before audit logging or Shopify writes.
HTTP 200 confirms all batches. The first unconfirmed batch stops the request; earlier confirmed writes remain applied. Non-2xx execution responses include updated, unknown, and unattempted IDs. There is no rollback, automatic retry, durable continuation, or create-request idempotency. Reconcile unknown items in Shopify before retrying.
group_id — required positive integer identifying the selected group in Connected Inventory.
completed on HTTP 200. Execution errors use partial after confirmed batches, unknown when the first batch is unconfirmed, or failed when no Shopify client could be initialized.
group_idinteger
Selected Connected Inventory group ID.
location_idstring
Shopify location ID, returned as a decimal string.
inventory_quantityinteger
Requested absolute available quantity.
updated_inventory_item_idsstring[]
Decimal inventory item IDs in confirmed batches.
unknown_inventory_item_idsstring[]
Decimal IDs in the attempted but unconfirmed batch. Shopify may have applied these writes.
unattempted_inventory_item_idsstring[]
Decimal IDs that were not sent to Shopify.
errorobject, on execution error
code and message. shopify_rejected also includes user_errors. Validation, authentication, and initial audit errors use the standard error body without inventory outcome fields.
Return order sync history summaries in descending ID order. The default and maximum page size are both 50. Fetch a history by its app ID to read child results.
Query: limit (default 50, maximum 50) and after (the previous next_cursor). See pagination.
Arrays of group sync results; an empty array means there are no stored results for that group type.
SyncResultobject
status, group_name, variant_id, product_title, variant_title. Values are stored strings or null; variant_id is a legacy numeric Shopify ID string, not a GID.