ReCORE.co-api

一般販売ケース

一般販売ケース検索

概要

基本情報

query

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 /sig_cases?codes=SGJ3JJ2RGZL0
[
  {
    "id": 245,
    "code": "SGJ3JJ2RGZL0",
    "store": {
      "id": 1,
      "name": "本店"
    },
    "staff": {
      "id": 1,
      "name": "スタッフ 太郎"
    },
    "cashier": {
      "id": 2,
      "name": "レジ2"
    },
    "status": "IN_PROGRESS",
    "payment_status": "UNPAID",
    "member_id": 742,
    "customer_note": null,
    "note": "aaa",
    "payment": {
      "id": 1,
      "name": "現金",
      "type": "CASH"
    },
    "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,
        "note": null,
        "unit_price": 2000,
        "unit_adjustment": 0,
        "case_adjustment": -200,
        "tax": 0,
        "included_tax": 163,
        "tax_rate": 10,
        "tax_rate_type": "GENERAL",
        "item_id": 5678,
        "location_id": 1
      }
    ],
    "summary": {
      "quantity": 1,
      "sub_total": 2000,
      "case_adjustment": -200,
      "total": 1800,
      "taxes": [
        {
          "tax_rate_type": "GENERAL",
          "tax_rate": 10,
          "tax": 0,
          "included_tax": 163,
          "taxable_amount": 1800
        }
      ]
    }
  }
]
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 支払ステータス
*.member_id int | null 会員ID
*.customer_note string | null 顧客メモ
*.note string | null ケースメモ
*.payment object | null 支払方法
*.payment.id int 支払方法ID
*.payment.name string 支払方法名
*.payment.type string 支払方法タイプ
*.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.*.item_id int | null 在庫ID
*.goods.*.location_id int | null ロケーションID
*.goods.*.quantity int 数量
*.goods.*.reserved_quantity int 確保済み数量
*.goods.*.note string | null 商品メモ
*.goods.*.unit_price int 販売単価
*.goods.*.unit_adjustment int 調整単価
*.goods.*.case_adjustment int 小計調整
*.goods.*.tax int 外税
*.goods.*.included_tax int 内税
*.goods.*.tax_rate int 税率
*.goods.*.tax_rate_type string 税区分
*.summary object ケースサマリー
*.summary.quantity int 数量合計
*.summary.reserved_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 課税対象金額

一般販売ケース取得

概要

基本情報

GET /sig_cases/44
一般販売ケース検索のresponse[0]と同様

一般販売ケース作成

概要

基本情報

body

key type 説明 制約など
staff_id ?int | null スタッフID -
reserve_mode ?string 在庫確保モード RESERVE RELEASE
cashier_id ?int | null レジID -
member_id ?int | null 会員ID -
customer_note ?string | null 顧客メモ -
note ?string | null ケースメモ -
case_adjustment ?int 小計調整 99,999,999以下
goods ?array<object> 販売明細 -
goods.*.item_id int 在庫ID -
goods.*.location_id int ロケーションID -
goods.*.quantity int 数量 0以上 9,999以下
goods.*.unit_price ?int 販売単価 0以上 99,999,999以下
goods.*.unit_adjustment ?int 調整単価 -99,999,999以上 99,999,999以下

POST /sig_cases
{
  "note": "メモ",
  "goods": [
    {
      "item_id": 5678,
      "location_id": 1,
      "quantity": 1,
      "unit_price": 2000
    }
  ]
}
一般販売ケース取得と同様

一般販売ケース更新

概要

基本情報

body

一般販売ケース作成との差分のみ記載
key type 説明 制約など
goods.*.action string アクション CREATE UPDATE DELETE
goods.*.id ?int (*1) 販売明細ID -
goods.*.item_id ?int (*2) 在庫ID -
goods.*.location_id ?int (*2) ロケーションID -
goods.*.quantity ?int (*2) 数量 0以上 9,999以下

PUT /sig_cases/44
{
  "note": null,
  "reserve_mode": "RESERVE",
  "goods": [
    {
      "action": "CREATE",
      "item_id": 5679,
      "location_id": 1,
      "quantity": 1,
      "unit_price": 2000
    },
    {
      "action": "UPDATE",
      "id": 234,
      "unit_price": 2200
    },
    {
      "action": "DELETE",
      "id": 235
    }
  ]
}
一般販売ケース取得と同様

一般販売ケース削除

概要

基本情報

DELETE /sig_cases/44
なし

一般販売チェックアウト実行

概要

基本情報

body

なし

PUT /sig_cases/44/checkout
一般販売ケース取得と同様

一般販売支払実行

概要

基本情報

body

key type 説明 制約など
payment_id int 支払方法ID ポイント支払い以外
paid_at string 支払日時 YYYY-MM-DD HH:MM:SS形式、ケース作成日以降 現在以前

PUT /sig_cases/44/payment
{
  "payment_id": 1,
  "paid_at": "2024-06-28 15:30:00"
}
一般販売ケース取得と同様

ケースファイル登録

概要

基本情報

body

key type 説明 制約など
file_key string ファイルキー (*1) -
tag string タグ (*2)
file_name ?string | null ファイル名 100文字まで

POST /sig_cases/122/attachments
{
  "file_key": "PdoJcUm1wtopvpX5goCSB36GR45FGuRJCrQAsvky.jpg",
  "tag": "GENERAL",
  "file_name": "カタログ_20250523_183452.jpg"
}
一般販売ケース取得のattachments[0]と同様

ケースファイル削除

概要

基本情報

DELETE /sig_cases/122/attachments/345
(なし)