Admin API reference
228 endpoints for a store's orders, catalog, customers, discounts, content and settings. Each one names the scope it needs and changes the store exactly as the admin does, including stock, emails, the activity log and webhooks.
Base URL: https://store.weftgrid.com/api/admin/2026-10. Authenticate with the X-Storeloom-Access-Token header; see Authentication.
Store
Shop
The store the token belongs to: its name, domains, currency, time zone and tax settings. Any token can read it.
Webhooks
Webhook subscriptions belong to the app that makes the request: an app sees and changes only its own. Subscribing to a topic needs read access to its resource. The Webhooks guide covers payloads, headers, signatures and retries.
- GET
/webhooks.jsonList this app's webhook subscriptionsany token - GET
/webhooks/count.jsonCount webhook subscriptionsany token - GET
/webhooks/{id}.jsonGet a webhook subscriptionany token - POST
/webhooks.jsonSubscribe to a topicany token - PUT
/webhooks/{id}.jsonChange a subscription's addressany token - DELETE
/webhooks/{id}.jsonUnsubscribeany token
Catalog
Products
Products with up to three options and their variants. Descriptions are sanitized HTML; prices are decimal strings in the store's currency.
Variants
The combinations of option values a product is sold in, each with its own price, SKU, weight and stock.
- GET
/products/{product_id}/variants.jsonList a product's variantsread_products - GET
/products/{product_id}/variants/count.jsonCount a product's variantsread_products - GET
/variants/{id}.jsonGet a variantread_products - POST
/products/{product_id}/variants.jsonAdd a variant to a productwrite_products - PUT
/variants/{id}.jsonUpdate a variantwrite_products - DELETE
/products/{product_id}/variants/{id}.jsonDelete a variantwrite_products
Inventory
Stock per variant and location. Every change is written to the store's inventory history and fires inventory_levels/update.
Collections
Hand-picked (custom) and automated (smart) collections of products.
- GET
/collections.jsonList collectionsread_products - GET
/collections/count.jsonCount collectionsread_products - GET
/collections/{id}.jsonGet a collectionread_products - POST
/collections.jsonCreate a collectionwrite_products - PUT
/collections/{id}.jsonUpdate a collectionwrite_products - DELETE
/collections/{id}.jsonDelete a collectionwrite_products - GET
/collections/{id}/products.jsonList a collection's productsread_products
Inventory transfers
Stock moving between locations, or arriving from a supplier. Stock leaves the origin when a transfer is marked as shipped, and is added at the destination as it's received.
- GET
/inventory_transfers.jsonList transfersread_inventory - GET
/inventory_transfers/count.jsonCount transfersread_inventory - GET
/inventory_transfers/{id}.jsonGet a transferread_inventory - POST
/inventory_transfers.jsonCreate a transferwrite_inventory - POST
/inventory_transfers/{id}/ship.jsonMark a transfer as shippedwrite_inventory - POST
/inventory_transfers/{id}/receive.jsonReceive a transferwrite_inventory - POST
/inventory_transfers/{id}/cancel.jsonCancel a transferwrite_inventory
Reviews
Product reviews from Loom Reviews, in stores that have it installed (other stores answer 403). Published reviews show on the storefront and count towards the product's stars; pending, hidden and spam ones don't. Customers' words are plain text. Reviews created here have the source api.
Orders
Orders
Orders from checkout, draft orders and the API. Statuses change through the endpoints below, which take and return stock, send the customer's emails and fire webhooks exactly as the admin does. Money fields are decimal strings in the order's currency.
- GET
/orders.jsonList ordersread_orders - GET
/orders/count.jsonCount ordersread_orders - GET
/orders/{id}.jsonGet an orderread_orders - POST
/orders.jsonCreate an orderwrite_orders - PUT
/orders/{id}.jsonUpdate an orderwrite_orders - POST
/orders/{id}/close.jsonClose (archive) an orderwrite_orders - POST
/orders/{id}/open.jsonReopen a closed orderwrite_orders - POST
/orders/{id}/cancel.jsonCancel an orderwrite_orders - POST
/orders/{id}/ready_for_pickup.jsonMark a pickup order as ready for pickupwrite_orders - POST
/orders/{id}/picked_up.jsonMark a pickup order as picked upwrite_orders
Fulfillments
Shipments of some or all of an order's items, with tracking details the customer sees on their order page.
- GET
/orders/{order_id}/fulfillments.jsonList an order's fulfillmentsread_orders - GET
/orders/{order_id}/fulfillments/count.jsonCount an order's fulfillmentsread_orders - GET
/orders/{order_id}/fulfillments/{id}.jsonGet a fulfillmentread_orders - POST
/orders/{order_id}/fulfillments.jsonFulfill itemswrite_orders - POST
/fulfillments/{id}/update_tracking.jsonUpdate trackingwrite_orders - POST
/fulfillments/{id}/cancel.jsonCancel a fulfillmentwrite_orders
Refunds
Money given back on an order, for items, shipping or both, with the items optionally put back into stock.
Transactions
Money movements on an order, by gateway: payments (kind sale) and refunds (kind refund).
- GET
/orders/{order_id}/transactions.jsonList an order's transactionsread_orders - GET
/orders/{order_id}/transactions/count.jsonCount an order's transactionsread_orders - GET
/orders/{order_id}/transactions/{id}.jsonGet a transactionread_orders - POST
/orders/{order_id}/transactions.jsonRecord a paymentwrite_orders
Order timeline
The order's history, as staff see it on the order page, and comments.
Draft orders
Orders put together by hand: phone and wholesale orders, custom items, special prices. Email the customer an invoice to pay online, or complete the draft to turn it into an order.
- GET
/draft_orders.jsonList draft ordersread_draft_orders - GET
/draft_orders/count.jsonCount draft ordersread_draft_orders - GET
/draft_orders/{id}.jsonGet a draft orderread_draft_orders - POST
/draft_orders.jsonCreate a draft orderwrite_draft_orders - PUT
/draft_orders/{id}.jsonUpdate a draft orderwrite_draft_orders - DELETE
/draft_orders/{id}.jsonDelete a draft orderwrite_draft_orders - POST
/draft_orders/{id}/send_invoice.jsonEmail the invoicewrite_draft_orders - PUT
/draft_orders/{id}/complete.jsonComplete a draft orderwrite_draft_orders
Returns
Items a customer sends back: requested by the customer or created by staff, approved or declined, received, restocked and refunded.
- GET
/returns.jsonList returnsread_returns - GET
/returns/count.jsonCount returnsread_returns - GET
/returns/{id}.jsonGet a returnread_returns - GET
/orders/{order_id}/returns.jsonList an order's returnsread_returns - POST
/orders/{order_id}/returns.jsonCreate a returnwrite_returns - PUT
/returns/{id}.jsonUpdate a returnwrite_returns - POST
/returns/{id}/approve.jsonApprove a return requestwrite_returns - POST
/returns/{id}/decline.jsonDecline a return requestwrite_returns - POST
/returns/{id}/receive.jsonMark a return as receivedwrite_returns - POST
/returns/{id}/close.jsonClose a returnwrite_returns - POST
/returns/{id}/cancel.jsonCancel a returnwrite_returns
Order edits
Changes to an order after it was placed: items added, quantities lowered or removed. Totals, stock and the balance to pay follow.
Fulfillment events
A shipment's tracking history: updates from the courier it was booked with, or added by staff.
- GET
/orders/{order_id}/fulfillments/{fulfillment_id}/events.jsonList a fulfillment's tracking eventsread_orders - GET
/orders/{order_id}/fulfillments/{fulfillment_id}/events/{id}.jsonGet a tracking eventread_orders - POST
/orders/{order_id}/fulfillments/{fulfillment_id}/events.jsonAdd a tracking eventwrite_orders - DELETE
/orders/{order_id}/fulfillments/{fulfillment_id}/events/{id}.jsonDelete a tracking eventwrite_orders
Customers
Customers
People who bought from the store, created an account, or were added by staff.
- GET
/customers.jsonList customersread_customers - GET
/customers/count.jsonCount customersread_customers - GET
/customers/search.jsonSearch customersread_customers - GET
/customers/{id}.jsonGet a customerread_customers - POST
/customers.jsonCreate a customerwrite_customers - PUT
/customers/{id}.jsonUpdate a customerwrite_customers - DELETE
/customers/{id}.jsonDelete a customerwrite_customers - POST
/customers/{id}/send_invite.jsonSend an account invitewrite_customers - GET
/customers/{id}/orders.jsonList a customer's ordersread_orders
Customer addresses
A customer's saved addresses, one of them the default.
- GET
/customers/{id}/addresses.jsonList a customer's addressesread_customers - GET
/customers/{id}/addresses/{address_id}.jsonGet an addressread_customers - POST
/customers/{id}/addresses.jsonAdd an addresswrite_customers - PUT
/customers/{id}/addresses/{address_id}.jsonUpdate an addresswrite_customers - DELETE
/customers/{id}/addresses/{address_id}.jsonDelete an addresswrite_customers - PUT
/customers/{id}/addresses/{address_id}/default.jsonMake an address the defaultwrite_customers
Store credit
Money a customer holds with the store, one account per currency, to spend at checkout or at the point of sale. Every change is kept in the account's history.
Marketing
Gift cards
Gift cards and their balances. A card's code is shown once, when it's issued.
- GET
/gift_cards.jsonList gift cardsread_gift_cards - GET
/gift_cards/count.jsonCount gift cardsread_gift_cards - GET
/gift_cards/search.jsonSearch gift cardsread_gift_cards - POST
/gift_cards/search.jsonSearch gift cards (body)read_gift_cards - GET
/gift_cards/{id}.jsonGet a gift cardread_gift_cards - POST
/gift_cards.jsonIssue a gift cardwrite_gift_cards - PUT
/gift_cards/{id}.jsonUpdate a gift cardwrite_gift_cards - POST
/gift_cards/{id}/disable.jsonDisable a gift cardwrite_gift_cards - POST
/gift_cards/{id}/enable.jsonEnable a disabled gift cardwrite_gift_cards
Discounts
Discount codes customers type at checkout, and automatic discounts that apply by themselves when the cart qualifies.
- GET
/discounts.jsonList discountsread_discounts - GET
/discounts/count.jsonCount discountsread_discounts - GET
/discounts/lookup.jsonLook up a coderead_discounts - GET
/discounts/{id}.jsonGet a discountread_discounts - POST
/discounts.jsonCreate a discountwrite_discounts - PUT
/discounts/{id}.jsonUpdate a discountwrite_discounts - DELETE
/discounts/{id}.jsonDelete a discountwrite_discounts
Online store
Pages
Pages of the online store, like About or Contact.
Blogs
Blogs of the online store.
Articles
Blog posts.
- GET
/blogs/{blog_id}/articles.jsonList a blog's articlesread_content - GET
/blogs/{blog_id}/articles/count.jsonCount a blog's articlesread_content - POST
/blogs/{blog_id}/articles.jsonCreate an articlewrite_content - GET
/articles/{id}.jsonGet an articleread_content - PUT
/articles/{id}.jsonUpdate an articlewrite_content - DELETE
/articles/{id}.jsonDelete an articlewrite_content
Menus
Navigation menus. main-menu is the storefront's header and footer its footer.
Policies
The store's refund, privacy, terms of service, shipping and contact policies.
Files
Images and documents uploaded to the store.
Translations
The store's content in its other languages: product, collection, page and menu text shown to shoppers who switch language.
- GET
/translations.jsonList translationsread_translations - GET
/translations/{resource_type}/{resource_id}.jsonGet a resource's translationsread_translations - PUT
/translations/{resource_type}/{resource_id}.jsonSet a resource's translationswrite_translations - GET
/translatable_resources/{resource_type}.jsonList translatable resourcesread_translations
Themes
The store's themes: the published one shoppers see, and others being prepared. Publishing a theme makes it live straight away.
Theme assets
A theme's files: its templates (which sections each kind of page shows), its Liquid sections and snippets, stylesheets and settings.
Script tags
Scripts an app loads on the online store's pages. An app sees and changes only the script tags it created; they're removed when the app is uninstalled.
- GET
/script_tags.jsonList the app's script tagsread_script_tags - GET
/script_tags/count.jsonCount the app's script tagsread_script_tags - GET
/script_tags/{id}.jsonGet a script tagread_script_tags - POST
/script_tags.jsonAdd a script tagwrite_script_tags - PUT
/script_tags/{id}.jsonChange a script tagwrite_script_tags - DELETE
/script_tags/{id}.jsonRemove a script tagwrite_script_tags
Settings
Shipping zones
Where the store ships and what it charges. Checkout offers the rates of the buyer's country's zone.
- GET
/shipping_zones.jsonList shipping zonesread_shipping - GET
/shipping_zones/{id}.jsonGet a shipping zoneread_shipping - POST
/shipping_zones.jsonCreate a shipping zonewrite_shipping - PUT
/shipping_zones/{id}.jsonUpdate a shipping zonewrite_shipping - DELETE
/shipping_zones/{id}.jsonDelete a shipping zonewrite_shipping
Locations
Places the store keeps stock: shops, warehouses, a studio. Online orders take stock from active locations that fulfill online orders, in priority order.
Markets
Groups of countries a store sells to with their own currency, prices and taxes. The primary market is the store's own; shoppers elsewhere see prices converted at the market's exchange rate, or the fixed prices set for it.
- GET
/markets.jsonList marketsread_markets - GET
/markets/count.jsonCount marketsread_markets - GET
/markets/{id}.jsonGet a marketread_markets - POST
/markets.jsonCreate a marketwrite_markets - PUT
/markets/{id}.jsonUpdate a marketwrite_markets - DELETE
/markets/{id}.jsonDelete a marketwrite_markets - GET
/markets/{id}/prices.jsonList a market's fixed pricesread_markets - PUT
/markets/{id}/prices.jsonSet fixed priceswrite_markets
Billing
Application charges
What an installed app charges the store each month. The app creates a charge, the merchant approves it in the admin, and it's billed on the store's Weftstore invoice until it's cancelled or the app is uninstalled.
Custom data
Metafields
Custom data on products, variants, collections, customers and orders.
- GET
/products/{owner_id}/metafields.jsonList a product's metafieldsread_products - POST
/products/{owner_id}/metafields.jsonSet a product metafieldwrite_products - GET
/variants/{owner_id}/metafields.jsonList a variant's metafieldsread_products - POST
/variants/{owner_id}/metafields.jsonSet a variant metafieldwrite_products - GET
/collections/{owner_id}/metafields.jsonList a collection's metafieldsread_products - POST
/collections/{owner_id}/metafields.jsonSet a collection metafieldwrite_products - GET
/customers/{owner_id}/metafields.jsonList a customer's metafieldsread_customers - POST
/customers/{owner_id}/metafields.jsonSet a customer metafieldwrite_customers - GET
/orders/{owner_id}/metafields.jsonList a order's metafieldsread_orders - POST
/orders/{owner_id}/metafields.jsonSet a order metafieldwrite_orders - GET
/metafields/{id}.jsonGet a metafieldany token - PUT
/metafields/{id}.jsonUpdate a metafieldany token - DELETE
/metafields/{id}.jsonDelete a metafieldany token
Metaobject definitions
The store's own content types (Content → Metaobjects): their fields, types and validations, and whether entries are public, have drafts, can be translated or get web pages.
- GET
/metaobject_definitions.jsonList metaobject definitionsread_metaobject_definitions - GET
/metaobject_definitions/{id}.jsonGet a metaobject definitionread_metaobject_definitions - POST
/metaobject_definitions.jsonCreate a metaobject definitionwrite_metaobject_definitions - PUT
/metaobject_definitions/{id}.jsonUpdate a metaobject definitionwrite_metaobject_definitions - DELETE
/metaobject_definitions/{id}.jsonDelete a metaobject definitionwrite_metaobject_definitions
Metaobjects
Entries of a metaobject definition, like one designer or one FAQ. Values are strings, the same as metafield values.
- GET
/metaobjects.jsonList metaobject entriesread_metaobjects - GET
/metaobjects/count.jsonCount metaobject entriesread_metaobjects - GET
/metaobjects/{id}.jsonGet a metaobject entryread_metaobjects - POST
/metaobjects.jsonCreate a metaobject entrywrite_metaobjects - PUT
/metaobjects/{id}.jsonUpdate a metaobject entrywrite_metaobjects - DELETE
/metaobjects/{id}.jsonDelete a metaobject entrywrite_metaobjects