Please would anyone know how to solve this erro in the API process

Highlighted
Shopify Expert
5 0 1

Hi,

 

We are busy developing an App and the following error is showing

 

Request API

https://uniwiz.myshopify.com/admin/api/2020-01/orders/2051217784937/fulfillments.json

 

Transferred value

{"fulfillment":{"location_id":"35414605929","tracking_number":"1n697EBmX7","line_items":[{"id":"2051217784937"}],"notify_customer":"true"}}

 

Error contents

Not enough variable values available to expand 'order_id'

 

Would anyone know how to solve this problem?

 

Thank you in advance

0 Likes
Highlighted
Shopify Partner
1777 211 370

Assuming this is a POST request? The value in the URL doesn't look like an orderID - 2051217784937. Make sure you pass a real orderID for an existing order.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
1 Like
Highlighted
Shopify Expert
5 0 1

Thank you for your reply,

 

However, the orderID is what Shopify has given to us from the API manual

So are we not supposed to set up the process in the first place?

 

Thank you

 

0 Likes
Highlighted
Shopify Partner
1777 211 370

I doubt. You are using this exact same id in the line_items array as line item ID and it does actually look closer to a line item ID rather than order ID.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
1 Like