# Associations endpoints giving 500 error

**URL:** <https://community.hubspot.com/t/associations-endpoints-giving-500-error/80688>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [May 5, 2023, 6:38pm UTC](https://community.hubspot.com/t/associations-endpoints-giving-500-error/80688 "2023-05-05T18:38:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAman9](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@MAman9](https://community.hubspot.com/u/MAman9)\
**Post date:** [May 5, 2023, 6:38pm UTC](https://community.hubspot.com/t/associations-endpoints-giving-500-error/80688/1 "2023-05-05T18:38:27Z")

</div>

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](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).

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 8, 2023, 8:36pm UTC](https://community.hubspot.com/t/associations-endpoints-giving-500-error/80688/2 "2023-05-08T20:36:32Z")

</div>

Hi, @MAman9 👋 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

---

<div class="post-metadata">

**Author:** ![MAman9](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@MAman9](https://community.hubspot.com/u/MAman9)\
**Post date:** [May 9, 2023, 1:04pm UTC](https://community.hubspot.com/t/associations-endpoints-giving-500-error/80688/3 "2023-05-09T13:04:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MAman9](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@MAman9](https://community.hubspot.com/u/MAman9)\
**Post date:** [May 10, 2023, 12:49pm UTC](https://community.hubspot.com/t/associations-endpoints-giving-500-error/80688/4 "2023-05-10T12:49:14Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) , just updating, I am following the documentation on [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/associations/v3)

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

---

<div class="post-metadata">

**Author:** ![MAman9](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@MAman9](https://community.hubspot.com/u/MAman9)\
**Post date:** [May 12, 2023, 3:29pm UTC](https://community.hubspot.com/t/associations-endpoints-giving-500-error/80688/5 "2023-05-12T15:29:21Z")

</div>

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](https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview).
