Create a product
POST methodhttps://api.anyshop.io/v1/products
Adds a product to your catalog as a draft, with one variant, Standard, at the price you give. Publish it to put it on sale.
Body
application/json2 required, 25 optionalnamestring requiredWhat buyers see on your storefront and in their email1 to 120 characterstypeenum requiredHow it is delivered: serial keys from your stock, license keys anyshop issues, a file download, your own server (dynamic), instructions for a service, or a bundle of your other products (items) at one priceseriallicensefiledynamicservicebundlecategoryenum Deprecated and ignored: products have no category since 23 November 2026. Still accepted, so existing integrations keep workingsoftware_licensesdigital_filesaccess_membershipsservicespriceinteger The price of its Standard variant, in minor units of your store currency: 1999 is $19.99, 0 makes it free. Required unless price_kind is chosen, whose price is suggested_priceAt least 0price_kindenum fixed (the default), or chosen: the buyer chooses what to pay, from minimum_price up to 100 times suggested_price. A chosen price takes no coupons, quantity discounts or compare_at_pricefixedchosenminimum_priceinteger With price_kind chosen: the least a buyer can pay per unit, in minor units, at most suggested_price. 0 makes it free, except for serial key productsAt least 0suggested_priceinteger With price_kind chosen: the price suggested to buyers per unit, in minor units, 1 or moreAt least 1descriptionstring Shown on the product pageUp to 10,000 charactersmax_quantity_per_orderinteger How many one buyer can take in one order, default 11 to 100min_quantity_per_orderinteger The fewest one buyer takes in one order, default 1, at most max_quantity_per_order. Lowering max_quantity_per_order below it lowers it too. A product with fewer keys or units left than this shows as sold out1 to 100listedboolean Whether it shows on your store page, default true. False hides it from the store page's list and search; its own link, buy buttons and the API still sell itlow_stock_thresholdinteger or null Serial keys only. Below this many keys you get the daily low stock email and a stock.low event0 to 1,000,000platformstring or null Serial keys only. Where the key is used, such as Windows and macOSUp to 40 charactersregionstring or null Serial keys only. Where the key worksUp to 40 charactersdelivery_instructionsstring The seller's instructions for the buyer, shown with what was delivered (a key, a license, a download), or, for a service, what the buyer receivesUp to 2,000 charactersdynamic_endpoint_urlstring or null Dynamic products: your https server (port 443 or 8443), which anyshop calls after each payment with a Standard Webhooks signed request; its answer is deliveredUp to 2,048 charactersimmediate_delivery_consentboolean Whether every buyer ticks a box at checkout asking for it right away; in the EU, the EEA and the UK this ends their 14-day cancellation period when it is delivered. Off: no buyer is asked, and EU, EEA and UK buyers keep the 14 days. Default true, false for servicescompare_at_priceinteger or null An earlier price shown struck through beside the price, in minor units; above the priceAt least 1stock_limitinteger or null Not for serial keys. Units left to sell: each live sale takes one off, sold out at 0. Null is unlimited0 to 1,000,000payment_methodsarray of strings or null The ways to pay it takes, from those your store connected: stripe, paypal, btc, ltc. Null takes every one1 to 20 itemsseo_titlestring or null The product page's title in search results and link previews, up to 70 characters. Null or empty uses the product's nameUp to 70 charactersseo_descriptionstring or null The product page's description in search results and link previews, up to 155 characters. Null or empty uses the start of its descriptionUp to 155 charactersafter_purchase_urlstring or null A full https address, up to 500 characters, without a user name or password. Once the buyer paid, their order page offers a button to continue to it. When an order's products have different links, none is offered. Null or empty for noneUp to 500 charactersquantity_discountsarray of objects Up to 4 steps for every variant, each from min_quantity (2 up to max_quantity_per_order) with percent_off (1 to 90), with bigger discounts at bigger quantities. Refused when max_quantity_per_order is 1. Send [] for none. Lowering max_quantity_per_order below a step is refused: change the steps with itUp to 4 itemsmin_quantityinteger requiredFrom this many units in one order: 2 up to max_quantity_per_order2 to 100percent_offinteger requiredPercent off the line, 1 to 901 to 90
thank_you_messagestring Up to 1,000 characters of visible text with simple formatting: bold, *italic*, words links (https only), - or 1. lists, and paragraphs separated by an empty line. Anything else, HTML included, shows as the text it is. Checked like the product's description: a live product whose message matches our acceptable use policy is held for a review. Empty for noneUp to 5,000 charactersupsellobject or null Offer another product of your store on the thank-you page: product_id, on sale and not this product, and coupon_id, a coupon that applies to it, or null. Null for no offerproduct_idstring requiredAnother product of your store that is on sale, never this oneUp to 64 characterscoupon_idstring or null requiredA coupon of your store that applies to that product, or null for noneUp to 64 characters
itemsarray of objects Bundles only: the products it holds, in order, each variant once. 2 to 10 to publish it (a draft may hold fewer). Each is delivered as it is on its own: keys from its own stock, licenses issued, its file, your server, its instructions. Sending the list replaces the one beforeUp to 10 itemsproduct_idstring requiredA product of your store that is not a bundleUp to 64 charactersvariant_idstring requiredOne of that product's variants, at a fixed priceUp to 64 charactersquantityinteger requiredHow many of it one bundle gives, up to that product's max_quantity_per_order1 to 100
Headers
Idempotency-Keystring Up to 255 characters. A retry with the same key and request gets the first answer, without running twice (24 hours).
Returns
The product object.
Errors
Status and error.type400invalid_requestThe request is not valid;error.paramnames the field401authenticationNo API key, or it is not valid403permissionThe key does not have the scope this needs, or the store is suspended (store_suspended)404not_foundNot found in the key's store and mode409conflictConflicts with the object's state (type conflict), or an Idempotency-Key reused for another request (type idempotency, code idempotency_key_reused)429rate_limitedToo many requests; see Retry-After