FROM CACHE - jp_header

Orders REST APIで、fulfillment_status = unshipped で絞り込んだときの取得できない注文データがある

issyxissy
訪問者
1 0 0

表題のとおりですが、未発送の注文データを取得する場合、

/orders.json?status=open&fulfillment_status=unshipped&limit=250

の場合、fulfillment_status が null の注文データは取得できないようです。

/orders.json?status=open&fulfillment_status=&limit=250

の場合だと、もちろん、fulfillment_status が null の注文データは取得できるようです。

未発送の注文データを取得する場合、正しいfulfillment_statusの値は何でしょうか?

1件の返信1

_osamu_iwasaki_
Shopify Partner
185 47 193

order APIの説明ページにはnullと書かれていました。

"fulfillment_status": "partial"

The order's status in terms of fulfilled line items. Valid values:

fulfilled: Every line item in the order has been fulfilled.

null: None of the line items in the order have been fulfilled.

partial: At least one line item in the order has been fulfilled.

restocked: Every line item in the order has been restocked and the order canceled.