Skip to Content
API ReferenceProducts

Publish a product

Publish a draft product so customers can buy it.

Publish a draft product once it is ready to sell. SellApp checks the saved product the way the dashboard does before publishing, and refuses with 422 and one sentence per missing piece when something is not ready yet.

For a normal product with several variants, send the draft variants to sell in variant_ids; the others stay drafts. For a course, send visibility or leave it out to keep the saved one.

POST
/v2/products/{product}/publish

Publish a draft product so customers can buy it. Works for normal products, bundles, add-ons, credits products, booking products, and courses. Each is checked as saved, the way its dashboard editor checks it before publishing, and nothing else about the product changes. A normal product needs a description and at least one published variant, and every variant that will be on sale needs a title, a description of at least 5 characters, a working delivery (for example an uploaded file for a download), a price, and payment methods enabled for the store that can take that currency. With exactly one variant, that variant is published with the product. With several, send the draft variants to publish with it in variant_ids; the others stay drafts. Publishing a subscription variant also creates its billing plans with the payment providers. A booking product publishes its one option with it; with several options, publish at least one with POST /v2/products/{product}/variants/{variant}/publish first, and the other options keep their own state. A bundle needs at least one product in it. A course is published with visibility, or with its saved visibility when you leave it out; PUBLIC also needs a ready promo video and at least one published lesson. A subscription-priced course cannot be published here. Publishing does not change a normal product's visibility: a product that is not PUBLIC is published but stays off the storefront listing. Requires the listing API-key ability and the listing permission in your team role. Safe to repeat: once the product is published, another call changes nothing and returns 422 with The product is already published. on product. Every refusal returns 422. visibility is accepted only for a course and variant_ids only for a normal product; each is otherwise refused on that field, and variant_ids.{i} names an ID that is not a variant of this product. Everything else is on product, with one sentence per thing the product still needs. One product refusal comes after the product was published: when a payment provider refuses to create a subscription billing plan, the product and its variants are already published and the message is the provider's reason. Retrieve the product before trying again. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

product*integer

The product path parameter.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
visibility?CatalogVisibility
Value in"PUBLIC""ON_HOLD""HIDDEN""PRIVATE"
variant_ids?array<integer>|

Normal products only. IDs of this product's draft variants to publish with it. Needed when the product has several variants and none is published yet; a single variant is published anyway. Draft variants you leave out stay drafts.

Response Body

The published product. variants lists its published variants only.

application/json
  1. response
data*
Example Request
curl -X POST 'https://sell.app/api/v2/products/0/publish' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "variant_ids": [    2  ]}'
{  "data": {    "id": 1,    "title": "Project Launch Kit",    "slug": "project-launch-kit",    "description": "<p>A practical guide to planning, testing and launching your project.</p>",    "images": [      {        "path": "store/1/listings/NM6TBKIMzpFJq1MKTV24oMJ1W4UrKCo7NS98nt4K.png",        "metadata": {          "size": 39289,          "filename": "NM6TBKIMzpFJq1MKTV24oMJ1W4UrKCo7NS98nt4K",          "extension": "png",          "mime_type": "image/png"        }      },      {        "path": "store/1/listings/ov6XMb68tRr80zl7sqfN1or7xfqqH5WbZygDEQ8X.png",        "metadata": {          "size": 422373,          "filename": "ov6XMb68tRr80zl7sqfN1or7xfqqH5WbZygDEQ8X",          "extension": "png",          "mime_type": "image/png"        }      }    ],    "order": 1,    "visibility": "PUBLIC",    "delivery_text": "Thanks for your purchase. Your download is ready.",    "additional_information": [      {        "required": true,        "key": "3aecffd000e00e2211e94558007ffc37",        "type": "checkbox",        "label": "Do you agree to the purchase terms?"      }    ],    "other_settings": {      "faq": [        {          "answer": "Yes. Adapt the included templates to your project.",          "question": "Can I use these templates for my own project?"        }      ],      "video_url": "https://example.com/launch-lab/product-tour",      "redirect_url": "https://example.com/post-launch?customer_email=[customer_email]&order_id=[order_id]",      "product_title": "Project Launch Kit",      "product_description": "Plan, test, and launch your next project."    },    "deleted_at": null,    "created_at": "2024-01-09T22:56:49.000000Z",    "updated_at": "2026-07-03T09:12:00.000000Z",    "store_id": 1,    "category_id": null,    "section_id": null,    "section_order": null,    "is_discoverable": true,    "variants": [      {        "id": 2,        "title": "Professional Edition"      }    ],    "url": "https://launch-lab.sell.app/product/project-launch-kit"  }}