FROM CACHE - zh-cn_header

How to realize the return of Tracking Number through the order API?

已解决
Lasem
新成员
14 0 0

eg.

we have a order A, it has 5 SKUs, we should split it in 2 package, every package has a tracking_number.

Now, we need send the 2 tracking number to your system without manually in our shopify's store.

1 个已接受解答

已接受的解答
Tim_Mak
探路者
103 12 18
解决方案

This is the endpoint you should use: https://shopify.dev/api/admin-rest/2021-07/resources/fulfillment#[post]/admin/api/2021-07/fulfillmen...

You will create two separate fulfillments, each assigned to the same order, but having different line items.

在原帖中查看解决方案

4 条回复4
Tim_Mak
探路者
103 12 18
解决方案

This is the endpoint you should use: https://shopify.dev/api/admin-rest/2021-07/resources/fulfillment#[post]/admin/api/2021-07/fulfillmen...

You will create two separate fulfillments, each assigned to the same order, but having different line items.

Lasem
新成员
14 0 0

We find it can work. Thank you so much.

Lasem
新成员
14 0 0

Pardon me. We need to ask again about this lineitem_ Which field is ID in the order? What Id does it represent? please view the pic under the reply.

shopify字段-Line_id什么意思.png

Tim_Mak
探路者
103 12 18

This is line item id. You can get them when you query orders or specific order: https://shopify.dev/api/admin-rest/2021-07/resources/order#[get]/admin/api/2021-07/orders/{order_id}...

It's under "line_items: { "id": xxx,