# PlatformDTC > Build agent-native commerce. The PlatformDTC Agent Gateway lets autonomous agents (OpenClaw and others) run every capability of your store — build, catalog, ads, marketing, analytics, orders — over one scoped, idempotent, job-aware API. ## Docs - [Build agent-native commerce](/index) - [Quickstart](/get-started/quickstart) - [Sign in to PlatformDTC](/get-started/sign-in) - [Set up your store](/get-started/set-up-your-store) - [Launch a product you found on AdLibrarySpy](/get-started/from-adlibraryspy) - [Why PlatformDTC instead of Shopify](/get-started/why-platformdtc) - [What's included](/get-started/public-beta) - [Move from Shopify](/commerce/move-from-shopify) - [Manage an order](/orders/manage-an-order) - [Shipping labels](/orders/shipping-labels) - [Chargeback insights and alerts](/orders/chargeback-insights) - [Checkout Editor](/commerce/checkout-editor) - [Choose the fields shoppers fill in at checkout](/commerce/checkout-customer-information) - [Charge shipping by country and offer free shipping over an amount](/commerce/shipping-zones) - [Sell digital products](/commerce/digital-products) - [Store policies](/commerce/store-policies) - [Sales tax](/commerce/sales-tax) - [Payment fees and rates](/payments/payment-fees-and-rates) - [Card payment providers](/payments/card-payment-providers) - [Use two PayPal accounts for the PayPal button](/payments/two-paypal-accounts) - [Block risky payments](/payments/block-risky-payments) - [Subscription renewals by payment method](/payments/subscription-renewals-by-payment-method) - [DTCPay](/payments/dtcpay) - [Failed subscription payments](/payments/failed-subscription-payments) - [Upsell funnels](/payments/upsell-funnels) - [Membership](/payments/membership) - [Loyalty & Rewards](/commerce/loyalty) - [Content Rewards](/commerce/content-rewards) - [Affiliate marketplace](/commerce/affiliate-marketplace) - [Refer & earn](/commerce/refer-and-earn) - [Buyer survey](/customers/buyer-survey) - [Customer accounts and sign-in](/customers/customer-accounts) - [Send tracking to PayPal](/payments/send-tracking-to-paypal) - [Connect your inboxes to Support](/support/connect-your-inboxes) - [Live chat on your store](/support/live-chat) - [Cancel requests by email](/support/cancel-requests-by-email) - [How support replies sound](/support/how-replies-sound) - [Source products from the Supplier Network](/commerce/source-from-the-supplier-network) - [Verified suppliers and scorecards](/commerce/verified-suppliers) - [Payment terms with suppliers](/commerce/supplier-payment-terms) - [Connect your own AI agent](/agents/connect-your-own-agent) - [Your Facebook Ads agent](/agents/facebook-ads-agent) - [Your Google Ads agent](/agents/google-ads-agent) - [TikTok ads](/agents/tiktok-ads) - [Store heartbeat](/analytics/store-heartbeat) - [Cash cycle and growth alerts](/analytics/cash-cycle) - [Growth goal and real cost per new customer](/analytics/growth-goal-and-customer-cost) - [Growth checklist](/analytics/growth-checklist) - [Subscription metrics, explained](/analytics/subscription-metrics) - [Subscription offer test, profit and health](/analytics/subscription-offer-test) - [Products report](/analytics/products) - [Support report](/analytics/support) - [Connect your own domain](/online-store/connect-a-domain) - [Navigation](/online-store/navigation) - [Collections](/online-store/collections) - [Import products from a file](/online-store/import-products-from-a-file) - [Search listing, barcodes and alt text](/online-store/search-listing-barcodes-and-alt-text) - [Pages](/online-store/pages) - [Edit pictures with the builder](/online-store/edit-pictures) - [Product add-ons](/online-store/product-add-ons) - [Volume discounts](/online-store/volume-discounts) - [Delivery dates](/online-store/delivery-dates) - [Markets (sell in local currencies)](/online-store/markets) - [Google Shopping and Facebook catalog (product feeds)](/online-store/google-shopping-and-facebook-catalog) - [Product reviews](/online-store/product-reviews) - [Personalized product page](/online-store/personalized-product-page) - [Blog posts](/online-store/blog-posts) - [AI answers](/online-store/ai-answers) - [Showcase: Made with PlatformDTC](/online-store/showcase) - [Import a theme from Shopify](/online-store/import-shopify-theme) - [PlatformDTC POS](/pos/overview) - [Set up a location](/pos/set-up-a-location) - [Pair a card reader](/pos/pair-a-card-reader) - [Take a payment](/pos/take-a-payment) - [Cash drawer](/pos/cash-drawer) - [Refunds](/pos/refunds) - [Authentication](/get-started/authentication) - [Scopes](/get-started/scopes) - [Jobs (async model)](/get-started/jobs) - [Idempotency](/get-started/idempotency) - [Human approval gate](/get-started/approvals) - [Errors](/get-started/errors) - [The Playbook](/agents/playbook) - [Writing a skill](/agents/writing-a-skill) - [Store heartbeat for agents](/agents/store-heartbeat-api) - [Store numbers for agents](/agents/store-metrics-api) - [Tool catalog](/agents/tool-catalog) - [Build with your agent](/themes/overview) - [Quickstart: Claude Code](/themes/quickstart-claude-code) - [Quickstart: Codex](/themes/quickstart-codex) - [Quickstart: Cursor](/themes/quickstart-cursor) - [CLI guide](/themes/cli) - [Custom React sections](/themes/custom-sections) - [Template JSON reference](/themes/template-json) - [Theme check rules](/themes/theme-check) - [Scopes and approvals](/themes/scopes-and-approvals) - [MCP tool reference](/themes/mcp-tools) - [OAuth for MCP clients](/themes/oauth) - [Troubleshooting](/themes/troubleshooting) - [API overview](/api-reference/overview) - [Endpoint Status](/api-reference/endpoint-status) - [Platform Status](/api-reference/platform-status) - [Webhooks](/api-reference/webhooks) - [Rate limits](/api-reference/rate-limits) - [Resolve the calling agent principal, tenant, and granted scopes.](/api-reference/meta/resolve-the-calling-agent-principal-tenant-and-granted-scopes) - [Machine-readable catalog of all tools + JSON schemas.](/api-reference/meta/machine-readable-catalog-of-all-tools-+-json-schemas) - [Unified job status & result for any async operation.](/api-reference/jobs/unified-job-status-&-result-for-any-async-operation) - [Post jobs cancel](/api-reference/jobs/post-jobs-cancel) - [Create a store/landing project from a natural-language brief (async).](/api-reference/store/create-a-storelanding-project-from-a-natural-language-brief-async) - [Get projects status](/api-reference/store/get-projects-status) - [Post landing pages](/api-reference/store/post-landing-pages) - [Publish to live (build→S3→CloudFront). Spend-adjacent; may be approval-gated.](/api-reference/store/publish-to-live-build→s3→cloudfront-spend-adjacent;-may-be-approval-gated) - [Post projects domains](/api-reference/store/post-projects-domains) - [List products.](/api-reference/products/list-products): One call returns up to 250 products and, with `include=variants`, every variant's price, compare-at price, SKU and stock, so a bulk read costs one request against your rate limit. Money is a decimal string in the store currency (`"19.99"`). Paginate with `page_info` (cursor, recommended): follow `meta.next_page_info` or the `Link` header. When `page_info` is set, only `limit`, `fields` and `include` may accompany it; the filters travel inside the cursor. `page` selects legacy offset pagination. Unknown query parameters return 400. - [Post products](/api-reference/products/post-products) - [Count products matching the list filters.](/api-reference/products/count-products-matching-the-list-filters) - [Get one product with its variants.](/api-reference/products/get-one-product-with-its-variants) - [Update a product.](/api-reference/products/update-a-product) - [Soft-delete a product.](/api-reference/products/soft-delete-a-product) - [Update one variant.](/api-reference/products/update-one-variant): Send only the fields to change. Money as decimal strings; `compare_at_price` null ends a sale. - [Bulk update variants.](/api-reference/products/bulk-update-variants): Each variant is validated and written in its own transaction, with the same rules as `PATCH /products/variants/{variant_id}` (for example, compare-at must be higher than price). One variant failing does not roll back the others: read `data.results[]` even on 200. Emits one `products/update` webhook per product touched and one storefront refresh. Counts as one request against your rate limit. A replay with the same `Idempotency-Key` and body returns the first response. - [Post productsbulk](/api-reference/products/post-productsbulk) - [Page through the store's products.](/api-reference/products/page-through-the-stores-products) - [Create a product.](/api-reference/products/create-a-product) - [Read Shopify product links and return what would be imported. Writes nothing.](/api-reference/products/read-shopify-product-links-and-return-what-would-be-imported-writes-nothing) - [Create a product per Shopify product link.](/api-reference/products/create-a-product-per-shopify-product-link): Copies title, sanitized description, images, options and every variant with its own price, compare-at price and SKU. Images are downloaded and re-hosted on the store's CDN rather than hotlinked. Money is copied verbatim in the source store's currency — no conversion is applied. Inventory is not imported: public storefronts expose whether a variant is in stock but never the count. - [Distinct vendors, product types and tags for the store.](/api-reference/products/distinct-vendors-product-types-and-tags-for-the-store) - [Soft-delete many products (ids travel in the body).](/api-reference/products/soft-delete-many-products-ids-travel-in-the-body) - [Set draft / active / archived on many products.](/api-reference/products/set-draft-active-archived-on-many-products) - [Add and/or remove tags across many products (set semantics).](/api-reference/products/add-andor-remove-tags-across-many-products-set-semantics) - [Delete apiv1productsvariants](/api-reference/products/delete-apiv1productsvariants) - [Partial update of a variant.](/api-reference/products/partial-update-of-a-variant) - [Backfill the variant's current SKU into historical order-item snapshots.](/api-reference/products/backfill-the-variants-current-sku-into-historical-order-item-snapshots) - [One product, enriched with variants, images, description and category.](/api-reference/products/one-product-enriched-with-variants-images-description-and-category) - [Soft-delete. The row is retained but disappears from every read.](/api-reference/products/soft-delete-the-row-is-retained-but-disappears-from-every-read) - [Partial update. Omitted fields are left untouched.](/api-reference/products/partial-update-omitted-fields-are-left-untouched) - [Copy a product with its variants, images, description and category.](/api-reference/products/copy-a-product-with-its-variants-images-description-and-category) - [Attach an image by URL (no binary upload).](/api-reference/products/attach-an-image-by-url-no-binary-upload) - [Delete apiv1products images](/api-reference/products/delete-apiv1products-images) - [Add a variant.](/api-reference/products/add-a-variant) - [Current dropship bind between this product's variants and catalog variants.](/api-reference/products/current-dropship-bind-between-this-products-variants-and-catalog-variants) - [Bind to the sourcing catalog — the dropship "add to store" write.](/api-reference/products/bind-to-the-sourcing-catalog-—-the-dropship-"add-to-store"-write) - [Clear every catalog link and reset the product to unbound.](/api-reference/products/clear-every-catalog-link-and-reset-the-product-to-unbound) - [Catalog link with the resolved catalog product and variant detail.](/api-reference/products/catalog-link-with-the-resolved-catalog-product-and-variant-detail) - [List collections.](/api-reference/catalog/list-collections): The store's collections with product counts. Pass an id as `collection_id` on `GET /products`. - [Post collections](/api-reference/catalog/post-collections) - [Get catalogsearch](/api-reference/catalog/get-catalogsearch) - [Begin Meta/Google/TikTok OAuth; returns an auth_url for the human to authorize.](/api-reference/ads/begin-metagoogletiktok-oauth;-returns-an-auth_url-for-the-human-to-authorize) - [Get adsinsights](/api-reference/ads/get-adsinsights) - [Post campaigns](/api-reference/marketing/post-campaigns) - [Send/schedule a campaign. Spends money & contacts customers; may be approval-gated.](/api-reference/marketing/sendschedule-a-campaign-spends-money-&-contacts-customers;-may-be-approval-gated) - [Post automations](/api-reference/marketing/post-automations) - [Post segments](/api-reference/marketing/post-segments) - [Get analyticsdashboard](/api-reference/analytics/get-analyticsdashboard) - [Get orders](/api-reference/orders/get-orders) - [One order with full detail — items, totals, customer, shipping, fulfillment. Money in major units.](/api-reference/orders/one-order-with-full-detail-—-items-totals-customer-shipping-fulfillment-money-in-major-units) - [Post orders fulfill](/api-reference/orders/post-orders-fulfill) - [Send abandoned-cart recovery emails. Spends; may be approval-gated.](/api-reference/orders/send-abandoned-cart-recovery-emails-spends;-may-be-approval-gated) - [Get keys](/api-reference/admin/get-keys) - [Mint a scoped service-account key (returned once).](/api-reference/admin/mint-a-scoped-service-account-key-returned-once) - [Delete keys](/api-reference/admin/delete-keys) - [Subscribe to outbound events (deploy.ready, order.created, job.completed, roas.threshold).](/api-reference/admin/subscribe-to-outbound-events-deployready-ordercreated-jobcompleted-roasthreshold) - [List the store's themes.](/api-reference/themes/list-the-stores-themes) - [Create a development theme as a copy of another theme.](/api-reference/themes/create-a-development-theme-as-a-copy-of-another-theme): Copies `from_theme_id` (default: the store's main theme) into a new theme with role `development`. Development themes idle for more than 7 days are deleted automatically. - [Get themes](/api-reference/themes/get-themes) - [Delete a development theme.](/api-reference/themes/delete-a-development-theme): Agent keys can delete only `development` themes. The main (live) theme is refused with `409 THEME_IS_LIVE`; an `unpublished` theme with `409 THEME_NOT_DEVELOPMENT` (delete it from the dashboard). - [Every file with its owner, the limits, and the available section and block types.](/api-reference/themes/every-file-with-its-owner-the-limits-and-the-available-section-and-block-types) - [Read theme files (at most 400 per request).](/api-reference/themes/read-theme-files-at-most-400-per-request) - [Create or update up to 50 files in one versioned batch.](/api-reference/themes/create-or-update-up-to-50-files-in-one-versioned-batch): The batch is validated first. Files with user errors are skipped and reported in `user_errors`; valid files are written atomically and recorded as ONE version (author `agent:`). A batch in which every file failed writes nothing and returns `version_id: null`. Send `checksum_before` for every existing file you edit — a mismatch returns `CONFLICT` for that file instead of overwriting a newer change. - [Delete files from a theme.](/api-reference/themes/delete-files-from-a-theme) - [Run theme check — the same validator the CLI, dev MCP and publish use.](/api-reference/themes/run-theme-check-—-the-same-validator-the-cli-dev-mcp-and-publish-use) - [Create a temporary preview link.](/api-reference/themes/create-a-temporary-preview-link) - [Publish a theme as the live theme (spend-class; approval-gated by store policy).](/api-reference/themes/publish-a-theme-as-the-live-theme-spend-class;-approval-gated-by-store-policy): Runs theme check in publish mode first; any error returns `422 CHECK_FAILED` and nothing is published or queued. Then follows the same publish path as the dashboard (role flip → instant deploy → bake). With the store setting `agent_theme_publish_policy = approval_required` (default) the job is created in `pending_approval` and runs after the merchant approves; with `auto` it is queued immediately. Webhooks `theme.published` / `theme.publish_failed` fire on the outcome. - [Durable publish status — the same answer the dashboard editor polls.](/api-reference/themes/durable-publish-status-—-the-same-answer-the-dashboard-editor-polls) - [Saved versions of the theme.](/api-reference/themes/saved-versions-of-the-theme) - [Restore the theme's files to a saved version.](/api-reference/themes/restore-the-themes-files-to-a-saved-version) - [Fulfillment overview](/fulfillment/overview) - [Supplier quickstart](/fulfillment/quickstart) - [Fulfillment orders](/fulfillment/fulfillment-orders) - [Fulfillments (shipments)](/fulfillment/fulfillments) - [Inventory & webhooks](/fulfillment/inventory-and-webhooks) - [Sell on the Supplier Network](/fulfillment/supplier-network) - [Get verified and read your scorecard](/fulfillment/supplier-verification) - [Products](/commerce/products) - [Inventory & Locations](/commerce/inventory) - [Discounts](/commerce/discounts) - [Gift Cards & Store Credit](/commerce/gift-cards) - [Draft Orders](/commerce/draft-orders) - [Metafields](/commerce/metafields) - [Online Store content](/commerce/online-store) - [Script tags](/commerce/script-tags) - [Returns](/commerce/returns) - [Domains](/commerce/domains) - [Checkout URLs](/commerce/checkout-urls) - [Build a store from a brief](/recipes/build-a-store) - [Bulk import products](/recipes/bulk-import-products) - [Bulk edit prices](/recipes/bulk-edit-prices) - [Import a product from a Shopify link](/recipes/import-from-shopify) - [Launch & monitor a campaign](/recipes/launch-campaign) - [Connect ads & monitor ROAS](/recipes/connect-ads-monitor-roas) - [Build a webhook receiver](/recipes/webhook-receiver) - [Getting started](/partners/getting-started) - [Where your app keeps its data](/partners/app-data) - [App CLI](/partners/cli) - [App configuration](/partners/app-config) - [Development stores](/partners/development-stores) - [Install flow (OAuth)](/partners/oauth) - [Embedded apps](/partners/embedded-apps) - [Webhooks](/partners/webhooks) - [Skill apps](/partners/skill-apps) - [App Store listing](/partners/app-store-listing) - [Billing API](/partners/billing) - [Extensions](/partners/extensions) - [Agent tools](/partners/agent-tools) - [Versions & review](/partners/review) - [Review guidelines](/partners/review-guidelines) - [v1.0 — Agent Gateway launch](/changelog/v1)