Variation removed successfully
OK
Variation created successfully
Variation updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/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/variations/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "name": "text", "active": false, "values": [ "text" ] }
const response = await fetch('https://api.zydon.com.br/api/sales/variations', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/variations', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "name": "text", "values": [ "text" ] }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/variations/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "name": "text", "values": [ "text" ] }), }); const data = await response.json();