Create Product
/api/catalog/productsAdds 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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= length <= 631 <= items <= 10Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/catalog/products" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "variants": [ { "name": "string", "unitPriceMinor": 1 } ] }'[ { "variantId": "string", "variantName": "string", "productId": "string", "productName": "string", "unitPriceMinor": -9007199254740991, "deliveredByPluginCode": "string" }]Verify Api Access Credential POST
Resolve the store a bearer token presented to the calling plugin was issued for. The request that presented it reached the plugin through the storefront, which invoked the plugin for that same store.
List Variants GET
Lists 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.
