Produkt per ID abrufen
Produkt anhand der ID abrufen.
GET
/products/{productId}Autorisierung
AutorisierungBearer-Token (API key) · headererforderlichOrganisations-API-Key.
Pfadparameter
productIdstringerforderlichAntworten
200Produktdetails
dataProducterforderlichProdukt. Geldfelder sind Ganzzahlen in Rappen.
Eigenschaften anzeigenEigenschaften ausblenden
idstringProdukt-Dokument-ID
externalIdstringOptionale externe Kennung
namestringpriceintegerPreis in Rappen.
supplierstringLieferanten-ID
taxCategorystringSchweizer MwSt.-Kategoriecode
Erlaubt:
8.12.63.80categorystringKategorie-ID
declarationsstringbarcodestringbarcodeAliasesobject[]Optional additional EANs. Absent when unused. Empty array is not persisted. Available when the barcode aliases feature is enabled for the organization.
Eigenschaften anzeigenEigenschaften ausblenden
Array of
objectcodestringerforderlichAdditional EAN, lowercased like barcode
quantitynumberBase units represented by this code. Defaults to 1.
priceintegerOptional pack price in cents
labelstringexternalIdstringOptional external article ID
depositProductintegerDepot in Rappen.
depositProductLabelstringdescriptionstringsalePriceintegerVerkaufspreis in Rappen.
salePercentagenumbersalePriceDateFromstring<date-time>salePriceDateTostring<date-time>costPriceintegerEinkaufspreis in Rappen.
marginnumbershowOnScreenbooleanageRestrictionbooleanshowOnScalebooleansaleStopbooleandeactivatedbooleanopenInputbooleanimageUrlstringBild-URL. Setzen via Produkt-Create/Update oder POST /products/{productId}/image. Leerer String beim Update löscht das Feld und org-eigene Storage-Objekte.
indexintegerallowStorestring[]Erlaubte Store-IDs (schreibgeschützt).
hideStorestring[]Ausgeblendete Store-IDs (schreibgeschützt).
deletedbooleanSoft-gelöscht, wenn true.
createdatestring<date-time>lastupdatestring<date-time>instancestringOrganisations-ID, falls vorhanden
403Nicht autorisiert
statusCodeintegererforderlichHTTP-Statuscode
messagestringerforderlichLesbare Fehlermeldung
timestampstring<date-time>erforderlichpathstringerforderlichRequest-Pfad
404Not found
statusCodeintegererforderlichHTTP-Statuscode
messagestringerforderlichLesbare Fehlermeldung
timestampstring<date-time>erforderlichpathstringerforderlichRequest-Pfad
Anfrage
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: {
"Autorisierung": "Bearer YOUR_TOKEN"
}
});Antwort
{
"data": {
"id": "string",
"externalId": "string",
"name": "string",
"price": 0,
"supplier": "string",
"taxCategory": "8.1",
"category": "string",
"declarations": "string",
"barcode": "string",
"barcodeAliases": [
{
"code": "string",
"quantity": 0,
"price": 0,
"label": "string",
"externalId": "string"
}
],
"depositProduct": 0,
"depositProductLabel": "string",
"description": "string",
"salePrice": 0,
"salePercentage": 0,
"salePriceDateFrom": "2019-08-24T14:15:22Z",
"salePriceDateTo": "2019-08-24T14:15:22Z",
"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": "2019-08-24T14:15:22Z",
"lastupdate": "2019-08-24T14:15:22Z",
"instance": "string"
}
}{
"statusCode": 0,
"message": "string",
"timestamp": "2019-08-24T14:15:22Z",
"path": "string"
}{
"statusCode": 0,
"message": "string",
"timestamp": "2019-08-24T14:15:22Z",
"path": "string"
}