Aller au contenu
scango.ch
Français
Esc
naviguerouvrir⌘Japerçu

Obtenir un produit par ID

Récupère un produit par id.

GET/products/{productId}
Autorisation
AutorisationJeton Bearer (API key) · headerobligatoire
Clé API de l’organisation.
Paramètres de chemin
productIdstringobligatoire
Réponses
200Détails du produit
dataProductobligatoire
Produit. Les champs monétaires sont des entiers en centimes.
Afficher les propriétés
idstring
Id du document produit
externalIdstring
Identifiant externe optionnel
namestring
priceinteger
Prix en centimes.
supplierstring
Id du fournisseur
taxCategorystring
Code de catégorie TVA suisse
Autorisé:8.12.63.80
categorystring
Id de la catégorie
declarationsstring
barcodestring
depositProductinteger
Consigne en centimes.
depositProductLabelstring
descriptionstring
salePriceinteger
Prix de vente promotionnel en centimes.
salePercentagenumber
salePriceDateFromstring<date-time>
salePriceDateTostring<date-time>
costPriceinteger
Prix de revient en centimes.
marginnumber
showOnScreenboolean
ageRestrictionboolean
showOnScaleboolean
saleStopboolean
deactivatedboolean
openInputboolean
imageUrlstring
URL de l’image (lecture seule).
indexinteger
allowStorestring[]
Ids de magasins autorisés (lecture seule).
hideStorestring[]
Ids de magasins masqués (lecture seule).
deletedboolean
Supprimé logiquement lorsque true.
createdatestring<date-time>
lastupdatestring<date-time>
instancestring
Id de l’organisation lorsqu’il est présent
403Non autorisé
statusCodeintegerobligatoire
Code de statut HTTP
messagestringobligatoire
Message d’erreur lisible
timestampstring<date-time>obligatoire
pathstringobligatoire
Chemin de la requête
404Not found
statusCodeintegerobligatoire
Code de statut HTTP
messagestringobligatoire
Message d’erreur lisible
timestampstring<date-time>obligatoire
pathstringobligatoire
Chemin de la requête
Requête
curl -X GET "https://dashboard.scango.ch/api/v1/products/string" \
  -H "Authorization: Bearer YOUR_TOKEN"
Réponse
{
  "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"
  }
}