Histórico de etapas
curl --request GET \
--url https://app.onixfy.com/api/v1/deal-stage-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.onixfy.com/api/v1/deal-stage-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.onixfy.com/api/v1/deal-stage-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"deal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"funnel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entered_at": "2023-11-07T05:31:56Z",
"left_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"changed_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"pagination": {
"next_cursor": "<string>",
"has_more": true
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Oportunidades
Histórico de etapas
Cada passagem de uma oportunidade por uma etapa, em lote: quando entrou, quando saiu (nulo: ainda está) e quem moveu. A passagem volta no updated_since quando a oportunidade sai da etapa (o updated_at passa a ser o left_at).
GET
/
deal-stage-history
Histórico de etapas
curl --request GET \
--url https://app.onixfy.com/api/v1/deal-stage-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.onixfy.com/api/v1/deal-stage-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.onixfy.com/api/v1/deal-stage-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"deal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"funnel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stage_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entered_at": "2023-11-07T05:31:56Z",
"left_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"changed_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"pagination": {
"next_cursor": "<string>",
"has_more": true
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}