GET /big_cases
big_case:index
なし
5 rps
key | 説明 | 制約など |
---|---|---|
ids | ケースID | 整数のみ、カンマ区切りで複数指定可能 |
codes | ケースコード | カンマ区切りで複数指定可能 |
member_ids | 会員ID | 整数のみ、カンマ区切りで複数指定可能 |
statuses | ステータス | カンマ区切りで複数指定可能 |
payment_statuses | 支払いステータス | カンマ区切りで複数指定可能 |
created_at_from | 作成日から | 2024-04-12 12:08:38 形式 |
created_at_to | 作成日まで | 同上 |
updated_at_from | 更新日から | 同上 |
updated_at_to | 更新日まで | 同上 |
done_at_from | 完了日から | 同上 |
done_at_to | 完了日まで | 同上 |
paid_at_from | 支払日から | 同上 |
paid_at_to | 支払日まで | 同上 |
page | ページ | 整数のみ、デフォルト:1 |
limit | 1ページあたりの件数 | 整数のみ、デフォルト:50、最大: 250 |
cursor | ページカーソル | - |
GET /big_cases?codes=BI230905MA72
[
{
"id": 245,
"code": "BI230905MA72",
"store": {
"id": 1,
"name": "本店"
},
"staff": {
"id": 1,
"name": "スタッフ 太郎"
},
"cashier": {
"id": 2,
"name": "レジ2"
},
"status": "IN_PROGRESS",
"payment_status": "UNPAID",
"payment": {
"id": 1,
"name": "現金",
"type": "CASH"
},
"member_id": 742,
"note": "aaa",
"customer_note": null,
"done_at": null,
"paid_at": null,
"created_at": 1719542383,
"updated_at": 1727678538,
"attachments": [
{
"id": 179,
"file_key": "PdoJcUm1wtopvpX5goCSB36GR45FGuRJCrQAsvky.jpg",
"tag": "GENERAL",
"file_name": "カタログ_20250523_183452.jpg",
"url": "https://...",
"mime_type": "image/jpeg"
}
],
"goods": [
{
"id": 1022,
"serial": 1,
"quantity": 1,
"grade": {
"id": 2,
"name": "状態A"
},
"condition_tags": [
{
"id": 3,
"name": "aaa"
}
],
"condition_note": null,
"note": null,
"unit_price": 1000,
"selling_unit_price": 1100,
"unit_adjustment": 0,
"case_adjustment": 200,
"tax": 100,
"included_tax": 0,
"tax_rate": 10,
"tax_rate_type": "GENERAL",
"product_id": 174,
"item_id": null,
"attribute": null
}
],
"summary": {
"quantity": 1,
"sub_total": 1000,
"case_adjustment": 200,
"total": 1300,
"taxes": [
{
"tax_rate_type": "GENERAL",
"tax_rate": 10,
"tax": 100,
"included_tax": 0,
"taxable_amount": 1200
}
]
}
}
]
key | type | 説明 |
---|---|---|
* | array<object> | ケース |
*.id | int | ケースID |
*.code | string | ケースコード |
*.store | object | 店舗 |
*.store.id | int | 店舗ID |
*.store.name | string | 店舗名 |
*.staff | object | null | スタッフ |
*.staff.id | int | スタッフID |
*.staff.name | string | スタッフ名 |
*.cashier | object | null | レジ |
*.cashier.id | int | レジID |
*.cashier.name | string | レジ名 |
*.status | string | ステータス |
*.payment_status | string | 支払ステータス |
*.payment | object | null | 支払方法 |
*.payment.id | int | 支払方法ID |
*.payment.name | string | 支払方法名 |
*.payment.type | string | 支払方法タイプ |
*.member_id | object | null | 会員ID |
*.note | string | null | ケースメモ |
*.customer_note | string | null | 顧客メモ |
*.done_at | int | null | 完了日時 |
*.paid_at | int | null | 支払日時 |
*.created_at | int | null | 作成日時 |
*.updated_at | int | null | 更新日時 |
*.attachments | array<object> | ファイル |
*.attachments.*.id | int | ファイルID |
*.attachments.*.file_key | string | ファイルキー |
*.attachments.*.tag | string | タグ |
*.attachments.*.file_name | string | null | ファイル名 |
*.attachments.*.url | string | 一時URL (*1) |
*.attachments.*.mime_type | string | MIMEタイプ |
*.goods | array<object> | 仕入明細 |
*.goods.*.id | int | 仕入明細ID |
*.goods.*.serial | int | 仕入明細通し番号 |
*.goods.*.quantity | int | 数量 |
*.goods.*.grade | object | グレード |
*.goods.*.grade.id | int | グレードID |
*.goods.*.grade.name | string | グレード名 |
*.goods.*.condition_tags | array<object> | コンディションタグ |
*.goods.*.condition_tags.*.id | int | コンディションタグID |
*.goods.*.condition_tags.*.name | string | コンディションタグ名 |
*.goods.*.condition_note | string | null | コンディション詳細 |
*.goods.*.note | string | null | 商品メモ |
*.goods.*.unit_price | int | 仕入単価 |
*.goods.*.selling_unit_price | int | 販売単価 |
*.goods.*.unit_adjustment | int | 調整単価 |
*.goods.*.case_adjustment | int | 小計調整 |
*.goods.*.amount | int | 金額 |
*.goods.*.tax | int | 外税 |
*.goods.*.included_tax | int | 内税 |
*.goods.*.tax_rate | int | 税率 |
*.goods.*.tax_rate_type | string | 税区分 |
*.goods.*.product_id | int | カタログID |
*.goods.*.item_id | int | null | 在庫ID |
*.goods.*.attribute | object | null | 在庫属性 |
*.summary | object | ケースサマリー |
*.summary.quantity | int | 数量合計 |
*.summary.sub_total | int | 小計 |
*.summary.case_adjustment | int | 小計調整合計 |
*.summary.total | int | 合計 |
*.summary.taxes | array<object> | 税 |
*.summary.taxes.*.tax_rate_type | string | 税区分 |
*.summary.taxes.*.tax_rate | int | 税率 |
*.summary.taxes.*.tax | int | 外税 |
*.summary.taxes.*.included_tax | int | 内税 |
*.summary.taxes.*.taxable_amount | int | 課税対象金額 |
IN_PROGRESS
進行中DONE
入庫完了UNPAID
未支払いPAID
支払済みGENERAL
一般RELIEF
軽減税率NO_TAX
非課税GET /big_cases/{case_id}
big_case:show
なし
5 rps
GET /big_cases/44
一般仕入ケース検索のresponse[0]と同様
POST /big_cases
big_case:store
store_id (またはX-Store-Idヘッダ)
2 rps
key | type | 説明 | 制約など |
---|---|---|---|
staff_id | ?int | null | スタッフID | - |
cashier_id | ?int | null | レジID | - |
member_id | ?int | null | 会員ID | - |
customer_note | ?string | null | 顧客メモ | - |
note | ?string | null | ケースメモ | - |
case_adjustment | ?int | 小計調整 | -99,999,999以上 99,999,999以下 |
goods | ?array<object> | 仕入明細 | - |
goods.*.product_id | int | カタログID | - |
goods.*.quantity | ?int | 数量 | 0以上 9,999以下 |
goods.*.grade_id | int | グレードID | - |
goods.*.condition_tag_ids | ?array<int> | コンディションタグID | - |
goods.*.condition_note | ?string | null | コンディションメモ | - |
goods.*.note | ?string | null | 商品メモ | - |
goods.*.unit_price | ?int | 仕入単価 | 0以上 99,999,999以下 |
goods.*.unit_adjustment | ?int | 調整単価 | -99,999,999以上 99,999,999以下 |
goods.*.selling_unit_price | ?int | 販売単価 | 0以上 99,999,999以下 |
goods.*.attribute | ?object | 在庫属性 | - |
POST /big_cases
{
"note": "メモ",
"goods": [
{
"product_id": 12,
"grade_id": 1
}
]
}
一般仕入ケース取得と同様
PUT /big_cases/{case_id}
big_case:update
なし
2 rps
一般仕入ケース作成との差分のみ記載
key | type | 説明 | 制約など |
---|---|---|---|
goods.*.action | string | アクション | CREATE UPDATE DELETE |
goods.*.id | ?int (*2) | 仕入明細ID | - |
goods.*.product_id | ?int (*1) | カタログID | - |
goods.*.grade_id | ?int (*1) | グレードID | - |
CREATE
の場合必須UPDATE
DELETE
の場合必須DONE
かつ payment_status: PAID
の場合、ケースメモ以外の更新は無視されますDONE
の場合、ケースメモとレジID以外の更新は無視されますPAID
の場合、金額や契約内容が変わるようなカラムの更新は無視されますPUT /big_cases/44
{
"note": null,
"goods": [
{
"action": "CREATE",
"product_id": 12,
"grade_id": 1
},
{
"action": "UPDATE",
"id": 234,
"unit_price": 1200
},
{
"action": "DELETE",
"id": 235
}
]
}
一般仕入ケース取得と同様
DELETE /big_cases/{case_id}
big_case:destroy
なし
2 rps
DELETE /big_cases/44
なし
PUT /big_cases/{case_id}/checkout
big_case:checkout:update
なし
2 rps
なし
PUT /big_cases/44/checkout
一般仕入ケース取得と同様
PUT /big_cases/{case_id}/payment
big_case:payment:update
なし
2 rps
key | type | 説明 | 制約など |
---|---|---|---|
payment_id | int | 支払方法ID | ポイント支払い以外 |
paid_at | string | 支払日 | YYYY-MM-DD HH:mm:ss 形式、ケース作成日以降 現在以前 |
PUT /big_cases/44/payment
{
"payment_id": 1,
"paid_at": "2024-06-28 15:30:00"
}
一般仕入ケース取得と同様
POST /big_cases/{case_id}/attachments
big_case:attachment:store
なし
2 rps
key | type | 説明 | 制約など |
---|---|---|---|
file_key | string | ファイルキー (*1) | - |
tag | string | タグ | (*2) |
file_name | ?string | null | ファイル名 | 100文字まで |
GENERAL
一般ファイルPOST /big_cases/122/attachments
{
"file_key": "PdoJcUm1wtopvpX5goCSB36GR45FGuRJCrQAsvky.jpg",
"tag": "GENERAL",
"file_name": "カタログ_20250523_183452.jpg"
}
一般仕入ケース取得のattachments[0]と同様
DELETE /big_cases/{case_id}/attachments/{attachment_id}
big_case:attachment:destroy
なし
2 rps
DELETE /big_cases/122/attachments/345
(なし)