Variation removed successfully
OK
Variation updated successfully
Variation created successfully
const response = await fetch('https://api.zydon.com.br/api/sales/products/{product_id}/variations/{id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/products/{product_id}/variations/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "sku_id": "text", "product_id": "text", "variation_id": "text", "values": [ "text" ] }
const response = await fetch('https://api.zydon.com.br/api/sales/products/{product_id}/variations', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/products/{product_id}/variations/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "sku_id": "text", "values": [ "text" ], "variation_id": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/products/{product_id}/variations', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "id": "text", "sku_id": "text", "values": [ "text" ], "variation_id": "text" }), }); const data = await response.json();