APIs & Integrations

RRosarioArq
Member

Search Endpoint for marketing_event and invoices objects

SOLVE

While using v3 search and properties endpoints

 

/crm/v3/objects/{objectType}/search & /crm/v3/properties/{objectType}

 

i wasnt able to collect the desired information for two objects using custom app credentials.

Invoices:
On the invoices object isn't even possible to get the properties on the v3/properties endpoint, getting back the error:

Spoiler
The scope needed for this API call isn't available for public use.

Marketing_event:

On the marketing_event im able to get the properties list, but cant use the search endpoint on 

 

 https://api.hubapi.com/crm/v3/objects/marketing_event/search

 

getting back a "not supported error"

Spoiler
Object type MARKETING_EVENT is not supported by this endpoint

 
Is there a alternative way to collecting data that would be available throught these endpoints on the v3 (or any previous working versions) of the API for these specific objects or any known plans to add then to these endpoints?

0 Upvotes
1 Accepted solution
miljkovicmisa
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Search Endpoint for marketing_event and invoices objects

SOLVE

Hello @RRosarioArq, for the marketing event you should use the endpoints specified in the api overview.
The available endpoints are:
[GET] /marketing/v3/marketing-events/events/search
That accepts a "q" parameter to pass a value for the external event id
and
[GET] /marketing/v3/marketing-events/events/{externalEventId}
That takes in the event external id.

Hope this helps with the  marketing events, for the crm search you are getting the scopes error, which means that your private app should be modified to have the requested scopes. For the search crm scopes are not fixed, but instead it  depends on the object you are trying to retrieve, so for the tickets you need the "tickets" scope, etc. Take a look at this list of scopes to get you started: https://developers.hubspot.com/docs/api/working-with-oauth#scopes

If my answer was helpful please mark it as a solution.

View solution in original post

1 Reply 1
miljkovicmisa
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Search Endpoint for marketing_event and invoices objects

SOLVE

Hello @RRosarioArq, for the marketing event you should use the endpoints specified in the api overview.
The available endpoints are:
[GET] /marketing/v3/marketing-events/events/search
That accepts a "q" parameter to pass a value for the external event id
and
[GET] /marketing/v3/marketing-events/events/{externalEventId}
That takes in the event external id.

Hope this helps with the  marketing events, for the crm search you are getting the scopes error, which means that your private app should be modified to have the requested scopes. For the search crm scopes are not fixed, but instead it  depends on the object you are trying to retrieve, so for the tickets you need the "tickets" scope, etc. Take a look at this list of scopes to get you started: https://developers.hubspot.com/docs/api/working-with-oauth#scopes

If my answer was helpful please mark it as a solution.