CUBO CRM
  1. Negociação
CUBO CRM
  • Comece por aqui
  • Atividade
    • Listar todas as atividades
      GET
    • Criar nova atividade
      POST
    • Obter atividade por ID
      GET
    • Atualizar atividade
      PUT
    • Excluir atividade
      DELETE
  • Anotação
    • Criar nova anotação
      POST
    • Obter anotação por ID
      GET
    • Atualizar anotação
      PUT
    • Excluir anotação
      DELETE
  • Chave de API
    • Listar todas as chaves de API
      GET
    • Criar nova chave de API
      POST
    • Obter chave de API por ID
      GET
    • Atualizar chave de API
      PUT
    • Excluir chave de API
      DELETE
  • Categoria
    • Listar todas as categorias
      GET
    • Criar nova categoria
      POST
    • Obter categoria por ID
      GET
    • Atualizar categoria
      PUT
    • Excluir categoria
      DELETE
  • Empresa
    • Obter empresa
    • Atualizar empresa
  • Campo Personalizado
    • Listar todos os campos personalizados
    • Criar novo campo personalizado
    • Obter campo personalizado por ID
    • Atualizar campo personalizado
    • Excluir campo personalizado
  • Negociação
    • Listar todos os negócios
      GET
    • Criar novo negócio
      POST
    • Obter negócio por ID
      GET
    • Atualizar negócio
      PUT
    • Excluir negócio
      DELETE
    • Transborda uma negociação específica
      PUT
  • Dominio
    • Listar todos os domínios
    • Criar novo domínio
    • Obter domínio por ID
    • Excluir domínio
  • Motivo de Perda
    • Listar todos os motivos de perda
    • Criar motivo de perda
    • Obter motivo de perda por ID
    • Atualizar motivo de perda
    • Excluir motivo de perda
  • Organização
    • Listar todas as organizações
    • Criar nova organização
    • Obter organização por ID
    • Atualizar organização
    • Excluir organização
  • Pessoa
    • Listar todas as pessoas
    • Criar nova pessoa
    • Obter pessoa por ID
    • Atualizar pessoa
    • Excluir pessoa
  • Funil
    • Listar todos os funis
    • Criar novo funil
    • Listar funil por ID
    • Atualizar Funil
    • Excluir funil
  • Produto
    • Listar todos os produtos
    • Criar novo produto
    • Obter produto por ID
    • Atualizar produto
    • Excluir produto
  • Proposta
    • Listar todos as propostas
    • Criar proposta para negociação pelo ID
    • Obter proposta por ID
    • Atualizar proposta
  • Estágio
    • Buscar todos os estágios do funil pelo ID
    • Criar estágios
    • Obter estágios por ID
    • Atualizar estágio
    • Excluir estágio
  • Modelo
    • Listar todos os modelos de mensagem
    • Criar modelo de mensagem
    • Criar modelo de mensagem para negócio pelo ID
    • Obter modelo de mensagem por ID
    • Atualizar modelo de mensagem
    • Excluir modelo de mensagem
  • Webhooks
    • Receber dados do BotConversa para criação
    • Receber dados do BotConversa para atualização
    • Receber dados do ManyChat para criação
    • Receber dados do ManyChat para atualização
  1. Negociação

Listar todos os negócios

