Single Lineitem Fullfillment Issue In Admin API

Solved
Highlighted
New Member
3 0 1

JSON 

{
    "fulfillment": {
        "location_id""40349368379",
        "tracking_number""0987654",
        "tracking_company""sf-express",
        "notify_customer"true
    },
    "line_items": [
        {
            "id"5366935126075
        }
    ]
}
 
I'm Trying On This API : https://xyz.myshopify.com/admin/api/2020-07/orders/2420476018747/fulfillments.json

I'm Trying To Fullfill Only One LineItem But Its Fullfilling All Line Items Checked Json With Shopify Dosc. There Is Also Same Json Which I'm Sending
1 Like
Highlighted

This is an accepted solution.

There is an error in the fulfillment array, line item id is posted outside of the fulfillment array that's why the fulfillment is applicable on all line items use the following JSON to post data for fulfilling one line item.

{
"fulfillment": {
"location_id": 38374572167,
"tracking_number": "123456789",
"tracking_company": "sf-express",
"notify_customer": true,
"line_items":[
{
"id" : 5249748729991
}
]
}
}

Let me know if I can be of any help to you. 

I'm from CedCommerce - a team of coders and marketing enthusiasts who help eCommerce entrepreneurs with store set-up and customizations! 

We'll be happy to assist you with any kind of customization; add-ons or planning our sales/marketing/social media strategy! 

As a Shopify store owner, you need to know the course of your journey! It's going to help you throughout your time in the eCommerce ecosystem! 

Ps. I'm just a message away!

Wish you luck with your Shopify store journey! Cheers! .-. 

Helping store owners in their smooth eCommerce journey! ;)
1 Like