Seller removed successfully
OK
Seller created successfully
Seller updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/sellers/{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/sellers/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "name": "text", "seller_type": "text", "fiscal_registration_number": "text", "email": "text", "phone": "text", "mobile": "text", "active": false }
const response = await fetch('https://api.zydon.com.br/api/sales/sellers', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "currentPage": 0, "perPage": 0, "total": 0, "items": [ { "id": "text", "name": "text", "seller_type": "text", "fiscal_registration_number": "text", "email": "text", "phone": "text", "mobile": "text", "active": false } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/sellers', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "email": "text", "fiscal_registration_number": "text", "mobile": "text", "name": "text", "phone": "text", "seller_type": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/sellers/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "active": false, "email": "text", "fiscal_registration_number": "text", "mobile": "text", "name": "text", "phone": "text", "seller_type": "text" }), }); const data = await response.json();