Pular para o conteúdo principal

deals_list_response

payload object[]
  • Array [
  • idinteger

    The ID of the deal

    namestring

    The name of the deal

    recurrence_pricenumber

    Sum of the recurring line items

    one_time_pricenumber

    Sum of the one-off line items

    total_pricenumber

    Sum of both, and the value the funnel totals are built from

    currencystring

    ISO 4217 code. Set per deal, so one pipeline can hold deals in more than one currency.

    Example: BRL
    expected_close_datestring<date>

    The date the deal is expected to close

    ratinginteger

    How promising the deal looks, on the scale the board renders as stars

    statusstring

    Only ongoing deals count towards a stage's open value

    Possible values: [ongoing, won, lost, paused]

    closed_atinteger

    Unix timestamp of when the deal was won or lost. Absent while it is ongoing.

    positioninteger

    Order of the card inside its stage

    pipeline_idinteger

    The ID of the pipeline the deal belongs to

    stage_idinteger

    The ID of the stage the deal currently sits in

    owner_idinteger

    The user responsible for the deal. Only the owner is reminded about its tasks.

    created_by_idinteger

    The user who created the deal

    source_idinteger

    Where the deal came from

    lost_reason_idinteger

    Why the deal was lost. Only meaningful when status is lost.

    lost_reason_notestring

    Free-text detail on the loss

    organization_idinteger

    The company the deal belongs to

    campaign_idinteger

    The campaign that originated the deal

    contact_idsinteger[]

    The contacts on the deal. A deal always has at least one.

    assignee_idsinteger[]

    Co-owners. They see the deal but are not reminded about its tasks.

    custom_fieldsobject

    Values of the account's custom fields, keyed by field key

    notesstring

    Free-text notes on the deal

    labelsstring[]

    Label names applied to the deal

    stage_changed_atinteger

    Unix timestamp of the last stage change

    created_atinteger

    Unix timestamp of creation

    updated_atinteger

    Unix timestamp of the last update

    owner object

    Present when the deal has an owner

    idinteger
    namestring
    avatar_urlstring
    assignees object[]
  • Array [
  • idinteger
    namestring
    avatar_urlstring
  • ]
  • tasks_countinteger

    Tasks attached to the deal

    completed_tasks_countinteger
    overdue_tasks_countinteger

    Tasks past their due date and not completed. The board marks the card when this is above zero.

    last_message object

    Preview of the most recent message with the deal's contact. Absent when there is no conversation.

    conversation_idinteger
    contentstring
    message_typestring
    channel_typestring
    mediumstring
    unread_countinteger
    contacts object[]
  • Array [
  • idinteger
    namestring
    emailstring
  • ]
  • products object[]

    Product line items. Their prices are what recurrence_price and one_time_price are computed from.

  • Array [
  • idinteger
    product_idinteger

    Null for a line item typed by hand rather than picked from the catalog

    namestring
    quantitynumber
    pricenumber
    recurrencestring

    Billing cadence of the line. Empty for a one-off charge.

  • ]
  • services object[]

    Service line items, same shape as the products

  • Array [
  • idinteger
    service_idinteger
    namestring
    quantitynumber
    pricenumber
    recurrencestring
  • ]
  • lost_reason object

    Present when the deal was lost with a reason

    idinteger
    namestring
    organization object

    Present when the deal belongs to a company

    idinteger
    namestring
  • ]
  • meta object
    countinteger

    Deals matching the filters, across every page

    current_pageinteger
    per_pageinteger
    total_pagesinteger
    summary object[]

    Totals per stage over the whole filtered set, not just this page — so a board holding one page of cards still reports each column truthfully.

  • Array [
  • stage_idinteger
    total_countinteger

    Every deal in the stage, whatever its status

    open_countinteger

    Deals still ongoing

    open_valuenumber

    Sum of the open deals' total_price. Only meaningful when the stage holds a single currency — read open_values otherwise.

    open_values object[]

    The open value broken down by currency

  • Array [
  • currencystring
    valuenumber
  • ]
  • ]
  • deals_list_response
    {
    "payload": [
    {
    "id": 0,
    "name": "string",
    "recurrence_price": 0,
    "one_time_price": 0,
    "total_price": 0,
    "currency": "BRL",
    "expected_close_date": "2024-07-29",
    "rating": 0,
    "status": "ongoing",
    "closed_at": 0,
    "position": 0,
    "pipeline_id": 0,
    "stage_id": 0,
    "owner_id": 0,
    "created_by_id": 0,
    "source_id": 0,
    "lost_reason_id": 0,
    "lost_reason_note": "string",
    "organization_id": 0,
    "campaign_id": 0,
    "contact_ids": [
    0
    ],
    "assignee_ids": [
    0
    ],
    "custom_fields": {},
    "notes": "string",
    "labels": [
    "string"
    ],
    "stage_changed_at": 0,
    "created_at": 0,
    "updated_at": 0,
    "owner": {
    "id": 0,
    "name": "string",
    "avatar_url": "string"
    },
    "assignees": [
    {
    "id": 0,
    "name": "string",
    "avatar_url": "string"
    }
    ],
    "tasks_count": 0,
    "completed_tasks_count": 0,
    "overdue_tasks_count": 0,
    "last_message": {
    "conversation_id": 0,
    "content": "string",
    "message_type": "string",
    "channel_type": "string",
    "medium": "string",
    "unread_count": 0
    },
    "contacts": [
    {
    "id": 0,
    "name": "string",
    "email": "string"
    }
    ],
    "products": [
    {
    "id": 0,
    "product_id": 0,
    "name": "string",
    "quantity": 0,
    "price": 0,
    "recurrence": "string"
    }
    ],
    "services": [
    {
    "id": 0,
    "service_id": 0,
    "name": "string",
    "quantity": 0,
    "price": 0,
    "recurrence": "string"
    }
    ],
    "lost_reason": {
    "id": 0,
    "name": "string"
    },
    "organization": {
    "id": 0,
    "name": "string"
    }
    }
    ],
    "meta": {
    "count": 0,
    "current_page": 0,
    "per_page": 0,
    "total_pages": 0,
    "summary": [
    {
    "stage_id": 0,
    "total_count": 0,
    "open_count": 0,
    "open_value": 0,
    "open_values": [
    {
    "currency": "string",
    "value": 0
    }
    ]
    }
    ]
    }
    }