Aller directement à la fin des métadonnées
Aller au début des métadonnées

Vous regardez une version antérieure (v. /wiki/spaces/UDW54/pages/345417151/WebHook+Product) de cette page.

afficher les différences afficher l'historique de la page

« Afficher la version précédente Vous regardez la version actuelle de cette page. (v. 8) afficher la version suivante »

verb: GET
resultType: simple


  "product":{
    "codeproduct":"ALB0001",
    "description":"Album 'Mon petit Louvre' français / anglais",
    "productfamily_ID":"BIJOUXARG"
  }

verb: GET
resultType: extended

"product":{
    "codeproduct":"ALB0001",
    "description":"Album 'Mon petit Louvre' français / anglais",
    "productfamily_ID":"BIJOUXARG",
    "barcode":"3210330376946",
    "saleMultiple":"",
    "defaultPrice":"18.84",
    "weight":"0.23",
    "purchasePrice":"6.85",
    "coefficient":"",
    "packaging":"1",
    "supplierReference":"LIVR-JEUX000",
    "supplierBarcode":"",
    "generictype_ID_weightunit":"KG",
    "generictype_ID_taxCode":"1",
    "blocked":"0",
    "supplier_ID":"Saphira",
    "supplementaryDescription1":"test description 1 azerty",
    "supplementaryDescription2":"test description 2",
    "generictype_ID_sellingunit":"SIMPLE",
    "unused":"0",
    "generictype_ID_managementType":"",
    "height":"1",
    "width":"15",
    "depth":"20",
    "generictype_ID_lengthunit":"MM",
    "generictype_ID_brand":"",
    "productGeneric":"0",
    "product_ID_parentDeclination":"",
    "productdeclination_ID_level1":"",
    "productdeclination_ID_level2":"",
    "productdeclination_ID_level3":"",
    "productdeclination_ID_level4":"",
    "productdeclination_ID_level5":"",
    "stockDeclination":"0",
    "erpProductID":""
  }

Verb: GET
resultType: extendedRelated
en complément du résultat pour resultType: extended on aura le détail pour la table productfamily

"related":[
{
  "productfamily":{
    "codeproductfamily":"BIJOUXARG",
    "label":"Bijouterie Argent",
    "hierarchicalLevel":"1",
    "productfamily_ID_parentFamily":"ARG"
  }
}]

verb: PUT

{
  "product": {
    "codeproduct": "ALB0001",
    "description": "Album 'Mon petit Louvre'  français / anglais",
    "productfamily_ID": "BIJOUXARG",
    "saleMultiple": "",
    "defaultPrice": "18.84",
    "purchasePrice": "6.85",
    "weight": "0.230",
    "coefficient": "",
    "generictype_ID_weightunit": "WEIGHT_UNIT-KG",
    "barcode": "3210330376946",
    "packaging": "1",
    "generictype_ID_taxCode": "TAX_PRODUCT-1",
    "supplierReference": "LIVR-JEUX000",
    "supplier_ID": "SAPHIRA",
    "supplierBarcode": "",
    "generictype_ID_sellingUnit": "SELLING_UNIT-SIMPLE",
    "unused": "0",
    "generictype_ID_managementType": null,
    "height": "1",
    "width": "15",
    "depth": "20",
    "generictype_ID_lengthunit": "LENGTH_UNIT-MM",
    "productGeneric": "0",
    "product_ID_parentdeclination": null,
    "productdeclination_ID_level1": null,
    "productdeclination_ID_level2": null,
    "productdeclination_ID_level3": null,
    "productdeclination_ID_level4": null,
    "productdeclination_ID_level5": null,
    "stockDeclination": "0",
    "blocked": "0",
    "supplementaryDescription1": "",
    "supplementaryDescription2": "",
    "generictype_ID_brand": "",
    "erpProductID": null,
    "internalCodeProduct": null, /* CodeProduct original de weavy s'il y a eu transcodage (Varchar (255)) */
 
    /* Champs supplémentaires en surcharge DIVINF */
    "divinf_t001_ID_tafamrx": "",
    "divinf_t001_ID_tafamr": "LIB",
    "divinf_t002_ID_refamrx": "",
    "divinf_t002_ID_refamr": "LIBR",
    "divinf_pvcod": "1",
    "divinf_CR": "6.85",
    "divinf_CMP": "6.85",
    "divinf_generictype_ID_refUn": "SELLING_UNIT-P",

    /* Optionnel : pour mettre à jour les champs dynamiques selon paramétrage */
    /* Exemple : */
    "dynamicfields": 
    [{
      "fieldname": "ArtCatalogue",
      "fieldvalue": "La vie du rail"
    },
    {
      "fieldname": "ArtCataloguePage",
      "fieldvalue": "99"    
    },
    {
      "fieldname": "ArtCatalogueNbre",
      "fieldvalue": "3"    
    },
    {
      ...
    }]	
  }
}

verb: LIST
resultType: simple, extended, extendedRelated reprendre les définitions du GET

"filters:" {
  "codeProduct": "value", filter is equal
  "description": "value", filter is contains
  "productFamily": "value" filter is equal
}
  • Aucune étiquette