Status removed
Status listed
Status retrieved
Status created
Status updated
const response = await fetch('https://api.zydon.com.br/api/sales/status/{id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000" }
const response = await fetch('https://api.zydon.com.br/api/sales/status', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "items": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "title": "text", "sub_title": "text", "type": "PENDING", "can_edit_by_customer": false, "can_edit_by_api": false, "show_in_portal": false, "background_color": "text", "font_color": "text", "created_by": "123e4567-e89b-12d3-a456-426614174000", "created_at": "2024-11-05T01:09:38.882Z", "updated_by": "123e4567-e89b-12d3-a456-426614174000", "updated_at": "2024-11-05T01:09:38.882Z" } ] }
const response = await fetch('https://api.zydon.com.br/api/sales/status/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "title": "text", "sub_title": "text", "type": "PENDING", "can_edit_by_customer": false, "can_edit_by_api": false, "show_in_portal": false, "background_color": "text", "font_color": "text", "relations": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "destiny": { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "title": "text" }, "created_by": "123e4567-e89b-12d3-a456-426614174000", "created_at": "2024-11-05T01:09:38.882Z", "updated_by": "123e4567-e89b-12d3-a456-426614174000", "updated_at": "2024-11-05T01:09:38.882Z" } ], "created_by": "123e4567-e89b-12d3-a456-426614174000", "created_at": "2024-11-05T01:09:38.882Z", "updated_by": "123e4567-e89b-12d3-a456-426614174000", "updated_at": "2024-11-05T01:09:38.882Z" }
const response = await fetch('https://api.zydon.com.br/api/sales/status', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "background_color": "text", "can_edit_by_api": false, "can_edit_by_customer": false, "font_color": "text", "name": "text", "relations": [ { "destiny": { "id": "123e4567-e89b-12d3-a456-426614174000" } } ], "show_in_portal": false, "sub_title": "text", "title": "text", "type": "PENDING" }), }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "name": "text", "title": "text", "sub_title": "text", "type": "PENDING", "can_edit_by_customer": false, "can_edit_by_api": false, "show_in_portal"