# Shipments and has\_notified\_cart field

**URL:** <https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146>\
**Category:** Uncategorized\
**Created:** [August 30, 2017, 4:16pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146 "2017-08-30T16:16:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeminiJim](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/geminijim/32/41_2.png) [@GeminiJim](https://forums.ordoro.com/u/GeminiJim)\
**Post date:** [August 30, 2017, 4:16pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/1 "2017-08-30T16:16:10Z")

</div>

I’m working on an integration between Ordoro and a shopping cart app, and I am currently working on shipments. In this case shipment information is added to Ordoro by a set of scripts, and the shopping cart app needs to retrieve information on new shipments from Ordoro before notifying customers via email. My question is about the best way to retrieve exactly the shipments that I need. While reading over the API docs I noticed a field named has\_notified\_cart. My guess was that this would be a flag field that can be set via update. However, based on my testing it’s not being set by the Shopify integration (figured that out when I got back every shipment ever). Is this field the current best practice, or is there another better way to do it?

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 30, 2017, 4:23pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/2 "2017-08-30T16:23:45Z")

</div>

Hi GeminiJim,

When Ordoro updates shipment and tracking information in a sales channel, such as Shopify, we’ll mark `has_notified_cart=true`.

What shipments are you trying to get out of Ordoro? There are filters that you can use based on status that may be more suited to retrieving shipments.

Sophie

---

<div class="post-metadata">

**Author:** ![GeminiJim](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/geminijim/32/41_2.png) [@GeminiJim](https://forums.ordoro.com/u/GeminiJim)\
**Post date:** [August 30, 2017, 4:39pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/3 "2017-08-30T16:39:35Z")

</div>

Thanks for the fast reply, Sophie. Glad to hear that this is the field I should be using – it sounds like I formatted my search request incorrectly.

---

<div class="post-metadata">

**Author:** ![GeminiJim](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/geminijim/32/41_2.png) [@GeminiJim](https://forums.ordoro.com/u/GeminiJim)\
**Post date:** [August 30, 2017, 4:40pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/4 "2017-08-30T16:40:40Z")

</div>

Oh, I forgot to answer your question. I’d like to get back all shipments with tracking information present where has\_notified\_cart is false. That seems like the most sensible thing. Once I process each of these shipments, I’ll queue up update calls so that has\_notified\_cart is set to true for each one.

---

<div class="post-metadata">

**Author:** ![GeminiJim](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/geminijim/32/41_2.png) [@GeminiJim](https://forums.ordoro.com/u/GeminiJim)\
**Post date:** [August 30, 2017, 4:55pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/5 "2017-08-30T16:55:22Z")

</div>

Closer examination shows that I got all the orders without any shipment tracking, so I think that’s where I went wrong. You are correct that I need to narrow my filter to shipments that actually have tracking information.

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 30, 2017, 5:25pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/6 "2017-08-30T17:25:31Z")

</div>

I believe to update the shipment to show that the cart has been notified of tracking, you’ll want to use this endpoint  
`POST /shipment/<shipment_id>/notified_cart`  
[http://docs.ordoro.apiary.io/#reference/shipment/shipmentshipmentidnotifiedcart/post](http://docs.ordoro.apiary.io/#reference/shipment/shipmentshipmentidnotifiedcart/post)

---

<div class="post-metadata">

**Author:** ![GeminiJim](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/geminijim/32/41_2.png) [@GeminiJim](https://forums.ordoro.com/u/GeminiJim)\
**Post date:** [August 30, 2017, 6:29pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/7 "2017-08-30T18:29:59Z")

</div>

Thanks, that sounds perfect for the update. Any suggestions on how to filter out unshipped shipments with no tracking information?

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 30, 2017, 7:49pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/8 "2017-08-30T19:49:35Z")

</div>

Most shipments would be unshipped and without a tracking number, do you have shipments that are unshipped but do have trackings?

---

<div class="post-metadata">

**Author:** ![GeminiJim](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/geminijim/32/41_2.png) [@GeminiJim](https://forums.ordoro.com/u/GeminiJim)\
**Post date:** [August 30, 2017, 9:13pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/9 "2017-08-30T21:13:16Z")

</div>

No, I don’t think that case would apply. I am thinking of shipments that have a status of shipped but do not have tracking information (this appears to be quite a few). It appears that in this case, the shopify integration does not notify Shopify and thus does not set the has\_notified\_cart value to true. That behavior seems correct because there was no notification to make.

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 30, 2017, 9:34pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/10 "2017-08-30T21:34:38Z")

</div>

So, you’re trying to get shipped shipments with no tracking?  
There is no explicit way to get these orders via the api without traversing the shipped orders from the time period you’re searching.

---

<div class="post-metadata">

**Author:** ![GeminiJim](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/geminijim/32/41_2.png) [@GeminiJim](https://forums.ordoro.com/u/GeminiJim)\
**Post date:** [September 1, 2017, 4:27pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/11 "2017-09-01T16:27:50Z")

</div>

I only want shipped shipments that have tracking information and have has\_notified\_cart = false.

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 1, 2017, 4:55pm UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/12 "2017-09-01T16:55:05Z")

</div>

I see. I think you can narrow it down with `/shipment/?status=shipped&has_notified_cart=false` but you’ll have to filter out any that do not have tracking information programatically.

---

<div class="post-metadata">

**Author:** ![shopifymultivendor](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/shopifymultivendor/32/154_2.png) [@shopifymultivendor](https://forums.ordoro.com/u/shopifymultivendor)\
**Post date:** [July 7, 2023, 7:32am UTC](https://forums.ordoro.com/t/shipments-and-has-notified-cart-field/146/13 "2023-07-07T07:32:56Z")

</div>

Hey Friend,  
I found this useful link, it may help you:

> **[Ordoro - Streamline Your Fulfillment | Shopify App Store](https://apps.shopify.com/ordoro)**

Also, I advise you to hire a [Shopify Mobile app developer](https://cartcoders.com/shopify-mobile-app-development.php) to streamline your app processes.
