---
title: "Create a product"
method: POST
path: "/shop/products"
tags: ["Products"]
---

# Create a product

`POST /shop/products`

Create a new product. Requires the `SETTINGS_MANAGE` permission.

## Request body

- CreateProduct
  - `name` string, required — Display name of the retail product, shown on the storefront, in the POS product picker, on receipts, and on reports. Plain text; must not contain HTML. 1-255 characters.
  - `product_code` string, nullable — A custom product code for the product.
  - `external_id` string, nullable — An external identifier for the product.
  - `currency` string — The ISO-4217 currency code in lower case.
  - `description` string, nullable — A description of the product.
  - `standard_price` integer, nullable — The standard price for the product, in the smallest currency unit eg pence. Optional at create time — products can be created without a standard price and have one configured later.
  - `offered_online` boolean — Whether this product is available online.
  - `barcode` string, nullable — The barcode of the product. Must be unique within the site.
  - `private` boolean — Whether this product is private. When private, it is accessible from the URL but doesn't appear on category pages and isn't indexed on search engines.
  - `visibility` 'public' | 'link_only' | 'private' — The visibility status of the product.
  - `inventory_product_id` string, object-id, nullable — Optional identifier of the inventory product that backs this retail product. When linked, sales of this product decrement stock on the inventory product. Pass `null` for products that do not draw down stock.
  - `image_id` string, nullable — Media ID of the primary product image, shown on the storefront product page and in the POS picker. Upload via [`createMedia`](/endpoints/Media#createMedia) first and pass the returned ID here.
  - `revenue_centre` string, nullable — The revenue centre to assign revenue to for this product.
  - `category_ids` string[], nullable — An array of category IDs the product belongs to
  - `brand_id` string, uuid, nullable — The brand ID of the product

## Response `201`

A product response object.

- object
  - `data` SchemasProduct, required
    - `id` string, mongo-id, required — The ID of the product
    - `name` string, required — The name of this product
    - `currency` string, required — The ISO-4217 currency code in lower case
    - `description` string, nullable, required — A description of the product
    - `external_id` string, nullable, required — An external identifier for the product.
    - `product_code` string, nullable, required — A custom product code for the product.
    - `price_from` integer, nullable, required — The lowest price for the product as an integer of the smallest unit eg pence.
    - `price_to` integer, nullable, required — The highest price for the product as an integer of the smallest unit eg pence.
    - `standard_price` integer, nullable, required — The standard price for the product as an integer of the smallest unit eg pence. `null` if a standard price hasn't been configured — this is distinct from a price of zero.
    - `barcode` string, nullable, required — The barcode of the product
    - `inventory_product_id` string, object-id, nullable, required — The ID of the inventory product if this product is associated to one.
    - `image` Media, required
      - `id` string, uuid, required — Unique identifier of the uploaded media item, returned from `createMedia`. Pass this ID into any field that accepts a media reference (logos, hero images, product images, etc.).
      - `file_name` string, required — Original filename of the uploaded asset, preserved as provided at upload time. Used for display in the media library and as a hint when serving downloads.
      - `mime_type` string, required — The mime type of the media item.
      - `original_url` string, required — The url of the media resource.
      - `size` integer, required — The size of the media item in bytes.
      - `url` string, required — The url of the converted media resource.
    - `offered_online` boolean, required — Whether this product is available online
    - `private` boolean, required — Whether this product is private. When private, it is accessible from the URL but doesn't appear on category pages and isn't indexed on search engines.
    - `site_id` string, uuid, required — The ID of the site this product belongs to
    - `tag_ids` string[], required
    - `tags` object[], required
      - `id` string, object-id, required — The ID of the tag
      - `name` string, required — The name of the tag
      - `organisation_id` string, uuid, required — The organisation ID which this tag belongs to
    - `category_ids` string[], required — An array of category IDs that this product belongs to
    - `categories` object[], required — An array of categories that this product belongs to
      - `id` string, object-id, required — The ID of the category
      - `name` string, required — The name of the category
    - `price_rules` ProductPriceRule[], required — The rules defining prices for this product
      - `id` string, object-id, required — The ID of the price rule.
      - `product_id` string, object-id, required — The ID of the product the price rule relates to.
      - `date_from` string, date, nullable, required — The rule should apply to products sold on or after this date.
      - `date_to` string, date, nullable, required — The rule should not apply to products sold after this date.
      - `price` integer, required — The price of the product as an integer of the smallest unit, ie pence.
    - `revenue_centre` string, required — The revenue centre to assign revenue to for this product
    - `customer_cancellation_permitted` 'allowed' | 'disallowed' | 'unpaid'
    - `customer_cancellation_min_duration` string — The minimum duration that must be left before the booking this product is a part of in order for the customer to cancel, as an ISO8601 string. See https://en.wikipedia.org/wiki/ISO_8601#Durations
    - `updated_at` string, date-time, required — The time and date that the product was last updated.
    - `deleted_at` string, date-time, nullable, required — The time and date that the product was archived.
    - `brand_id` string, uuid, nullable — The brand ID of the product.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
