POST
/
products
curl --request POST \
  --url https://dashboard.scango.ch/api/v1/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "price": 123,
  "supplier": "<string>",
  "taxCategory": "8.1",
  "category": "<string>",
  "declarations": "<string>",
  "barcode": "<string>",
  "depositProduct": 123,
  "description": "<string>",
  "salePrice": 123,
  "salePercentage": 123,
  "salePriceDateFrom": "2023-12-25",
  "salePriceDateTo": "2023-12-25",
  "costPrice": 123,
  "margin": 123,
  "showOnHomescreen": true,
  "showOnScreen": true,
  "ageRestriction": true,
  "showOnScale": true,
  "saleStop": true,
  "index": 123
}'
{
  "success": true,
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Product to create
name
string

Name of the product

price
integer

Price in cents

supplier
string

Supplier of the product

taxCategory
enum<string>

Tax category

Available options:
8.1,
2.6,
3.8,
0
category
string

Category ID of the product

declarations
string

Product declarations

barcode
string

Product barcode

depositProduct
integer

Deposit amount in cents

description
string

Product description

salePrice
integer

Sale price in cents

salePercentage
number

Sale percentage

salePriceDateFrom
string

Sale start date

salePriceDateTo
string

Sale end date

costPrice
integer

Cost price in cents

margin
number

Product margin

showOnHomescreen
boolean

Show on homescreen

showOnScreen
boolean

Show on screen

ageRestriction
boolean

Age restriction

showOnScale
boolean

Show on scale

saleStop
boolean

Sale stop

index
integer

Product index

Response

200
application/json
Product created successfully
success
boolean
id
string