Zum Inhalt springen
scango.ch
Deutsch
Esc
navigierenöffnen⌘JVorschau

Produkt per ID abrufen

Produkt anhand der ID abrufen.

GET/products/{productId}
Autorisierung
AutorisierungBearer-Token (API key) · headererforderlich
Organisations-API-Key.
Pfadparameter
productIdstringerforderlich
Antworten
200Produktdetails
dataProducterforderlich
Produkt. Geldfelder sind Ganzzahlen in Rappen.
Eigenschaften anzeigen
idstring
Produkt-Dokument-ID
externalIdstring
Optionale externe Kennung
namestring
priceinteger
Preis in Rappen.
supplierstring
Lieferanten-ID
taxCategorystring
Schweizer MwSt.-Kategoriecode
Erlaubt:8.12.63.80
categorystring
Kategorie-ID
declarationsstring
barcodestring
depositProductinteger
Depot in Rappen.
depositProductLabelstring
descriptionstring
salePriceinteger
Verkaufspreis in Rappen.
salePercentagenumber
salePriceDateFromstring<date-time>
salePriceDateTostring<date-time>
costPriceinteger
Einkaufspreis in Rappen.
marginnumber
showOnScreenboolean
ageRestrictionboolean
showOnScaleboolean
saleStopboolean
deactivatedboolean
openInputboolean
imageUrlstring
Bild-URL (schreibgeschützt).
indexinteger
allowStorestring[]
Erlaubte Store-IDs (schreibgeschützt).
hideStorestring[]
Ausgeblendete Store-IDs (schreibgeschützt).
deletedboolean
Soft-gelöscht, wenn true.
createdatestring<date-time>
lastupdatestring<date-time>
instancestring
Organisations-ID, falls vorhanden
403Nicht autorisiert
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
404Not found
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
Anfrage
curl -X GET "https://dashboard.scango.ch/api/v1/products/string" \
  -H "Authorization: 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"
  }
}