Partner removed successfully
OK
PartnerAddress created successfully
PartnerAddress updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/partners/{partner_id}/address/{id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/partners/{partner_id}/address/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "partner_id": "text", "name": "text", "address_type": "text", "street": "text", "number": "text", "complement": "text", "contact_number": "text", "contact_name": "text", "neighborhood": "text", "state": "text", "country": "text", "city": "text", "postal_code": "text", "main_address": false }
const response = await fetch('https://api.zydon.com.br/api/sales/partners/{partner_id}/address', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "currentPage": 0, "perPage": 0, "total": 0, "items": [ { "id": "text", "partner_id": "text", "name": "text", "address_type": "text", "street": "text", "number": "text", "complement": "text", "contact_number": "text", "contact_name": "text", "neighborhood": "text", "state": "text", "country": "text", "city": "text", "postal_code": "text", "main_address": false } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/partners/{partner_id}/address', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/partners/{partner_id}/address', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();