Skip to content

Deal api getById does not return quote association #558

Open
@voho

Description

@voho

We have a deal with quote associated, but the API does not return it.

Our code:

    const detail = await globalHubspotApiClient.crm.deals.basicApi.getById(dealId, undefined, undefined, [
        'quotes',
    ])

The result associations is undefined.

However, if I call the endpoint directly, I get the association properly:

curl --request GET \
  --url 'https://api.hubapi.com/crm/v3/objects/deals/XXX?associations=quotes' \
  --header 'authorization: Bearer XXX'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions