---
title: "Add or update product master data. Update is triggered if {suppliername, productno, industry, country} matches existing item"
method: POST
path: "/productmasterdata"
tags: ["ProductMasterData"]
---

# Add or update product master data. Update is triggered if {suppliername, productno, industry, country} matches existing item

`POST /productmasterdata`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/productmasterdata`
- Auth: HTTP bearer

## Request body

- ProductMasterData: The representation of a product master data (stamdata).
  - `id` integer, nullable: A unique entry ID
  - `suppliername` string, required: Name of supplier
  - `tags` string[], nullable
  - `title` string: Name of product
  - `productno` string, required: Product id
  - `barcode` string, nullable: Barcode
  - `alternativebarcode` string, nullable: Barcode
  - `brand` string, nullable: Brand
  - `suggestedprice` number, double, nullable: Maps to `Product.price`
  - `price` number, double, nullable: Maps to `Product.costprice`
  - `color` string, nullable: Color
  - `size` string, nullable: Size
  - `styleno` string, nullable: Style number
  - `vat` number, double, nullable: VAT in percent
  - `industry` string, required: Industry. Examples: bikeshop, garden, phone, jewelry, generic.
  - `country` string, required: Country. Examples: dk, en.
  - `year` integer, nullable: Year
  - `stock` integer, nullable: The quantity of this product in suppliers stock
  - `stockupdated` string, nullable: The date time when the stock quantity was valid
  - `imageurl` string, nullable: The url from which to fetch the image
  - `webshopurl` string, nullable: The url of the product in the webshop
  - `lastupdate` string, nullable: Date time of the last time this entry was updated
  - `customfield1` string, nullable
  - `customfield2` string, nullable
  - `customfield3` string, nullable
  - `customfield4` string, nullable

## Response `200`

Ok

- ProductMasterDataResponse: The representation of product master data (response).
  - `content` ProductMasterData: The representation of a product master data (stamdata).
    - `id` integer, nullable: A unique entry ID
    - `suppliername` string, required: Name of supplier
    - `tags` string[], nullable
    - `title` string: Name of product
    - `productno` string, required: Product id
    - `barcode` string, nullable: Barcode
    - `alternativebarcode` string, nullable: Barcode
    - `brand` string, nullable: Brand
    - `suggestedprice` number, double, nullable: Maps to `Product.price`
    - `price` number, double, nullable: Maps to `Product.costprice`
    - `color` string, nullable: Color
    - `size` string, nullable: Size
    - `styleno` string, nullable: Style number
    - `vat` number, double, nullable: VAT in percent
    - `industry` string, required: Industry. Examples: bikeshop, garden, phone, jewelry, generic.
    - `country` string, required: Country. Examples: dk, en.
    - `year` integer, nullable: Year
    - `stock` integer, nullable: The quantity of this product in suppliers stock
    - `stockupdated` string, nullable: The date time when the stock quantity was valid
    - `imageurl` string, nullable: The url from which to fetch the image
    - `webshopurl` string, nullable: The url of the product in the webshop
    - `lastupdate` string, nullable: Date time of the last time this entry was updated
    - `customfield1` string, nullable
    - `customfield2` string, nullable
    - `customfield3` string, nullable
    - `customfield4` string, nullable
  - `status` string

## Other responses

- `4XX`: Failed

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
