Get product by ID
Get a product by id.
GET
/products/{productId}Authorization
AuthorizationBearer token (API key) · headerrequiredOrganization API key.
Path parameters
productIdstringrequiredResponses
200Product details
dataProductrequiredProduct. Money fields are integer cents.
Show propertiesHide properties
idstringProduct document id
externalIdstringOptional external identifier
namestringpriceintegerPrice in cents.
supplierstringSupplier id
taxCategorystringSwiss VAT category code
Allowed:
8.12.63.80categorystringCategory id
declarationsstringbarcodestringdepositProductintegerDeposit in cents.
depositProductLabelstringdescriptionstringsalePriceintegerSale price in cents.
salePercentagenumbersalePriceDateFromstring<date-time>salePriceDateTostring<date-time>costPriceintegerCost price in cents.
marginnumbershowOnScreenbooleanageRestrictionbooleanshowOnScalebooleansaleStopbooleandeactivatedbooleanopenInputbooleanimageUrlstringImage URL (read-only).
indexintegerallowStorestring[]Allowed store ids (read-only).
hideStorestring[]Hidden store ids (read-only).
deletedbooleanSoft-deleted when true.
createdatestring<date-time>lastupdatestring<date-time>instancestringOrganization id when present
403Unauthorized
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
404Not found
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
Request
curl -X GET "https://dashboard.scango.ch/api/v1/products/string" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://dashboard.scango.ch/api/v1/products/string", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"data": {
"id": "string",
"externalId": "string",
"name": "string",
"price": 0,
"supplier": "string",
"taxCategory": "8.1",
"category": "string",
"declarations": "string",
"barcode": "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,
"deactivated": true,
"openInput": true,
"imageUrl": "string",
"index": 0,
"allowStore": [
"string"
],
"hideStore": [
"string"
],
"deleted": true,
"createdate": "2024-01-01T00:00:00Z",
"lastupdate": "2024-01-01T00:00:00Z",
"instance": "string"
}
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}