Skip to content
scango.ch
Esc
↑↓navigate↵open⌘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
min length 1
pricenumberrequired

Price in cents

taxCategorystringrequired
Allowed:8.12.63.80
supplierstring
categorystring
declarationsstring
barcodestring

Normalized to lowercase; empty becomes the document id

barcodeAliasesobject[]

Optional additional EANs. Omit when unused. Available when the barcode aliases feature is enabled for the organization. Returns 403 Feature not available when barcode aliases are not enabled for the organization.

Show properties
Array of object
codestringrequired
quantitynumber
priceinteger

Optional pack price in cents

labelstring
externalIdstring

Optional external article ID

externalIdstring
depositProductnumber

Deposit in cents

depositProductLabelstring
descriptionstring
salePricenumber
salePercentagenumber
salePriceDateFromstring<date-time>
salePriceDateTostring<date-time>
costPricenumber
marginnumber
showOnScreenboolean
ageRestrictionboolean
showOnScaleboolean
saleStopboolean
deactivatedboolean
imageUrlstring

Image URL, stored as given. To upload a file, use POST /products/{productId}/image.

indexnumber
Responses
200

Product created

successbooleanrequired
idstringrequired
400

Invalid parameters or body.

statusCodeintegerrequired

HTTP status code

messagestringrequired

Human-readable error message

timestampstring<date-time>required

When the error occurred (UTC).

pathstringrequired

Request URL (path and query string).

403

Missing, unknown or inactive API key, or a Read key on a write operation.

statusCodeintegerrequired

HTTP status code

messagestringrequired

Human-readable error message

timestampstring<date-time>required

When the error occurred (UTC).

pathstringrequired

Request URL (path and query string).

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://dashboard.scango.ch/api/v1/products' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Orange juice 1L",
  "price": 349,
  "taxCategory": "2.6",
  "description": "Fresh orange juice",
  "supplier": "sup_01",
  "category": "cat_beverages",
  "barcode": "7610800009999",
  "externalId": "sku-oj-1l",
  "showOnScreen": true,
  "ageRestriction": false,
  "showOnScale": false,
  "saleStop": false
}'
Response
{
  "success": true,
  "id": "newProductId"
}

Was this page helpful?