Accepting credit cards, warehouses, and shipping and fulfilling orders
Hey people
Just wondering if someone could give me some advice regarding order fulfillment using GraphQL. I know how to mark the complete order as fulfilled. However, I can't fulfill a particular line in the order as I am unsure where to find the Fulfillment Order Line Item ID.
{ order(id:"gid://shopify/Order/123456") { fulfillmentOrders (first:1) { edges { node { id } } } } }
But everywhere where the lineItems is present , I can only find the order Line Item ID and not the Fulfillment Order Line Item ID. Here in the below code, you can see the order line item id and not the fulfillement order line item id inside the fulfillmentOrderLineItems. Where can I get that fulfilment Order Line Item ID if i just know the orderID?
notifyCustomer: false, trackingInfo: { company: "abcd", number: "123", url: "http://ghanda.com" }, lineItemsByFulfillmentOrder: [ { fulfillmentOrderId: $fulfillmentOrderId, fulfillmentOrderLineItems: [ { id: $fulfillmentOrderLineItemId, quantity: $quantity } ] } ]
I used Rest API until now, and if I call /orders/1234567/fulfillment_orders.json , I would receive both the fulfilment Order Line Item ID and Order Line Item ID inside the responds.
"line_items": [
{
"id": 133828880110416,// This is the fulfilment order line item ID, which I am using to fulfil lines. This one is what it is needed to fill a particular line of an order right ?
"shop_id": 1234545454,
"fulfillment_order_id": 6231380567800,
"quantity": 1,
"line_item_id": 13260831863512, // This is the actual order Line Item ID. this ID is what i am getting as Line Item ID in my GraphQL.
PS: Also just wondering if there is a way to get FulfillmentOrder Details of multiple orders in a single graphQL query.
Hope I make sense ! Appreciate any help
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024