Out now! Check out the Poll results: Do you have a Shopify store?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order API returns duplicate line Items entry in xml format

Order API returns duplicate line Items entry in xml format

developer11
New Member
9 0 0

Hi,

 

 I have noticed recently the order.xml file returns duplicates line item details. But in order.json its not .

Is anyone face the same issue? coz of this some of our the working code for our customers got affected.

Is there any changes happened in order.xml API?

in xml file,

<line-item>
<id type="integer">4121890127974</id>
<variant-id type="integer">1016575420</variant-id>
<title>SBD Wrist Wraps (Pair)</title>
<quantity type="integer">1</quantity>
<sku>SBDWFM</sku>
<variant-title>Medium 60cm / Flexible</variant-title>
<vendor>SBD</vendor>

----

<line-items type="array">
<line-item>

<id type="integer">4121890127974</id>
<variant-id type="integer">1016575420</variant-id>
<title>SBD Wrist Wraps (Pair)</title>
<quantity type="integer">1</quantity>
<sku>SBDWFM</sku>
<variant-title>Medium 60cm / Flexible</variant-title>
<vendor>SBD</vendor>
<fulfillment-service>manual</fulfillment-service>
<product-id type="integer">383106328</product-id>

 

 

Replies 5 (5)

_JB
Shopify Staff (Retired)
836 100 223

Hey @developer11,

 

Thanks for bringing this up. Our developers are aware of the issue and are currently working on a fix. We're hoping to have the fix in place soon, I'll post back here as soon as I have an update for you.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

developer11
New Member
9 0 0
Thanks for the update.

We had one more major issue happened on last month which I have posted, but
couldn't get any follow up response.
Its regarding the TLS security issue. Now on wards we are getting TLS
security issue for some of the customers while doing the Fulfilment API.
also it happened only for some orders. Appreciate if you can get any update
on this.

We have around nearly 20 Shopify customers use our application doing the
dispatching system.

https://community.shopify.com/c/Shopify-APIs-SDKs/The-request-was-aborted-Could-not-create-SSL-TLS-s...


_JB
Shopify Staff (Retired)
836 100 223

Hey @developer11,

 

I just wanted to let you know our developers have resolved the issue regarding duplicate line_item arrays in the order XML. You will now one see 1 line_item array as expected.

 

With regards to the TLS error, we'll need more information in order to investigate. Can you kindly let me know which shop you're seeing the error on, and provide an approximate timeframe from when you saw the error last? You can send me a PM with this information if you prefer.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

developer11
New Member
9 0 0
Its started around sept 26th onwards,, First time while calling the
Location API ( as part of fulfilment)it fails with TLS, but if we retry it
works.

please find some of the orders which fails first time *(The request was
aborted: Could not create SSL/TLS secure channel.)* and succeed on second
attempt.
And the strange part is all other orders are working on first attempt.
Currently we are fetching the failed orders and retry again with a
scheduled job 🙂
As you mentioned on last msg says "You can send me a PM" what 'PM' stands
for?

2019-11-11 21:58:54.637 https://the-chocolate-bar-nz.myshopify.com
1862371508290
2019-11-11 21:58:54.637 https://the-chocolate-bar-nz.myshopify.com
1862371508290
2019-11-11 21:58:54.637 https://the-chocolate-bar-nz.myshopify.com
1862371508290
2019-11-11 07:11:12.743 https://raiselower.myshopify.com 1857900249190
2019-11-10 20:06:39.377 https://raiselower.myshopify.com 1857783824486
2019-11-10 14:04:43.233 https://raiselower.myshopify.com 1851451080806
2019-11-10 12:04:22.600 https://the-chocolate-bar-nz.myshopify.com
1850778550338
2019-11-10 12:04:22.600 https://the-chocolate-bar-nz.myshopify.com
1850778550338
2019-11-10 12:04:22.597 https://the-chocolate-bar-nz.myshopify.com
1850778550338
2019-11-10 10:15:15.580 https://cherish-child.myshopify.com 1865380561005
2019-11-10 10:15:15.580 https://cherish-child.myshopify.com 1865380561005
2019-11-10 10:15:15.580 https://cherish-child.myshopify.com 1865380561005
2019-11-10 10:15:15.577 https://cherish-child.myshopify.com 1865380561005

_JB
Shopify Staff (Retired)
836 100 223

Hey @developer11,

 

Thanks for providing those examples. In those examples, can you confirm if the URL you were trying to hit was https://store.myshopify.com/admin/orders/###order_id###.json. 

 

Also, can you provide any more details about the client you're using to make these calls (hosting provider, libraries being used, timeout settings, ip address)? 

 

PM means private message 🙂 

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog