Skip to content
scango.ch
English
Esc
navigateopen⌘Jpreview

Create product

Create a product. Requires a Write key.

POST/products
Authorization
AuthorizationBearer token (API key) · headerrequired
Organization API key.
Request body
requiredapplication/json
namestringrequired
pricenumberrequired
Price in cents
taxCategorystringrequired
Allowed:8.12.63.80
supplierstring
categorystring
declarationsstring
barcodestring
Normalized to lowercase; empty becomes the document id
externalIdstring
depositProductnumber
Deposit in cents
depositProductLabelstring
descriptionstring
salePricenumber
salePercentagenumber
salePriceDateFromstring<date-time>
salePriceDateTostring<date-time>
costPricenumber
marginnumber
showOnScreenboolean
ageRestrictionboolean
showOnScaleboolean
saleStopboolean
indexnumber
Responses
200Product created
successbooleanrequired
idstringrequired
400Bad request
statusCodeintegerrequired
HTTP status code
messagestringrequired
Human-readable error message
timestampstring<date-time>required
pathstringrequired
Request path
403Unauthorized
statusCodeintegerrequired
HTTP status code
messagestringrequired
Human-readable error message
timestampstring<date-time>required
pathstringrequired
Request path
Request
curl -X POST "https://dashboard.scango.ch/api/v1/products" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "price": 0,
  "taxCategory": "8.1",
  "supplier": "string",
  "category": "string",
  "declarations": "string",
  "barcode": "string",
  "externalId": "string",
  "depositProduct": 0,
  "depositProductLabel": "string",
  "description": "string",
  "salePrice": 0,
  "salePercentage": 0,
  "salePriceDateFrom": "2024-01-01T00:00:00Z",
  "salePriceDateTo": "2024-01-01T00:00:00Z",
  "costPrice": 0,
  "margin": 0,
  "showOnScreen": true,
  "ageRestriction": true,
  "showOnScale": true,
  "saleStop": true,
  "index": 0
}'
Response
{
  "success": true,
  "id": "string"
}