Associations endpoints giving 500 error

I am using the following endpoint to get association between line_items and deals so i can connect which line_items belong to which deals (then further get the associations for deals and companies to connect line_items to companies through deals).

The endpoint i am using is,

https://api.hubapi.com/crm/v3/associations/line_items/deals/batch/read
but this gives me a 500 error. I am using a private app to generate an access token to for authorization and all scopes are enabled (read and write).

Hi, @MAman9 :waving_hand: Did you get this resolved?

If not, can you provide some additional information, please?

  • The exact error message you receive in the response.
  • A sample request body that you’re using with the endpoint.

Thank you! — Jaycee

I get a 500 error with response,

{

“status”: “error”,

“message”: “internal error”,

“correlationId”: “{changing set of alpha numeric}”

}

Is this a problem with my access token? I am using a token generated by a private app that has access to all scopes. This was done on the main hubspot account.

I didnt make an app using the developer account.

Hey @Jaycee_Lewis , just updating, I am following the documentation on Accounts Dashboard | HubSpot

it doesnt mention any other params required to get associations, so besides authorization I dont have anything else.

For future reference if anybody has problems with retrieving associations between crm objects, the v4 api doesnt have an enpoint for this (v4 only gives the association id, not the objects that are linked), and the v3 endpoint doesnt seem to be working (gives 500 error), after digging through the docs i was able to find the v1 api endpoints for this and they are working and those docs can be found here.