Status

Retrieve an existing status given an ID

get
Autorizações
Parâmetros de rota
idstring · uuidObrigatório
Respostas
200
Status retrieved
*/*
get
GET /api/sales/status/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "title": "text",
  "sub_title": "text",
  "type": "PENDING",
  "can_edit_by_customer": true,
  "can_edit_by_api": true,
  "show_in_portal": true,
  "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": "2025-06-30T22:49:39.189Z",
      "updated_by": "123e4567-e89b-12d3-a456-426614174000",
      "updated_at": "2025-06-30T22:49:39.189Z"
    }
  ],
  "created_by": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-06-30T22:49:39.189Z",
  "updated_by": "123e4567-e89b-12d3-a456-426614174000",
  "updated_at": "2025-06-30T22:49:39.189Z"
}

Update an existing status given an ID

put
Autorizações
Parâmetros de rota
idstring · uuidObrigatório
Corpo
titlestringObrigatório
sub_titlestringObrigatório
typestring · enumObrigatórioValores possíveis:
can_edit_by_customerbooleanObrigatório
can_edit_by_apibooleanObrigatório
show_in_portalbooleanObrigatório
background_colorstringObrigatório
font_colorstringObrigatório
Respostas
200
Status updated
*/*
put
PUT /api/sales/status/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 316

{
  "title": "text",
  "sub_title": "text",
  "type": "PENDING",
  "can_edit_by_customer": true,
  "can_edit_by_api": true,
  "show_in_portal": true,
  "background_color": "text",
  "font_color": "text",
  "relations": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "destiny": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "text",
        "title": "text"
      }
    }
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "title": "text",
  "sub_title": "text",
  "type": "PENDING",
  "can_edit_by_customer": true,
  "can_edit_by_api": true,
  "show_in_portal": true,
  "background_color": "text",
  "font_color": "text",
  "created_by": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-06-30T22:49:39.189Z",
  "updated_by": "123e4567-e89b-12d3-a456-426614174000",
  "updated_at": "2025-06-30T22:49:39.189Z"
}

Remove an existing status given an ID

delete
Autorizações
Parâmetros de rota
idstring · uuidObrigatório
Respostas
200
Status removed
*/*
delete
DELETE /api/sales/status/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000"
}

Retrieve a page of status

get
Autorizações
Parâmetros de consulta
searchstringOpcionalDefault: ""
pageinteger · int32OpcionalDefault: 0
perPageinteger · int32OpcionalDefault: 25
sortstringOpcionalDefault: id
dirstringOpcionalDefault: asc
Respostas
200
Status listed
*/*
get
GET /api/sales/status HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "currentPage": 1,
  "perPage": 1,
  "total": 1,
  "items": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "title": "text",
      "sub_title": "text",
      "type": "PENDING",
      "can_edit_by_customer": true,
      "can_edit_by_api": true,
      "show_in_portal": true,
      "background_color": "text",
      "font_color": "text",
      "created_by": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2025-06-30T22:49:39.189Z",
      "updated_by": "123e4567-e89b-12d3-a456-426614174000",
      "updated_at": "2025-06-30T22:49:39.189Z"
    }
  ]
}

Create a new status

post
Autorizações
Corpo
namestringObrigatório
titlestringObrigatório
sub_titlestringObrigatório
typestring · enumObrigatórioValores possíveis:
can_edit_by_customerbooleanObrigatório
can_edit_by_apibooleanObrigatório
show_in_portalbooleanObrigatório
background_colorstringObrigatório
font_colorstringObrigatório
Respostas
200
Status created
*/*
post
POST /api/sales/status HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 286

{
  "name": "text",
  "title": "text",
  "sub_title": "text",
  "type": "PENDING",
  "can_edit_by_customer": true,
  "can_edit_by_api": true,
  "show_in_portal": true,
  "background_color": "text",
  "font_color": "text",
  "relations": [
    {
      "destiny": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "text",
        "title": "text"
      }
    }
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "title": "text",
  "sub_title": "text",
  "type": "PENDING",
  "can_edit_by_customer": true,
  "can_edit_by_api": true,
  "show_in_portal": true,
  "background_color": "text",
  "font_color": "text",
  "created_by": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-06-30T22:49:39.189Z",
  "updated_by": "123e4567-e89b-12d3-a456-426614174000",
  "updated_at": "2025-06-30T22:49:39.189Z"
}