Solved

"Fulfillment order line item does not exist."

AyushS
Shopify Partner
2 1 1

Hi All,

I am having issue while using fulfillments api endpoint. I am using following json document as body

{
    "fulfillment":{
    "notify_customer"false,
    "location_id":57088770221,
    "line_items_by_fulfillment_order":[
        {
            "fulfillment_order_id":5525741076653,
            "fulfillment_order_line_items":[
                {
                    "id":11559225852077,
                    "quantity":1
                },
                {
                    "id":11559225884845,
                    "quantity":1
                },
                {
                    "id":11559225950381,
                    "quantity":1
                },
                {
                    "id":11559225983149,
                    "quantity":1
                }
            ]
        }
    ]
    }
}
 
I am getting following error
{
    "errors": [
        "Fulfillment order line item does not exist."
    ]
}
Tried solution discussed here
 
But that isn't working as well. 
Need some assistance.
Accepted Solution (1)

AyushS
Shopify Partner
2 1 1

This is an accepted solution.

Found the issue, instead of "fulfillment_order_line_items" it should be "line_items"

View solution in original post

Reply 1 (1)

AyushS
Shopify Partner
2 1 1

This is an accepted solution.

Found the issue, instead of "fulfillment_order_line_items" it should be "line_items"