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 トピック

注意事項

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

重複配信について

配信の順序保証について

トピック

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 name 親カテゴリ名
goods.*.product.created_at int | null 作成日時
goods.*.product.updated_at int | null 更新日時

bad.return_status.changed

概要

body

bad.status.changedと同様

identification.status.changed

概要

body

本人確認取得と同様

provider.gmo_bank.status.changed

概要

body

GMO銀行振込取得と同様

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

会員取得と同様

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
なし