v1

latestOpenAPI 3.0.32026-07-2431396640.5 KB
crm-v1-deals

Obter negociação

Obter negociação

get/deals/{deal_id}

Path parameters

deal_idstring required

ID da negociação.

Response

Success

_idstring
amount_montlynumber
amount_totalnumber
amount_uniquenumber
best_moment_to_touchboolean
c_cf_errorsobject
campaign_idstring
closed_atstring date-time
contact_errorsobject
created_atstring
{"stackTrail":"paths:/deals/{deal_id}:get:responses:200:content:application/json:schema:properties:deal_lost_reason_id","oasType":"schema","type":"unknown"}
deal_source_idstring
errorsobject
from_rdsm_integrationboolean
{"stackTrail":"paths:/deals/{deal_id}:get:responses:200:content:application/json:schema:properties:hold","oasType":"schema","type":"unknown"}
idstring
interactionsnumber
{"stackTrail":"paths:/deals/{deal_id}:get:responses:200:content:application/json:schema:properties:last_note_content","oasType":"schema","type":"unknown"}
namestring
prediction_datestring date
ratingnumber
updated_atstring
{"stackTrail":"paths:/deals/{deal_id}:get:responses:200:content:application/json:schema:properties:win","oasType":"schema","type":"unknown"}

Example response

{
  "_id": "ID",
  "amount_montly": 1.1,
  "campaign": {
    "_id": "ID",
    "id": "ID",
    "name": "Marcado como Oportunidade no RD Station Marketing"
  },
  "campaign_id": "ID",
  "created_at": "2023-03-30T16:27:24.764-03:00",
  "deal_custom_fields": [
    {
      "created_at": "2023-03-30T16:23:54.781-03:00",
      "custom_field": {
        "_id": "ID",
        "created_at": "2020-08-20T17:32:35.618-03:00",
        "for": "deal",
        "instance_id": "ID",
        "label": "Custom date field",
        "order": 8,
        "required": true,
        "required_rules": [
          {
            "_id": "ID",
            "always": true,
            "created_at": "2023-03-30T10:52:55.465-03:00",
            "updated_at": "2023-03-30T10:52:55.465-03:00"
          }
        ],
        "type": "date",
        "updated_at": "2023-03-30T10:52:55.465-03:00",
        "visible": true
      },
      "custom_field_id": "ID",
      "updated_at": "2023-03-30T16:23:54.781-03:00",
      "value": "Opção A"
    }
  ],
  "deal_pipeline": {
    "id": "ID",
    "name": "Funil de Vendas 01"
  },
  "deal_pipeline_relation": {
    "parent_deal": {
      "closed_at": "2023-03-30T16:53:39.754-03:00",
      "created_at": "2021-08-12T17:03:26.063-03:00",
      "deal_pipeline": {
        "id": "ID",
        "name": "Funil de vendas 3333"
      },
      "deal_stage": {
        "id": "ID",
        "name": "Identificação do interesse"
      },
      "id": "ID",
      "name": "NAME",
      "user": {
        "id": "ID",
        "name": "NAME"
      }
    }
  },
  "deal_source": {
    "_id": "ID",
    "id": "ID",
    "name": "Desconhecido"
  },
  "deal_source_id": "ID",
  "deal_stage": {
    "_id": "ID",
    "deal_pipeline_id": "ID",
    "id": "ID",
    "name": "Proposta enviada",
    "nickname": "PE"
  },
  "deal_stage_histories": [
    {
      "_id": "ID",
      "deal_stage_id": "ID",
      "id": "ID",
      "start_date": "2023-03-30T16:27:24.759-03:00"
    }
  ],
  "from_rdsm_integration": true,
  "id": "ID",
  "name": "NAME",
  "rating": 1,
  "stop_time_limit": {
    "expiration_date_time": "2023-03-31T16:27:24.764-03:00",
    "expired": true,
    "expired_days": 9
  },
  "updated_at": "2023-03-30T16:27:33.819-03:00",
  "user": {
    "_id": "ID",
    "id": "ID",
    "name": "NAME"
  }
}