List Variants
/api/catalog/variantsLists the store's live product variants, archived and deleted ones left out, by product name then the seller's variant order; at most 100. Each names the plugin that delivers it, and deliveredBy keeps only one plugin's. Requires the store to have granted the plugin products:read.
Query Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/catalog/variants"[ { "variantId": "string", "variantName": "string", "productId": "string", "productName": "string", "unitPriceMinor": -9007199254740991, "deliveredByPluginCode": "string" }]Create Product POST
Adds a product with its variants to the store, with unlimited stock and no images, archived: hidden from the storefront until PublishProduct, so the plugin can first set up what selling it needs (such as its delivery) and no buyer pays for it before that. Its URL slug comes from its name. Answers the new variants in the order given. Requires the store to have granted the plugin products:write.
Publish Product POST
Makes a product the calling plugin created live on the storefront, like one the seller made, and tells the storefront its content changed. Only the first call publishes it: once live the product is the seller's, so one they archive afterwards stays archived and later calls change nothing. A product the plugin did not create, another store's, or a deleted one is not found. Requires the store to have granted the plugin products:write.
