Product variation management
Add, modify, or delete variations
Add a variation
POST https://kash.click/workers/addVariation.php
Add a new variation to your catalog
POST parameters
| Name | Required | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
data[title] | Yes | Store Name |
Edit a variation
POST https://kash.click/workers/editVariation.php
Modify a variation of your catalog
POST parameters
| Name | Required | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
id | Yes | Variant Identifier |
data[title] | No | Store Name |
Delete a declension
POST https://kash.click/workers/delVariation.php
Remove a variation from your catalog
POST parameters
| Name | Required | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
id | Yes | Variant Identifier |
JavaScript example
async function editVariation(){
const body = new URLSearchParams({
shopID: SHOPID,
key: 'REMPLACER_PAR_VOTRE_CLE_API_GENEREE',
id: 123,
'data[title]': 'Variation name'
});
const res = await fetch("https://kash.click/workers/editVariation.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);
}