GET
https://api.cubosuite.com.br/deals
Descrição#
Retorna uma lista paginada de negociações da empresa do usuário autenticado, com suporte a filtros e ordenação.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.cubosuite.com.br/deals?company_id=1&limit=10&page=1&orderColumn=created_at&orderDirection=asc'
Response Response Example
{
    "meta": {
        "total": 2770,
        "per_page": 10,
        "current_page": 1,
        "last_page": 277,
        "first_page": 1,
        "first_page_url": "/?page=1",
        "last_page_url": "/?page=277",
        "next_page_url": "/?page=2",
        "previous_page_url": null,
        "totalPriceDeals": "41606476.19"
    },
    "data": [
        {
            "organizationId": null,
            "lostReasonId": 301685,
            "winReasonId": null,
            "duplicatedId": null,
            "lostStageId": 302640,
            "id": 547990,
            "title": "1822279292",
            "price": "0.00",
            "details": null,
            "userId": 300147,
            "peopleId": 547825,
            "stageId": 302643,
            "pipeId": 300687,
            "status": "lost",
            "probability": null,
            "lostDate": "2024-01-08T09:43:04.000-03:00",
            "winDate": null,
            "rdUuid": null,
            "rotten": 0,
            "lastMove": "2024-05-23T11:39:27.000-03:00",
            "orderNr": 0,
            "createdBy": "api",
            "rating": 0,
            "timeUntilClosing": null,
            "createdAt": "2023-12-29T09:59:25.000-03:00",
            "updatedAt": "2024-05-23T11:39:27.000-03:00",
            "transshipmentOriginId": null,
            "firstMove": "2024-05-23T11:39:27.000-03:00",
            "ipAddress": null,
            "userAgent": null,
            "url": null,
            "token": null,
            "conversasId": null,
            "throughSplit": 0,
            "payload": null,
            "proposals": [],
            "products": [],
            "duplicated": null,
            "stage": {
                "id": 302643,
                "name": "NÃO QUER",
                "description": null,
                "orderNr": 8,
                "pipeId": 300687,
                "rottenFlag": 0,
                "rottenDays": 1,
                "createdAt": "2023-12-27T12:12:52.000-03:00",
                "updatedAt": "2024-05-22T10:19:57.000-03:00",
                "lightBackground": null,
                "darkBackground": null,
                "meta": {
                    "deleted_at": null
                }
            },
            "lostReason": {
                "id": 301685,
                "reason": "Não deu continuidade onboard",
                "status": "active",
                "companyId": 1,
                "createdAt": "2023-10-09T09:46:32.000-03:00",
                "updatedAt": "2024-01-08T10:03:18.000-03:00",
                "meta": {
                    "deleted_at": null
                }
            },
            "activities": [],
            "organization": null,
            "user": {
                "id": 300147,
                "name": "Igor Salinas",
                "phone": "(17) 99249-2156",
                "email": "igor.salinas@cubosuite.com.br",
                "status": "deactivated",
                "type": "administrator",
                "picture": null,
                "companyId": 1,
                "defaultPipe": null,
                "rememberMeToken": null,
                "createdAt": "2023-06-19T16:43:47.000-03:00",
                "updatedAt": "2025-04-30T11:01:52.000-03:00",
                "sendNotificationWhatsapp": true,
                "manychatContactId": 1290406070,
                "messagesAtOnce": 100,
                "meta": {
                    "google_refresh_token": null
                }
            },
            "people": {
                "id": 547825,
                "name": "Vinícius Ribeiro",
                "phone": " 5532998052434",
                "organizationId": null,
                "userId": 300147,
                "companyId": 1,
                "status": "active",
                "createdAt": "2023-12-29T09:59:25.000-03:00",
                "updatedAt": "2023-12-29T09:59:25.000-03:00",
                "token": "yRhhc6lsVxX_sdiXrhb63XTWQ0oefz5g6x-RRbGpPQ8.eUF2ODhoWFNkb1hVSldzcg.9iH3vaOuUEyFANFb8IzGSGLY3sD3WGHWwD4BZOU505w",
                "normalizedPhone": "5532998052434"
            },
            "whatsappMessages": [],
            "pipe": {
                "id": 300687,
                "name": "Onboard",
                "orderNr": 1,
                "companyId": 1,
                "dailyReports": "isalinas@crowcreative.com.br",
                "createdAt": "2023-12-27T11:47:43.000-03:00",
                "updatedAt": "2025-03-13T15:12:03.000-03:00",
                "status": "active",
                "firstRating": null,
                "seccondRating": null,
                "thirdRating": null,
                "fourthRating": null,
                "fifthRating": null,
                "showProductFormat": "setfield",
                "timeEditAnnotation": 0,
                "showCustomFieldFormat": "setfield",
                "primaryField": null,
                "users": [
                    {
                        "id": 301200,
                        "name": "Gustavo Vicente",
                        "phone": "(17) 99177-0642",
                        "email": "gustavobvicente@hotmail.com",
                        "status": "active",
                        "type": "administrator",
                        "picture": null,
                        "companyId": 1,
                        "defaultPipe": null,
                        "rememberMeToken": null,
                        "createdAt": "2024-05-10T10:57:12.000-03:00",
                        "updatedAt": "2025-04-23T14:31:46.000-03:00",
                        "sendNotificationWhatsapp": true,
                        "manychatContactId": 990151908,
                        "messagesAtOnce": 100,
                        "meta": {
                            "google_refresh_token": null,
                            "pivot_pipe_id": 300687,
                            "pivot_user_id": 301200,
                            "pivot_splitter": 0,
                            "pivot_count": 0
                        }
                    },
                    {
                        "id": 301704,
                        "name": "Ricardo Junior",
                        "phone": "(17) 98208-1918",
                        "email": "rijunior335@gmail.com",
                        "status": "active",
                        "type": "administrator",
                        "picture": "https://files.cubocrm.com.br/companies/1/user/301704/picture/cubologo-JXk3KxABna-p4TvsGgpx.jpeg",
                        "companyId": 1,
                        "defaultPipe": null,
                        "rememberMeToken": null,
                        "createdAt": "2024-09-16T08:59:53.000-03:00",
                        "updatedAt": "2025-06-11T15:09:58.000-03:00",
                        "sendNotificationWhatsapp": false,
                        "manychatContactId": 315145454,
                        "messagesAtOnce": 100,
                        "meta": {
                            "google_refresh_token": null,
                            "pivot_pipe_id": 300687,
                            "pivot_user_id": 301704,
                            "pivot_splitter": 0,
                            "pivot_count": 0
                        }
                    }
                ],
                "stages": [
                    {
                        "id": 302637,
                        "name": "Novos usuários",
                        "description": null,
                        "orderNr": 1,
                        "pipeId": 300687,
                        "rottenFlag": 0,
                        "rottenDays": 3,
                        "createdAt": "2023-12-27T11:48:21.000-03:00",
                        "updatedAt": "2025-04-17T09:40:23.000-03:00",
                        "lightBackground": "bg-white",
                        "darkBackground": "black",
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 302638,
                        "name": "Trial 3 dias",
                        "description": null,
                        "orderNr": 2,
                        "pipeId": 300687,
                        "rottenFlag": 1,
                        "rottenDays": 3,
                        "createdAt": "2023-12-27T12:02:03.000-03:00",
                        "updatedAt": "2025-04-17T09:40:09.000-03:00",
                        "lightBackground": "bg-white",
                        "darkBackground": "black",
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 302639,
                        "name": "Trial 6 dias",
                        "description": null,
                        "orderNr": 3,
                        "pipeId": 300687,
                        "rottenFlag": 1,
                        "rottenDays": 2,
                        "createdAt": "2023-12-27T12:06:55.000-03:00",
                        "updatedAt": "2025-04-17T09:40:34.000-03:00",
                        "lightBackground": "bg-white",
                        "darkBackground": "black",
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 302640,
                        "name": "Onboard Finalizado",
                        "description": null,
                        "orderNr": 4,
                        "pipeId": 300687,
                        "rottenFlag": 1,
                        "rottenDays": 2,
                        "createdAt": "2023-12-27T12:08:27.000-03:00",
                        "updatedAt": "2024-05-22T10:20:27.000-03:00",
                        "lightBackground": null,
                        "darkBackground": null,
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 302641,
                        "name": "Implantação solicitada",
                        "description": null,
                        "orderNr": 5,
                        "pipeId": 300687,
                        "rottenFlag": 1,
                        "rottenDays": 5,
                        "createdAt": "2023-12-27T12:11:30.000-03:00",
                        "updatedAt": "2025-01-15T08:36:17.000-03:00",
                        "lightBackground": null,
                        "darkBackground": null,
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 302642,
                        "name": "Suporte",
                        "description": null,
                        "orderNr": 7,
                        "pipeId": 300687,
                        "rottenFlag": 1,
                        "rottenDays": 1,
                        "createdAt": "2023-12-27T12:11:57.000-03:00",
                        "updatedAt": "2024-05-22T10:20:27.000-03:00",
                        "lightBackground": null,
                        "darkBackground": null,
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 302643,
                        "name": "NÃO QUER",
                        "description": null,
                        "orderNr": 8,
                        "pipeId": 300687,
                        "rottenFlag": 0,
                        "rottenDays": 1,
                        "createdAt": "2023-12-27T12:12:52.000-03:00",
                        "updatedAt": "2024-05-22T10:19:57.000-03:00",
                        "lightBackground": null,
                        "darkBackground": null,
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 305875,
                        "name": "Integração Solicitada",
                        "description": null,
                        "orderNr": 6,
                        "pipeId": 300687,
                        "rottenFlag": 1,
                        "rottenDays": 5,
                        "createdAt": "2024-05-22T10:19:47.000-03:00",
                        "updatedAt": "2024-05-22T10:20:27.000-03:00",
                        "lightBackground": null,
                        "darkBackground": null,
                        "meta": {
                            "deleted_at": null
                        }
                    },
                    {
                        "id": 310553,
                        "name": "OUTRO",
                        "description": null,
                        "orderNr": 9,
                        "pipeId": 300687,
                        "rottenFlag": 0,
                        "rottenDays": 1,
                        "createdAt": "2024-11-18T15:53:40.000-03:00",
                        "updatedAt": "2024-11-18T15:53:40.000-03:00",
                        "lightBackground": null,
                        "darkBackground": null,
                        "meta": {
                            "deleted_at": null
                        }
                    }
                ],
                "templates": [
                    {
                        "id": 300272,
                        "name": "Teste 2",
                        "subject": null,
                        "body": "Olá {{people.first_name}}! Me chamo {{user.first_name}} e estou aqui para te dar boas vindas ao Cubo Suíte!{{pular}}{{pular}}\n\nSeu período de testes foi concluído com sucesso e vejo aqui que você já ativou sua conta. {{pular}}\nPor isso, para te ajudar nestes primeiros passos, podemos agendar uma Call gratuita de implantação com duração 45minutos onde eu posso te apresentar o sistema e te ajudar a personaliza-lo para o seu contexto de negócios.{{pular}}{{pular}}\n\nSe tiver interesse, basta responder essa mensagem para combinarmos a melhor data.",
                        "pipeId": 300687,
                        "type": "whatsapp",
                        "createdAt": "2024-01-08T09:58:32.000-03:00",
                        "updatedAt": "2025-01-29T10:16:52.000-03:00"
                    },
                    {
                        "id": 300406,
                        "name": "Primeiro contato",
                        "subject": null,
                        "body": "Olá {{people.first_name}}, sou o {{user.first_name}}.\nBem vindo....",
                        "pipeId": 300687,
                        "type": "whatsapp",
                        "createdAt": "2024-03-26T11:18:12.000-03:00",
                        "updatedAt": "2024-03-26T11:18:12.000-03:00"
                    },
                    {
                        "id": 300801,
                        "name": "Boas vindas",
                        "subject": null,
                        "body": "Oi {{people.name}}, sou o {{user.name}} e gostaria de te dar boas vindas",
                        "pipeId": 300687,
                        "type": "whatsapp",
                        "createdAt": "2024-08-28T09:40:11.000-03:00",
                        "updatedAt": "2024-08-28T09:40:11.000-03:00"
                    }
                ],
                "meta": {
                    "deleted_at": null
                }
            },
            "annotations": [
                {
                    "dealId": 547990,
                    "organizationId": null,
                    "peopleId": null,
                    "activityId": null,
                    "id": 3863811,
                    "text": "MChat_link: Sem informação → https://manychat.com/fb683655/subscribers/1822279292",
                    "userId": 300147,
                    "type": "alteration",
                    "createdAt": "2024-05-23T11:39:27.000-03:00",
                    "updatedAt": "2024-05-23T11:39:27.000-03:00"
                }
            ],
            "customfields": [
                {
                    "id": 4489476,
                    "dealId": 547990,
                    "customfieldId": 306706,
                    "value": "https://dashboard.stripe.com/customers/cus_PH31HVAulLzCEj",
                    "createdAt": "2024-05-23T09:53:16.000-03:00",
                    "updatedAt": "2024-05-23T09:53:16.000-03:00",
                    "customfield": {
                        "id": 306706,
                        "name": "stripe_link",
                        "context": "deal",
                        "companyId": 1,
                        "type": "text",
                        "mask": null,
                        "status": "active",
                        "showCard": 1,
                        "createdAt": "2024-05-23T09:47:31.000-03:00",
                        "updatedAt": "2025-01-30T14:12:10.000-03:00",
                        "options": []
                    }
                },
                {
                    "id": 4490511,
                    "dealId": 547990,
                    "customfieldId": 306709,
                    "value": "https://manychat.com/fb683655/subscribers/1822279292",
                    "createdAt": "2024-05-23T11:39:27.000-03:00",
                    "updatedAt": "2024-05-23T11:39:27.000-03:00",
                    "customfield": {
                        "id": 306709,
                        "name": "MChat_link",
                        "context": "deal",
                        "companyId": 1,
                        "type": "text",
                        "mask": null,
                        "status": "active",
                        "showCard": 0,
                        "createdAt": "2024-05-23T11:37:17.000-03:00",
                        "updatedAt": "2025-05-20T14:29:40.000-03:00",
                        "options": []
                    }
                }
            ]
        }
    ]
}

