# API for Orders

**URL:** <https://community.hubspot.com/t/api-for-orders/101912>\
**Category:** APIs & Integrations\
**Created:** [March 6, 2024, 8:31pm UTC](https://community.hubspot.com/t/api-for-orders/101912 "2024-03-06T20:31:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![RuudVerstraeten](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RuudVerstraeten](https://community.hubspot.com/u/RuudVerstraeten)\
**Post date:** [March 6, 2024, 8:31pm UTC](https://community.hubspot.com/t/api-for-orders/101912/1 "2024-03-06T20:31:07Z")

</div>

Has anyone worked with the new Orders object in HubSpot yet? We’re trying to integrate our Point-of-sale system to HubSpot and create orders, but cannot find any API documentation on this object.

Background: we’ve already connected the new Shopify integration for the online store. It creates carts with line items for open transactions, and orders for completed transactions.

Now I want to add my PoS data in this same object. But cannot find how to do it. Does it maybe act as a custom object? And has anyone already integrated against it?

---

<div class="post-metadata">

**Author:** ![skimura](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@skimura](https://community.hubspot.com/u/skimura)\
**Post date:** [March 7, 2024, 5:30am UTC](https://community.hubspot.com/t/api-for-orders/101912/2 "2024-03-07T05:30:21Z")

</div>

@RuudVerstraeten

Hi.

In my case, it looked similar to other custom objects.

What I have tried is reading and writing the order object.

Read

GET /crm/v3/objects/{objectType}/{objectId}

Update

PATCH  
/crm/v3/objects/{objectType}/{objectId}

I checked in two environments and “object type” was “0-123”.

(It may be a fixed value.)

If possible, I would like to know the “order object type” in your environment.

I hope this is helpful.

Thanks.

---

<div class="post-metadata">

**Author:** ![GJackson95](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@GJackson95](https://community.hubspot.com/u/GJackson95)\
**Post date:** [April 19, 2024, 4:49pm UTC](https://community.hubspot.com/t/api-for-orders/101912/3 "2024-04-19T16:49:39Z")

</div>

Hi,

Has anyone succeeded in reading all the Order records via the API?

We have just migrated our website from WooCommerce to Shopify and now have all our legacy order data in Deals and the new order data from Shopify in Orders. As you can’t currently add properties to Orders, it’s very frustrating having to manually create Deal records to hold our custom metadata and then go to the Order record to associate it with the Deal record.

If the Orders API was made available, I could create the Deal record and make the associations programmatically.

Has HubSpot shared its plans for fully integrating Orders into its core product. It discontinued the original Shopify Data Sync in December last year and replaced it with a Beta version of the new Data Sync. That’s left people like us with a problem we didn’t expect.

What’s the chance that HubSpot will provide a data migration tool to help us merge the legacy data with the new?

Thanks.

---

<div class="post-metadata">

**Author:** ![RuudVerstraeten](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RuudVerstraeten](https://community.hubspot.com/u/RuudVerstraeten)\
**Post date:** [April 22, 2024, 9:53am UTC](https://community.hubspot.com/t/api-for-orders/101912/4 "2024-04-22T09:53:43Z")

</div>

@GJackson95 Not here, we’re waiting for the Orders API to come out, as it should be soon (Q2)

---

<div class="post-metadata">

**Author:** ![RuudVerstraeten](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RuudVerstraeten](https://community.hubspot.com/u/RuudVerstraeten)\
**Post date:** [March 7, 2024, 6:50am UTC](https://community.hubspot.com/t/api-for-orders/101912/5 "2024-03-07T06:50:08Z")

</div>

Hi @skimura

Thanks. It’s 0-123 for me too indeed. So this worked for you?

Do you create an order in one ‘shot’, or first create the order, then the associated line items and contact?

Best,

Ruud

---

<div class="post-metadata">

**Author:** ![skimura](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@skimura](https://community.hubspot.com/u/skimura)\
**Post date:** [March 7, 2024, 6:59am UTC](https://community.hubspot.com/t/api-for-orders/101912/6 "2024-03-07T06:59:13Z")

</div>

@RuudVerstraeten

I haven’t tried creating an “order”.  
I tried added order property and updated them.

What happens if you call the “order” create API?

↓

Create

POST /crm/v3/objects/{objectType}

→POST /crm/v3/objects/0-123

Thanks.

---

<div class="post-metadata">

**Author:** ![RuudVerstraeten](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RuudVerstraeten](https://community.hubspot.com/u/RuudVerstraeten)\
**Post date:** [March 7, 2024, 7:14am UTC](https://community.hubspot.com/t/api-for-orders/101912/7 "2024-03-07T07:14:42Z")

</div>

@skimura let me check with my colleague who helps us set this up, I myself cannot make API calls actually

---

<div class="post-metadata">

**Author:** ![RuudVerstraeten](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RuudVerstraeten](https://community.hubspot.com/u/RuudVerstraeten)\
**Post date:** [March 11, 2024, 8:17am UTC](https://community.hubspot.com/t/api-for-orders/101912/8 "2024-03-11T08:17:36Z")

</div>

I can an update from HubSpot, that they’re planning to roll out a APIs Order in Q2. So we might just have been ahead of the curve here 😉

---

<div class="post-metadata">

**Author:** ![NamrathaBV](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/namrathabv/32/71586_2.png) [@NamrathaBV](https://community.hubspot.com/u/NamrathaBV)\
**Post date:** [April 24, 2024, 5:33pm UTC](https://community.hubspot.com/t/api-for-orders/101912/9 "2024-04-24T17:33:16Z")

</div>

Hello, I am from the HubSpot Product team 👋  
Orders and Cart APIs are now live!  
API documentation can be found here:  
[Order Object API](https://developers.hubspot.com/docs/api/commerce/orders)  
[Cart Object API](https://developers.hubspot.com/docs/api/commerce/carts)

---

<div class="post-metadata">

**Author:** ![ssaucedo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ssaucedo/32/17122_2.png) [@ssaucedo](https://community.hubspot.com/u/ssaucedo)\
**Post date:** [April 24, 2024, 6:21pm UTC](https://community.hubspot.com/t/api-for-orders/101912/10 "2024-04-24T18:21:51Z")

</div>

Are these just accesible via the API? I looked through the HubSpot portal and was not able to find them as something I can create or edit without needing to do it via the API.

---

<div class="post-metadata">

**Author:** ![GJackson95](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@GJackson95](https://community.hubspot.com/u/GJackson95)\
**Post date:** [April 25, 2024, 6:29am UTC](https://community.hubspot.com/t/api-for-orders/101912/11 "2024-04-25T06:29:29Z")

</div>

Hi Namratha,

Thanks for the update.

Is the Order Object API live in all parts of the world? I’m in the UK and I’m getting a Status Code 403 - Forbidden when I make a GET request to the following url:

[https://api.hubapi.com/crm/v3/objects/order?limit=100&properties=hs\_order\_name,hs\_pipeline\_stage](https://api.hubapi.com/crm/v3/objects/order?limit=100&properties=hs_order_name,hs_pipeline_stage)

---

<div class="post-metadata">

**Author:** ![GJackson95](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@GJackson95](https://community.hubspot.com/u/GJackson95)\
**Post date:** [April 26, 2024, 7:28am UTC](https://community.hubspot.com/t/api-for-orders/101912/12 "2024-04-26T07:28:27Z")

</div>

My mistake. I forgot I needed to add orders and carts to the scope of the API key.

All working now. Thank you.

---

<div class="post-metadata">

**Author:** ![DaveParry](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daveparry/32/60933_2.png) [@DaveParry](https://community.hubspot.com/u/DaveParry)\
**Post date:** [November 24, 2024, 2:55pm UTC](https://community.hubspot.com/t/api-for-orders/101912/13 "2024-11-24T14:55:32Z")

</div>

Not sure if anyone else has managed it yet, but whilst the api client (or a direct https api call) can create the orders records ok, it doesn’t seem to be able to create associations if done as a separate step. It’s almost as if the v4 associations api doesn’t work in custom code. This can’t be right?  
I have managed to create associations by passing the association data when creating the record by using the v3 basic api create endpoint. This works fine.

Anyone else managed to crack this?
