Ajoutez, modifiez, ou supprimez des groupes de rayons
Ajouter un nouveau groupe de rayon à votre catalogue
| Nome | Necessário | Descrição |
|---|---|---|
shopID | sim | Identifiant de votre établissement |
key | sim | Votre clé pour l'API |
data[title] | sim | Intitulé (requis) |
data[position] | Não | Position (sur l'interface) |
data[accountingChapter] | Não | Chapitre comptable |
data[accountingChapterComplement] | Não | Complément de chapitre comptable |
Modifier un groupe de rayon de votre catalogue
| Nome | Necessário | Descrição |
|---|---|---|
shopID | sim | Identifiant de votre établissement |
key | sim | Votre clé pour l'API |
id | sim | Identifiant du Groupes de rayons |
data[title] | Não | Intitulé (requis) |
data[position] | Não | Position (sur l'interface) |
data[accountingChapter] | Não | Chapitre comptable |
data[accountingChapterComplement] | Não | Complément de chapitre comptable |
Supprimer un groupe de rayon de votre catalogue
| Nome | Necessário | Descrição |
|---|---|---|
shopID | sim | Identifiant de votre établissement |
key | sim | Votre clé pour l'API |
id | sim | Identifiant du Groupes de rayons |
async function editGrpDept(){ const body = new URLSearchParams({ shopID: SHOPID, key: APIKEY, id: 123, 'data[title]': 'New title' }); const res = await fetch("https://kash.click/workers/editGrpDept.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body }); let payload; try{ payload = await res.json(); }catch{ payload = await res.text(); } console.log(payload);}
Ce document est mis à disposition selon les termes de la licence Creative Commons Attribution 4.0 International (CC BY 4.0) .