Requisição

Authorization
Forneça seu token bearer no cabeçalho
Authorization
ao fazer requisições para recursos protegidos.
Exemplo:
Authorization: Bearer ********************
Parâmetros Query
company_id
string 
requerido
Exemplo:
1
limit
number 
opcional
Número de itens por página (Padrão = 10 ou Max = 100).
Exemplo:
10
page
number 
opcional
Página atual da paginação.
Exemplo:
1
orderColumn
string 
opcional
Coluna utilizada para ordenação.
Exemplo:
created_at
orderDirection
string 
opcional
Direção da ordenação (asc ou desc).
Exemplo:
asc

Respostas

🔴500Erro do servidor
application/json
Body
meta
object 
requerido
total
integer 
requerido
per_page
integer 
requerido
current_page
integer 
requerido
last_page
integer 
requerido
first_page
integer 
requerido
first_page_url
string 
requerido
last_page_url
string 
requerido
next_page_url
string 
requerido
previous_page_url
null 
requerido
totalPriceDeals
string 
requerido
data
array [object {48}] 
requerido
organizationId
null 
opcional
lostReasonId
integer 
opcional
winReasonId
null 
opcional
duplicatedId
null 
opcional
lostStageId
integer 
opcional
id
integer 
opcional
title
string 
opcional
price
string 
opcional
details
null 
opcional
userId
integer 
opcional
peopleId
integer 
opcional
stageId
integer 
opcional
pipeId
integer 
opcional
status
string 
opcional
probability
null 
opcional
lostDate
string 
opcional
winDate
null 
opcional
rdUuid
null 
opcional
rotten
integer 
opcional
lastMove
string 
opcional
orderNr
integer 
opcional
createdBy
string 
opcional
rating
integer 
opcional
timeUntilClosing
null 
opcional
createdAt
string 
opcional
updatedAt
string 
opcional
transshipmentOriginId
null 
opcional
firstMove
string 
opcional
ipAddress
null 
opcional
userAgent
null 
opcional
url
null 
opcional
token
null 
opcional
conversasId
null 
opcional
throughSplit
integer 
opcional
payload
null 
opcional
proposals
array[string]
opcional
products
array[string]
opcional
duplicated
null 
opcional
stage
object 
opcional
lostReason
object 
opcional
activities
array[string]
opcional
organization
null 
opcional
user
object 
opcional
people
object 
opcional
whatsappMessages
array[string]
opcional
pipe
object 
opcional
annotations
array [object {10}] 
opcional
customfields
array [object {7}] 
opcional
Modificado em 2025-06-23 13:10:03
Página anterior
Negociação
Próxima página
Criar novo negócio
Built with