ReCORE.co-api

ReCORE co-api 仕様書

概要

APIキーについて

API共通基本仕様

リクエスト先

https://co-api.recore-pos.com

key value
X-Identification (APIキー)
Content-Type application/json

GET /products
X-Identification: eyJ0...
Content-Type: application/json
200 OK
[]
400 Bad Request
{
  "error": {
    "code": "VALIDATE_FAILED",
    "message": "入力値が不正です",
    "detail": {
      "pickup_date": [
        "Pickup date can't be blank"
      ]
    }
  }
}

API共通特記事項

スロットリングについて

JWT個別パラメータstore_idについて

ページネーションについて

概要

オフセットページネーションについて

カーソルページネーションについて

let responses = []
let cursor = ''

while (true) {
  const query = {
    updated_at_from: '2024-04-04 00:00:00',
    updated_at_to: '2024-04-04 23:59:59',
    cursor
  }

  const { body, header } = await api.get('/ec/orders?' + stringify(query))
  responses = [...responses, ...body]
  cursor = header['X-Next-Cursor']

  if (!cursor) {
    break
  }
}

個別仕様書