GET /items/transfersitem:transfer:index必要なし5 rps| key | 説明 | 制約など |
|---|---|---|
| ids | ケースID | 整数のみ、カンマ区切りで複数指定可能 |
| created_at_from | 作成日から | 2024-04-12 12:08:38 形式 |
| created_at_to | 作成日まで | 同上 |
| note | 備考 | 部分一致検索 |
| src_item_ids | 振替元在庫ID | 整数のみ、カンマ区切りで複数指定可能 |
| dist_item_ids | 振替先在庫ID | 整数のみ、カンマ区切りで複数指定可能 |
| ca_* | ケース属性 | (*1) |
| page | ページ | 整数のみ、デフォルト:1 |
| limit | 1ページあたりの件数 | 整数のみ、デフォルト:50、最大: 250 |
| cursor | ページカーソル | - |
ca_custom_xxx=値GET /items/transfers
[
{
"id": 1,
"store": {
"id": 1,
"name": "main"
},
"staff": {
"id": 1,
"name": "山田 太郎",
"kana": "ヤマダ タロウ"
},
"note": "振替メモ",
"details": [
{
"src_item": {
"id": 23,
"code": "ITBC0PV0VJPA",
"alias_code": null,
"store": {
"id": 1,
"name": "main"
},
"price": 33,
"grade": {
"id": 2,
"name": "中古A"
},
"condition_note": null,
"condition_tags": [
{
"id": 1,
"name": "喫煙あり"
}
],
"note": null,
"stocks": [
{
"location": {
"id": 1,
"type": "DEFAULT",
"name": "デフォルト"
},
"status": "PENDING",
"quantity": 1,
"cost_price": 20
}
],
"image_url": "https://...",
"racks": [],
"product_id": 7,
"created_at": 1673411650,
"updated_at": 1673411650
},
"dist_item": {
"id": 24,
"code": "ITBC0PV0VJPB",
"alias_code": null,
"store": {
"id": 1,
"name": "main"
},
"price": 1500,
"grade": {
"id": 1,
"name": "新品"
},
"condition_note": null,
"condition_tags": [],
"note": null,
"stocks": [
{
"location": {
"id": 1,
"type": "DEFAULT",
"name": "デフォルト"
},
"status": "ACTIVE",
"quantity": 2,
"cost_price": 10
}
],
"image_url": null,
"racks": [],
"product_id": 8,
"created_at": 1673411700,
"updated_at": 1673411700
},
"price_ratio": 0.5,
"quantity_ratio": 0.5,
"cost_price": 10
}
],
"created_at": 1673411700
}
]
| key | type | 説明 |
|---|---|---|
| * | array<object> | 在庫振替ケース |
| *.id | int | ケースID |
| *.store | object | 店舗 |
| *.store.id | int | 店舗ID |
| *.store.name | string | 店舗名 |
| *.staff | object | null | 担当スタッフ |
| *.staff.id | int | スタッフID |
| *.staff.name | string | スタッフ名 |
| *.note | string | null | 備考 |
| *.attribute | object | null | ケース属性 |
| *.details | array<object> | 振替詳細 |
| *.details.*.src_item | object | 振替元在庫 (在庫入庫と同様) |
| *.details.*.dist_item | object | 振替先在庫 (在庫入庫と同様) |
| *.details.*.price_ratio | float | 価格比率 (*1) |
| *.details.*.quantity_ratio | float | 数量比率 (*2) |
| *.details.*.cost_price | int | 原価 |
| *.created_at | int | null | ケース作成日時 |
PUT /items/transfersitem:transfer:update必要なし2 rps| key | type | 説明 | 制約など |
|---|---|---|---|
| staff_id | ?int | null | 担当スタッフID | - |
| location_id | int | 振替先ロケーションID | - |
| status | string | ステータス | PENDING ACTIVE |
| note | ?string | null | 備考 | - |
| attribute | ?object | ケース属性 | - |
| src_items | array<object> | 振替元在庫 | 1件以上 1000件まで (*1) |
| src_items.*.id | int | 振替元在庫ID | - |
| src_items.*.quantity | int | 振替元数量 | 1以上 |
| dist_items | array<object> | 振替先在庫 | 1件以上 1000件まで (*1) |
| dist_items.*.product_id | int | 振替先商品ID | - |
| dist_items.*.quantity | int | 振替先数量 | 1以上 |
| dist_items.*.price | int | 振替先価格 | 0以上 |
| dist_items.*.grade_id | int | 振替先グレードID | - |
| dist_items.*.condition_note | ?string | null | 振替先コンディション詳細 | - |
| dist_items.*.condition_tag_ids | ?array<int> | コンディションタグIDリスト | - |
| dist_items.*.cost_price | ?int | null | 原価 | 0以上 (*2) |
PUT /items/transfers
{
"location_id": 1,
"status": "ACTIVE",
"src_items": [
{
"id": 1001,
"quantity": 2
}
],
"dist_items": [
{
"product_id": 2001,
"quantity": 2,
"price": 1500,
"grade_id": 1
},
{
"product_id": 2002,
"quantity": 2,
"price": 1500,
"grade_id": 2
}
]
}
[在庫入庫](/ReCORE.co-api/spec/item_inbound.html)と同様
GET /items/transfers/{case_id}item:transfer:show必要なし5 rpsGET /items/transfers/1
在庫振替検索のresponse[0]と同様