REST API Fulfillment error - expected Array to be a Array

Shopify Partner
7 0 3

Hello there,

I'm working on sending up fulfillment and tracking orders to some test orders on our store, and in my journey I've come across an error that perplexes me...


 This is my cURL POST request (using FileMaker 20):



-H "Content-Type: application/json"
-H "X-Shopify-Access-Token: XXXXXXXXX"
--data-binary @$FulfillmentJSON -D $DumpHeaders



Where $FulfillmentJSON =





(substituting data here)


I receive the response: {"errors":{"tracking_info":"expected Array to be a Array"}}


tracking_info sure looks like an array to me... I've tried sending tracking_info up as a string as suggested before by the community, but it formats the JSON incorrectly and definitely views it as just a string. Does anyone see what I'm doing wrong?

Reply 1 (1)

Shopify Staff
254 20 65

Hey Anniebaile,

Based on what's in the docs, you should be sending the tracking info as an object:

The error message is definitely confusing, it's asking for an Array, which isn't what's documented. Can you try what's documented instead, and let me know how it goes?

Hope this helps!

Shayne | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog