anyshop docs homeStatusOpen the dashboard

API reference Products Update a product

API referenceProducts

Update a product

PATCH methodhttps://api.anyshop.io/v1/products/{id}

Changes the fields you send and nothing else.

  • Scope products:write
  • Live keys only
  • Idempotent with Idempotency-Key
  • 403 store_suspended while suspended

Path parameters

  • idstring required

Body

application/json0 required, 22 optional
  • namestring What buyers see on your storefront and in their email1 to 120 characters
  • categoryenum Deprecated and ignored: products have no category since 23 November 2026. Still accepted, so existing integrations keep workingsoftware_licensesdigital_filesaccess_membershipsservices
  • slugstring A new address on the storefront: lowercase letters, digits and dashes. The old address keeps working: the product page sends visitors on, and checkout links and buy buttons made with it still open the productUp to 80 characters
  • descriptionstring Shown on the product pageUp to 10,000 characters
  • max_quantity_per_orderinteger How many one buyer can take in one order, default 11 to 100
  • min_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 100
  • listedboolean 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 it
  • low_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,000
  • platformstring or null Serial keys only. Where the key is used, such as Windows and macOSUp to 40 characters
  • regionstring or null Serial keys only. Where the key worksUp to 40 characters
  • delivery_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 characters
  • dynamic_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 characters
  • immediate_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 services
  • stock_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,000
  • payment_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 items
  • seo_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 characters
  • seo_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 characters
  • after_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 characters
  • quantity_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 items
    • min_quantityinteger requiredFrom this many units in one order: 2 up to max_quantity_per_order2 to 100
    • percent_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 characters
  • upsellobject 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 offer
    • product_idstring requiredAnother product of your store that is on sale, never this oneUp to 64 characters
    • coupon_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 items
    • product_idstring requiredA product of your store that is not a bundleUp to 64 characters
    • variant_idstring requiredOne of that product's variants, at a fixed priceUp to 64 characters
    • quantityinteger 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.type
  • 400invalid_requestThe request is not valid; error.param names the field
  • 401authenticationNo API key, or it is not valid
  • 403permissionThe key does not have the scope this needs, or the store is suspended (store_suspended)
  • 404not_foundNot found in the key's store and mode
  • 409conflictConflicts 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