発注対象商品取得
GET /purchase_orders/{purchase_order_id}/products
GET
/purchase_orders/{purchase_order_id}/products
発注対象商品情報を取得します。
対象プラン
- リテールビジネス
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” purchase_order_id
required
string
発注ID
Example
6
Query Parameters
Section titled “Query Parameters ” fields
array
検索パラメータ(カンマ区切りで指定可)
Response項目を指定可能
※一部項目(withで指定する項目、2階層目以降の項目)については指定不可
Example
storageInfoProductId,productId
sort
string
並び順(カンマ区切りで指定可)
指定可能なパラメータ
- storageInfoProductId:発注商品ID
- productId:商品ID
- quantity:発注数量
- updDateTime:更新日時:登録時・更新時の日時。[YYYY-MM-DDThh:mm:ssTZD]
Example
storageInfoProductId
limit
integer
上限数
Example
10
page
integer
ページ
Example
2
product_id
string
商品ID
Example
8000001
with_deliveries
string
配送先店舗付加フラグ:(none:付加しない、all:付加する)
Example
all
Responses
Section titled “ Responses ”取得成功
Array<object>
object
storageInfoProductId
発注商品ID
string
6
storageInfoId
発注ID
string
6
productId
商品ID
string
8000001
taxRate
税率
string
10.000
cost
原価(外税)
string
100.00000
taxDivision
税区分:(0:税込、1:税抜、2:非課税)
string
0
quantity
発注数量
string
5
insDateTime
作成日時:登録時の日時。[YYYY-MM-DDThh:mm:ssTZD]
string
2025-01-01T00:00:00+09:00
updDateTime
更新日時:登録時・更新時の日時。[YYYY-MM-DDThh:mm:ssTZD]
string
2025-01-01T00:00:00+09:00
deliveryStore
発注配送商品
Array<object>
object
storageInfoDeliveryProductId
発注配送商品ID
string
6
storeId
配送店舗ID
string
1
quantity
発注数量
string
5
Example
[ { "storageInfoProductId": "6", "storageInfoId": "6", "productId": "8000001", "taxRate": "10.000", "cost": "100.00000", "taxDivision": "0", "quantity": "5", "insDateTime": "2025-01-01T00:00:00+09:00", "updDateTime": "2025-01-01T00:00:00+09:00", "deliveryStore": [ { "storageInfoDeliveryProductId": "6", "storeId": "1", "quantity": "5" } ] }]
指定した発注データが存在しない場合
object
type
required
string
title
required
string
detail
string
status
integer
Examples
{ "type": "about:blank", "title": "NotFound", "detail": "指定されたIDのリソースが見つかりません", "status": 404}