# Get contacts and their transactions using api

**URL:** <https://community.hubspot.com/t/get-contacts-and-their-transactions-using-api/119440>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [October 29, 2024, 5:01pm UTC](https://community.hubspot.com/t/get-contacts-and-their-transactions-using-api/119440 "2024-10-29T17:01:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastian\_r](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bastian\_r](https://community.hubspot.com/u/bastian_r)\
**Post date:** [October 29, 2024, 5:01pm UTC](https://community.hubspot.com/t/get-contacts-and-their-transactions-using-api/119440/1 "2024-10-29T17:01:35Z")

</div>

Hello,

Is there a way to retrieve list of transactions with name of associated contact using rest api ?

Best regards,

Bastian

---

<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:** [October 30, 2024, 3:43pm UTC](https://community.hubspot.com/t/get-contacts-and-their-transactions-using-api/119440/2 "2024-10-30T15:43:39Z")

</div>

Hey, [@bastian\_r](https://community.hubspot.com/t5/user/viewprofilepage/user-id/849456) 👋 Can you help clarify which endpoint(s) you want to use? For example, it might be [Deals](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/deals), [Subscriptions](https://developers.hubspot.com/beta-docs/guides/api/crm/commerce/subscriptions), or [Payments](https://developers.hubspot.com/beta-docs/guides/api/crm/commerce/payments). You can find the full list of APIs and endpoints [**here**](https://developers.hubspot.com/beta-docs/guides/api/overview). I ask because there isn’t a “transactions” API and that term might mean something different to you than it does to me or another community member.

Thanks! — Jaycee

---

<div class="post-metadata">

**Author:** ![bastian\_r](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bastian\_r](https://community.hubspot.com/u/bastian_r)\
**Post date:** [October 30, 2024, 3:47pm UTC](https://community.hubspot.com/t/get-contacts-and-their-transactions-using-api/119440/3 "2024-10-30T15:47:24Z")

</div>

Hello Jaycee. Thanks for your answer. I use deals endpoints.

---

<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:** [October 30, 2024, 9:10pm UTC](https://community.hubspot.com/t/get-contacts-and-their-transactions-using-api/119440/4 "2024-10-30T21:10:16Z")

</div>

Hey, [@bastian\_r](https://community.hubspot.com/t5/user/viewprofilepage/user-id/849456) 👋 Thanks for clarifying. The real issue is that the batch endpoints will not return associations. There is not a workaround for that, unfortunately.

If you have a Content Hub — Professional or Enterprise subscription, Sales or Service Hub — Enterprise, using GraphQL is a viable option to explore. Otherwise, you’ll need to look into some combination of the Associations and Object APIs. Both offer batch endpoints, which may help make this a bit “easier”.

- [**Contacts batch endpoint**](https://developers.hubspot.com/beta-docs/reference/api/crm/objects/contacts#post-%2Fcrm%2Fv3%2Fobjects%2Fcontacts%2Fbatch%2Fread)
- **[Associations batch endpoint](https://developers.hubspot.com/beta-docs/reference/api/crm/associations/association-details#post-%2Fcrm%2Fv4%2Fassociations%2F%7Bfromobjecttype%7D%2F%7Btoobjecttype%7D%2Fbatch%2Fread)**

Have fun building! — Jaycee

---

<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:** [October 30, 2024, 9:14pm UTC](https://community.hubspot.com/t/get-contacts-and-their-transactions-using-api/119440/5 "2024-10-30T21:14:19Z")

</div>

Looks like some of my links failed. Here you go:

- **[GraphQL](https://developers.hubspot.com/beta-docs/guides/cms/content/data-driven-content/graphql/query-hubspot-data-using-graphql)**
- An **[article](https://developers.hubspot.com/blog/reducing-hubspot-requests-utilizing-batch-api-and-graphql-for-better-optimization)** that might be helpful if you go the GraphQL route
