# Line item import and export

**URL:** <https://community.hubspot.com/t/line-item-import-and-export/54158>\
**Category:** APIs & Integrations\
**Created:** [March 31, 2022, 9:59am UTC](https://community.hubspot.com/t/line-item-import-and-export/54158 "2022-03-31T09:59:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommercientDev](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@CommercientDev](https://community.hubspot.com/u/CommercientDev)\
**Post date:** [March 31, 2022, 9:59am UTC](https://community.hubspot.com/t/line-item-import-and-export/54158/1 "2022-03-31T09:59:21Z")

</div>

Hello,

Hope You are doing well.

I am using the line item import tool.

I am able to import the line items successfully.

I want to export the imported line items with the lineitem id.

Please help on this ASAP.

Thanks

Sanket

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 31, 2022, 6:25pm UTC](https://community.hubspot.com/t/line-item-import-and-export/54158/2 "2022-03-31T18:25:45Z")

</div>

@CommercientDev ,

You can use the batch read endpoint on the [Line Items API](https://developers.hubspot.com/docs/api/crm/line-items)

 ![CRM_API___Line_items.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/c/7cd5cfb7a59f661d527a18358bbe84fbd54b8bc9.png)

---

<div class="post-metadata">

**Author:** ![dsmarion](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dsmarion/32/7509_2.png) [@dsmarion](https://community.hubspot.com/u/dsmarion)\
**Post date:** [April 1, 2022, 1:09pm UTC](https://community.hubspot.com/t/line-item-import-and-export/54158/3 "2022-04-01T13:09:00Z")

</div>

You could simply create a report of line items and then export it.

---

<div class="post-metadata">

**Author:** ![dsmarion](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dsmarion/32/7509_2.png) [@dsmarion](https://community.hubspot.com/u/dsmarion)\
**Post date:** [April 1, 2022, 1:16pm UTC](https://community.hubspot.com/t/line-item-import-and-export/54158/4 "2022-04-01T13:16:39Z")

</div>

Actually I don’t see that reports expose the ID so this won’t work. The batchread will.

---

<div class="post-metadata">

**Author:** ![EPosa](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@EPosa](https://community.hubspot.com/u/EPosa)\
**Post date:** [February 8, 2023, 6:57pm UTC](https://community.hubspot.com/t/line-item-import-and-export/54158/5 "2023-02-08T18:57:35Z")

</div>

Hi @CommercientDev,  
You should check alternative tools like Help Desk Migration to move your data automatedly. This one supports CSV import and export and offers customization options. You can read more about it here: [How it works | Help Desk Migration Service](https://help-desk-migration.com/how-it-works/)

---

<div class="post-metadata">

**Author:** ![EPosa](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@EPosa](https://community.hubspot.com/u/EPosa)\
**Post date:** [February 9, 2023, 9:04am UTC](https://community.hubspot.com/t/line-item-import-and-export/54158/6 "2023-02-09T09:04:27Z")

</div>

Hi @CommercientDev,  
If you’re looking for [HubSpot Service Hub migration](https://help-desk-migration.com/hubspot-service-hub/), be sure to check Help Desk Migration. You can use it to migrate the following records:  
- tickets with related details  
- contacts  
- organizations  
- agents  
- custom fields  
After the migration, you can download the reports with migration results to check if all records are there. The report provides explanation, if there are some errors.
