Warehouse removed successfully
OK
Warehouse created successfully
Warehouse updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/warehouses/{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/warehouses/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "name": "text", "address_type": "text", "street": "text", "number": "text", "complement": "text", "neighborhood": "text", "city": "text", "state": "text", "country": "text", "active": false, "postal_code": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/warehouses', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/warehouses', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "address_type": "text", "city": "text", "complement": "text", "country": "text", "name": "text", "neighborhood": "text", "number": "text", "postal_code": "text", "state": "text", "street": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/warehouses/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "address_type": "text", "city": "text", "complement": "text", "country": "text", "name": "text", "neighborhood": "text", "number": "text", "postal_code": "text", "state": "text", "street": "text" }), }); const data = await response.json();