---
title: "POST /products"
method: POST
path: "/products"
tags: ["Products"]
---

# POST /products

`POST /products`

Creates a new product

## Request body

- CreateProductRequest — Request body for creating a product
  - `code` string, required — Product code (unique identifier)
  - `description` string, required — Description of the product
  - `seller` union, required — Seller information
    - PlatformSeller
      - `soldByPlatform` true, required — Indicates the product is sold by the platform
    - CounterpartySeller
      - `soldByPlatform` false, required — Indicates the product is sold by a counterparty
      - `counterpartyType` string, required — Type of the counterparty seller

## Response `201`

Success

- ProductSuccessResponse
  - `data` Product, required — Product object
    - `workspaceId` string, required — Workspace ID this product belongs to
    - `code` string, required — Product code (unique identifier)
    - `description` string, required — Description of the product
    - `seller` union, required — Seller information
      - PlatformSeller
        - `soldByPlatform` true, required — Indicates the product is sold by the platform
      - CounterpartySeller
        - `soldByPlatform` false, required — Indicates the product is sold by a counterparty
        - `counterpartyType` string, required — Type of the counterparty seller
    - `updateVersion` number, required — Version number for optimistic locking
    - `created` string, date-time, required — ISO 8601 timestamp when the product was created

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.dev/fragment-dev/apis/fragment-payments-api.md) · [All operations](https://skmtc.dev/fragment-dev/apis/fragment-payments-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fragment-dev/apis/fragment-payments-api/revisions/cee52ef467c1?raw)
