ReCORE.co-api

エクスポート

概要

手順

各種API

エクスポート検索

概要

基本情報

query

key 説明 制約など
ids エクスポートID 整数のみ、カンマ区切りで複数指定可能
type 種別 -
status ステータス -
page ページ 整数のみ、デフォルト:1
limit 1ページあたりの件数 整数のみ、デフォルト:50、最大: 250

GET /exports?ids=32
[
  {
    "id": 32,
    "store": {
      "id": 1,
      "name": "本店"
    },
    "staff": null,
    "status": "DONE",
    "type": "PRODUCT",
    "format": "csv",
    "attachment": {
      "id": 54,
      "file_key": "data.csv",
      "tag": "GENERAL",
      "file_name": "カタログ_20250523_183452.csv",
      "url": "https://...",
      "mime_type": "text/csv"
    },
    "created_at": 1747992889,
    "updated_at": 1747992893
  }
]
key type 説明
* array<object> エクスポート
*.store object | null 店舗
*.store.id int 店舗ID
*.store.name string 店舗名
*.store object | null スタッフ
*.staff.id int スタッフID
*.staff.name string スタッフ名
*.status string ステータス
*.type string 種別
*.format string フォーマット
*.attachment object | null ファイル
*.attachment.id int ファイルID
*.attachment.file_key string ファイルキー
*.attachment.tag string タグ
*.attachment.file_name string | null ファイル名
*.attachment.url string 一時URL (*1)
*.attachment.mime_type string MIMEタイプ
*.created_at int | null 作成日時
*.updated_at int | null 更新日時

エクスポート取得

概要

基本情報

GET /exports/32
エクスポート検索のresponse[0]と同様

エクスポート作成

概要

基本情報

body

key type 説明 制約など
type string 種別 (*1)
format string フォーマット (*1)
columns ?array<string> 出力カラム (*1) (*2)
query ?object 検索条件 (*3)

POST /exports
{
  "type": "PRODUCT",
  "format": "csv",
  "columns": ["id", "code"],
  "query": {
    "ids": "1,2,3"
  }
}

エクスポート設定値取得

概要

基本情報

query

key 説明 制約など
type 種別 -

例 (全体設定値を取得)

GET /exports/config
{
  "schema": "all",
  "type": {
    "BAD_CASE": {
      "title": "宅配買取ケース"
    },
    "PRODUCT": {
      "title": "カタログ"
    }
  }
}
key type 説明
schema string all 固定
type object 種別リスト
type.* object (キーが種別を表す)
type.*.title string 種別名

例 (種別設定値を取得)

GET /exports/config?type=PRODUCT
{
  "schema": "type",
  "title": "カタログ",
  "description": null,
  "formats": [
    "xlsx",
    "csv"
  ],
  "column": {
    "id": {
      "label": "商品ID",
      "required": 0
    },
    "code": {
      "label": "商品コード"
    }
  }
}
key type 説明
schema string type 固定
title string 種別名
description string | null 説明
formats array<string> フォーマット
column object カラムリスト
column.* object (キーがカラムを表す)
column.*.label string カラム名
column.*.group ?string 種別グループ名
column.*.require ?int | bool trueなら指定必須、数値ならその位置で必須