ReCORE.co-api

Webhook

概要

ヘッダ

User-Agent: ReCORE-Webhook
X-ReCORE-Message-ID: e878f0a2-fd3f-5884-b4ac-ae1b74bd0f64:5235
X-ReCORE-Timestamp: 2024-05-11T14:57:06.391Z
X-ReCORE-Company-ID: novasto_demo001
X-ReCORE-Topic: bad.status.changed
key 説明
User-Agent 常にReCORE-Webhook
X-ReCORE-Message-ID メッセージID
X-ReCORE-Timestamp 送信日時
X-ReCORE-Company-ID 企業ID
X-ReCORE-Topic トピック

注意事項

送信失敗とリトライについて

重複配信について

配信の順序保証について

bodyの形式について

トピック

bad.status.changed

概要

body

宅配買取ケース取得とほぼ同様
差分は下記を参照
key type 説明
goods.*.product object 商品
goods.*.product.id int 商品ID
goods.*.product.code string 商品コード
goods.*.product.alias_code string | null 代替商品コード
goods.*.product.status string ステータス
goods.*.product.title string 商品名
goods.*.product.image_url string | null 商品画像URL
goods.*.product.category object カテゴリ
goods.*.product.category.id int カテゴリID
goods.*.product.category.name string カテゴリ名
goods.*.product.category.ancestors array<object> 親カテゴリ、カテゴリ先頭から並ぶ
goods.*.product.category.ancestors.*.id int 親カテゴリID
goods.*.product.category.ancestors.*.name string 親カテゴリ名
goods.*.product.created_at int | null 作成日時
goods.*.product.updated_at int | null 更新日時

bad.sub_status.changed

概要

body

bad.status.changedと同様

bad.return_status.changed

概要

body

bad.status.changedと同様

bad.return.status.changed

概要

body

宅配買取の返品取得と同様

bas.status.changed

概要

body

店頭買取ケース取得とほぼ同様
差分は下記を参照
key type 説明
goods.*.product object 商品
goods.*.product.id int 商品ID
goods.*.product.code string 商品コード
goods.*.product.alias_code string | null 代替商品コード
goods.*.product.status string ステータス
goods.*.product.title string 商品名
goods.*.product.image_url string | null 商品画像URL
goods.*.product.category object カテゴリ
goods.*.product.category.id int カテゴリID
goods.*.product.category.name string カテゴリ名
goods.*.product.category.ancestors array<object> 親カテゴリ、カテゴリ先頭から並ぶ
goods.*.product.category.ancestors.*.id int 親カテゴリID
goods.*.product.category.ancestors.*.name string 親カテゴリ名
goods.*.product.created_at int | null 作成日時
goods.*.product.updated_at int | null 更新日時

bas.sub_status.changed

概要

body

bas.status.changedと同様

bas.return.status.changed

概要

body

店頭買取の返品取得と同様

big.status.changed

概要

body

一般仕入ケース取得と同様

big.sub_status.changed

概要

body

big.status.changedと同様

big.return.status.changed

概要

body

一般仕入の返品取得と同様

sas.status.changed

概要

body

店頭販売ケース取得と同様

sas.sub_status.changed

概要

body

sas.status.changedと同様

sas.return.status.changed

概要

body

店頭販売の返品取得と同様

sig.status.changed

概要

body

一般販売ケース取得と同様

sig.sub_status.changed

概要

body

sig.status.changedと同様

sig.return.status.changed

概要

body

一般販売の返品取得と同様

item.change_store.status.changed

概要

body

在庫店舗変更ケース取得とほぼ同様
差分は下記を参照
key type 説明
details.*.src_item.product object 移動元在庫の商品 商品取得(sm)のレスポンスと同様
details.*.dist_item.product object 移動先在庫の商品 商品取得(sm)のレスポンスと同様

item.change_store.sub_status.changed

概要

body

item.change_store.status.changedと同様

item.transfer.created

概要

body

在庫振替ケース取得とほぼ同様
差分は下記を参照
key type 説明
details.*.src_item.product object 振替元在庫の商品 商品取得(sm)のレスポンスと同様
details.*.dist_item.product object 振替先在庫の商品 商品取得(sm)のレスポンスと同様

item.disposal.created

概要

body

在庫廃棄ケース取得とほぼ同様
差分は下記を参照
key type 説明
details.*.item.product object 廃棄した在庫の商品 商品取得(sm)のレスポンスと同様

identification.status.changed

概要

body

本人確認取得と同様

provider.gmo_bank.status.changed [廃止予定]

概要

body

GMO銀行振込取得と同様

bank_transfer.status.changed

概要

body

銀行振込詳細取得と同様

provider.pickup.status.changed

概要

body

{
  "id": 2,
  "status": "COLLECTING",
  "tracking_number": null,
  "pickup_date": "2024-06-09",
  "pickup_time": "16",
  "referable_id": 40,
  "referable_type": "rt_bad",
  "closing_at": 1717797600,
  "created_at": 1717819826,
  "updated_at": 1717821794
}
key type 説明
id int 集荷ID
status string ステータス
tracking_number string | null 問い合わせ番号
pickup_date string 集荷日時
pickup_time string | null 集荷時間コード 宅配買取の希望集荷時間帯コード表を参照
referable_id int | null 関連先ID
referable_type string | null 関連先タイプ
closing_at int | null 変更締め日時
created_at int | null 作成日時
updated_at int | null 更新日時

member.created

概要

body

会員取得と同様

member.updated

概要

body

会員取得と同様

product.created

概要

body

商品取得と同様

product.updated

概要

body

商品取得と同様

item.created

概要

body

在庫取得と同様

item.updated

概要

body

在庫取得と同様

item.price.changed

概要

body

在庫取得と同様

item.stock.changed

概要

body

在庫取得と同様

item.stocktaking.status.changed

概要

body

棚卸し取得と同様

ec.order.status.changed

概要

body

受注取得と同様

ec.order.sub_status.changed

概要

body

受注取得と同様

Webhook登録API

登録済みWebhook検索

概要

基本情報

query

なし

例

GET /webhooks
[
  {
    "id": "01HXM1FRZY28Q8QE6A1F984GA0",
    "address": "https://example.com",
    "topics": [
      "bad.status.changed"
    ]
  }
]
key type 説明
* array<object> Webhook
*.id string WebhookID
*.address string 配信先URL
*.topics array<string> 受信トピック

登録済みWebhook取得

概要

基本情報

例

GET /webhooks/01HXM1FRZY28Q8QE6A1F984GA0
登録済みWebhook検索のresponse[0]と同様

Webhook登録

概要

基本情報

body

key type 説明 制約など
address string 配信先URL -
topics array<string> 受信トピック -

例

POST /webhooks
{
  "address": "https://example.com",
  "topics": [
    "bad.status.changed"
  ]
}
登録済みWebhook取得と同様

登録済みWebhook更新

概要

基本情報

body

key type 説明 制約など
address ?string 配信先URL -
topics ?array<string> 受信トピック -

例

PUT /webhooks/01HXM1FRZY28Q8QE6A1F984GA0
{
  "address": "https://example.com",
  "topics": [
    "bad.status.changed"
  ]
}
登録済みWebhook取得と同様

登録済みWebhook削除

概要

基本情報

例

DELETE /webhooks/01HXM1FRZY28Q8QE6A1F984GA0
なし