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

Produkt aktualisieren

Produkt aktualisieren (POST-Body ist partiell). Erfordert einen Write-Key.

POST/products/{productId}
Autorisierung
AutorisierungBearer-Token (API key) · headererforderlich
Organisations-API-Key.
Pfadparameter
productIdstringerforderlich
Request-Body
erforderlichapplication/json
namestring
pricenumber
Preis in Rappen
taxCategorystring
Erlaubt:8.12.63.80
supplierstring
categorystring
declarationsstring
barcodestring
Normalisiert zu Kleinbuchstaben; leer wird zur Dokument-ID
barcodeAliasesobject[]
Optional additional EANs. Empty array removes the field. Available when the barcode aliases feature is enabled for the organization.
Eigenschaften anzeigen
Array of object
codestringerforderlich
quantitynumber
priceinteger
Optional pack price in cents
labelstring
externalIdstring
Optional external article ID
externalIdstring
depositProductnumber
Depot in Rappen
depositProductLabelstring
descriptionstring
salePricenumber | null
Aktionspreis in Rappen. Null oder leerer String entfernt das Feld.
salePercentagenumber | null
Aktionsrabatt in Prozent. Null oder leerer String entfernt das Feld.
salePriceDateFromstring<date-time> | null
Aktionsbeginn. Null oder leerer String entfernt das Feld.
salePriceDateTostring<date-time> | null
Aktionsende. Null oder leerer String entfernt das Feld.
costPricenumber
marginnumber
showOnScreenboolean
ageRestrictionboolean
showOnScaleboolean
saleStopboolean
deactivatedboolean
imageUrlstring
Image URL. Empty string clears the field and deletes the stored asset when it belongs to this organization (same as DELETE /products/{productId}/image).
indexnumber
deletedboolean
Auf true setzen zum Soft-Löschen.
Antworten
200Aktualisiert
successbooleanerforderlich
400Ungültige Anfrage
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
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 POST "https://dashboard.scango.ch/api/v1/products/string" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "price": 0,
  "taxCategory": "8.1",
  "supplier": "string",
  "category": "string",
  "declarations": "string",
  "barcode": "string",
  "barcodeAliases": [
    {
      "code": "string",
      "quantity": 0,
      "price": 0,
      "label": "string",
      "externalId": "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,
  "imageUrl": "string",
  "index": 0,
  "deleted": true
}'
Antwort
{
  "success": true
}