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
declarationsstringbarcodestringdepositProductintegerDepot in Rappen.
depositProductLabelstringdescriptionstringsalePriceintegerVerkaufspreis in Rappen.
salePercentagenumbersalePriceDateFromstring<date-time>salePriceDateTostring<date-time>costPriceintegerEinkaufspreis in Rappen.
marginnumbershowOnScreenbooleanageRestrictionbooleanshowOnScalebooleansaleStopbooleandeactivatedbooleanopenInputbooleanimageUrlstringBild-URL (schreibgeschützt).
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",
"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"
}