ReCORE.co-api

EC受注

受注検索

概要

基本情報

query

key 説明 制約など
ids 受注ID 整数のみ、カンマ区切りで複数指定可能
item_ids 在庫ID 整数のみ、カンマ区切りで複数指定可能
statuses 受注ステータス カンマ区切りで複数指定可能
sub_statuses サブステータス カンマ区切りで複数指定可能
ec_account_id ECアカウントID -
created_at_from 作成日から 2024-04-12 12:08:38 形式
created_at_to 作成日まで 同上
updated_at_from 更新日から 同上
updated_at_to 更新日まで 同上
page ページ 整数のみ、デフォルト:1
limit 1ページあたりの件数 整数のみ、デフォルト:50、最大: 250
cursor ページカーソル -

GET /ec/orders?ids=179
[
  {
    "id": 179,
    "ec_account": {
      "id": 2,
      "mall_id": "AMAZON_JP"
    },
    "mall_order_id": "503-0946393-1072622",
    "mall_url": "https://sellercentral.amazon.co.jp/gp/orders-v2/details/?orderID=503-0946393-1072622",
    "status": "SHIPPED",
    "sub_status": null,
    "ordered_at": 1537695918,
    "shipped_at": 1537697384,
    "payment_total": 1380,
    "payment_method": null,
    "buyer_name": "菊地浩貴",
    "buyer_name_kana": null,
    "buyer_email": "0xp35rs6y0tmk58@marketplace.amazon.co.jp",
    "shipping_postal_code": "564-0051",
    "shipping_country_code": "JP",
    "shipping_state_or_region": "大阪府",
    "shipping_city": null,
    "shipping_address1": "吹田市豊津町",
    "shipping_address2": "9-22-7F",
    "shipping_address3": null,
    "shipping_phone": null,
    "shipping_name": "菊地浩貴",
    "earliest_delivery_at": 1538060400,
    "latest_delivery_at": 1538319599,
    "note": null,
    "comment": null,
    "created_at": 1708054490,
    "updated_at": 1708054490,
    "goods": [
      {
        "id": 185,
        "serial": 1,
        "ec_order_id": 179,
        "mall_item_id": "54400968056678",
        "mall_item_code": "1LZ-N19-194",
        "unit_price": 520,
        "unit_adjustment": 0,
        "order_adjustment": 0,
        "tax": 0,
        "included_tax": 0,
        "tax_rate": 0,
        "tax_rate_type": "NO_TAX",
        "shipping_price": 340,
        "shipping_tax": 0,
        "shipping_included_tax": 25,
        "shipping_tax_rate": 8,
        "shipping_tax_rate_type": "GENERAL",
        "payment_price": 0,
        "payment_tax": 0,
        "payment_included_tax": 0,
        "payment_tax_rate": 8,
        "payment_tax_rate_type": "GENERAL",
        "option_price": 0,
        "option_tax": 0,
        "option_included_tax": 0,
        "option_tax_rate": 8,
        "option_tax_rate_type": "GENERAL",
        "quantity": 2,
        "shipped_quantity": 2,
        "earned_point": 0,
        "title": "PCモニタ",
        "comment": null,
        "allocations": [
          {
            "id": 7,
            "item_id": 266,
            "location_id": 1,
            "quantity": 2,
            "reserved_quantity": 2,
            "price_ratio": 1,
            "quantity_ratio": 1
          }
        ]
      }
    ],
    "fulfillments": [
      {
        "id": 5,
        "ec_order_id": 179,
        "shipping_carrier": {
          "id": 2,
          "name": "ヤマト運輸",
          "type": "YAMATO"
        },
        "tracking_number": "12345",
        "note": "2",
        "created_at": 1715932595,
        "goods": [
          {
            "ec_order_goods_id": 185,
            "quantity": 2
          }
        ]
      }
    ]
  }
]
key type 説明
* array<object> 受注
*.id int 受注ID
*.ec_account object ECアカウント
*.ec_account.id int ECアカウントID
*.ec_account.mall_id string モールID
*.mall_order_id string モール受注ID
*.mall_url string | null モール受注詳細URL
*.status string 受注ステータス
*.sub_status string | null サブステータス
*.ordered_at int | null モール受注日
*.shipped_at int | null 出荷日
*.payment_total int お客様支払額
*.payment_method string | null 支払い方法
*.buyer_name string | null 購入者氏名
*.buyer_name_kana string | null 購入者かな
*.buyer_email string | null 購入者メールアドレス
*.shipping_postal_code string | null 配送先郵便番号
*.shipping_country_code string | null 配送先国コード (ISO-3166)
*.shipping_state_or_region string | null 配送先
*.shipping_city string | null 配送先
*.shipping_address1 string | null 配送先
*.shipping_address2 string | null 配送先
*.shipping_address3 string | null 配送先
*.shipping_phone string | null 配送先電話番号
*.shipping_name string | null 配送先宛名
*.earliest_delivery_at int | null 配送日時指定から (日付未指定の場合は1970-01-01)
*.latest_delivery_at int | null 配送日時指定まで (同上)
*.note string | null 内部メモ
*.comment string | null 受注時備考
*.created_at int | null 受注作成日
*.updated_at int | null 受注更新日
*.goods array<object> 受注明細
*.goods.*.id int 受注明細ID
*.goods.*.serial int 受注明細通し番号
*.goods.*.ec_order_id int 受注ID
*.goods.*.mall_item_id string モール明細ID
*.goods.*.mall_item_code string | null モールSKU
*.goods.*.unit_price int 単価
*.goods.*.unit_adjustment int 単価調整
*.goods.*.order_adjustment int 小計調整
*.goods.*.tax int 外税
*.goods.*.included_tax int 内税
*.goods.*.tax_rate int 税率
*.goods.*.tax_rate_type string 税区分
*.goods.*.shipping_price int 送料
*.goods.*.shipping_tax int 送料外税
*.goods.*.shipping_included_tax int 送料内税
*.goods.*.shipping_tax_rate int 送料税率
*.goods.*.shipping_tax_rate_type string 送料税区分
*.goods.*.payment_price int 支払手数料
*.goods.*.payment_tax int 支払手数料外税
*.goods.*.payment_included_tax int 支払手数料内税
*.goods.*.payment_tax_rate int 支払手数料税率
*.goods.*.payment_tax_rate_type string 支払手数料税区分
*.goods.*.option_price int サービス料
*.goods.*.option_tax int サービス料外税
*.goods.*.option_included_tax int サービス料内税
*.goods.*.option_tax_rate int サービス料税率
*.goods.*.option_tax_rate_type string サービス料税区分
*.goods.*.quantity int 受注数量
*.goods.*.shipped_quantity int 出荷済み数量
*.goods.*.earned_point int 獲得ポイント
*.goods.*.title string | null モール商品名
*.goods.*.comment string | null 明細毎の受注時備考
*.goods.*.allocations array<object> 在庫割当
*.goods.*.allocations.*.id int 在庫割当ID
*.goods.*.allocations.*.item_id int 在庫ID
*.goods.*.allocations.*.location_id int ロケーションID
*.goods.*.allocations.*.quantity int 割当数量
*.goods.*.allocations.*.reserved_quantity int 確保済み割当数量
*.goods.*.allocations.*.price_ratio float 受注額に対する価格比
*.goods.*.allocations.*.quantity_ratio int 受注数量に対する割当比
*.fulfillments array<object> 出荷
*.fulfillments.*.id int 出荷ID
*.fulfillments.*.ec_order_id int 受注ID
*.fulfillments.*.shipping_carrier object | null 配送会社
*.fulfillments.*.shipping_carrier.id int 配送会社ID
*.fulfillments.*.shipping_carrier.name string 配送会社名
*.fulfillments.*.shipping_carrier.type string 配送会社タイプ
*.fulfillments.*.tracking_number string | null 追跡番号
*.fulfillments.*.note string | null 内部メモ
*.fulfillments.*.created_at int | null 受注作成日
*.fulfillments.*.goods array<object> 出荷商品
*.fulfillments.*.goods.*.ec_order_goods_id int 受注明細ID
*.fulfillments.*.goods.*.quantity int 出荷数量

受注取得

概要

基本情報

GET /ec/orders/179
受注検索のresponse[0]と同様

受注更新

概要

基本情報

body

key type 説明 制約など
sub_status ?string | null サブステータス -
note ?string | null 内部メモ -

PUT /ec/orders/179
{
  "note": "abc"
}
受注取得と同様

入金確認

概要

基本情報

body

key type 説明 制約など
* array<object> - -
*.ec_order_id int 受注ID -

PUT /ec/orders/confirm
[
  {
    "ec_order_id": 18
  },
  {
    "ec_order_id": 19
  }
]
なし

受注キャンセル

概要

基本情報

body

key type 説明 制約など
* array<object> - -
*.ec_order_id int 受注ID -
*.reason string キャンセル理由 -

PUT /ec/orders/cancel
[
  {
    "ec_order_id": 18,
    "reason": "購入者都合のキャンセル"
  },
  {
    "ec_order_id": 19,
    "reason": "在庫なし"
  }
]
なし

出荷

概要

基本情報

body

key type 説明 制約など
* array<object> - -
*.ec_order_id int 受注ID -
*.shipping_carrier_id ?int | null 配送会社ID -
*.tracking_number ?string | null 追跡番号 -
*.note ?string | null 内部メモ -
*.goods.*.ec_order_goods_id int 受注明細ID -
*.goods.*.quantity int 出荷数量 1以上

POST /ec/orders/fulfillments
[
  {
    "ec_order_id": 18,
    "shipping_carrier_id": 2,
    "tracking_number": "1234-1234-1234",
    "note": null,
    "goods": [
      {
        "ec_order_goods_id": 123,
        "quantity": 1
      },
      {
        "ec_order_goods_id": 124,
        "quantity": 2
      }
    ]
  },
  {
    "ec_order_id": 19,
    "goods": [
      {
        "ec_order_goods_id": 125,
        "quantity": 1
      }
    ]
  }
]
なし

返品検索

概要

基本情報

query

key 説明 制約など
ids 返品ID 整数のみ、カンマ区切りで複数指定可能
ec_order_ids 受注ID 整数のみ、カンマ区切りで複数指定可能
statuses 受注ステータス カンマ区切りで複数指定可能
created_at_from 作成日から 2024-04-12 12:08:38 形式
created_at_to 作成日まで 同上
updated_at_from 更新日から 同上
updated_at_to 更新日まで 同上
page ページ 整数のみ、デフォルト:1
limit 1ページあたりの件数 整数のみ、デフォルト:50、最大: 250
cursor ページカーソル -

GET /ec/orders/return_orders?ids=9
[
  {
    "id": 9,
    "ec_order_id": 181,
    "status": "DONE",
    "note": null,
    "done_at": 1713451170,
    "created_at": 1713450912,
    "goods": [
      {
        "id": 11,
        "ec_order_goods_id": 188,
        "unit_price": 35200,
        "unit_adjustment": 0,
        "order_adjustment": 0,
        "tax": 0,
        "included_tax": 0,
        "tax_rate": 10,
        "tax_rate_type": "GENERAL",
        "shipping_price": 0,
        "shipping_tax": 0,
        "shipping_included_tax": 0,
        "shipping_tax_rate": 10,
        "shipping_tax_rate_type": "GENERAL",
        "payment_price": 0,
        "payment_tax": 0,
        "payment_included_tax": 0,
        "payment_tax_rate": 10,
        "payment_tax_rate_type": "GENERAL",
        "option_price": 0,
        "option_tax": 0,
        "option_included_tax": 0,
        "option_tax_rate": 10,
        "option_tax_rate_type": "GENERAL",
        "quantity": 1,
        "earned_point": 0,
        "return_type": "AS_NEW",
        "allocations": [
          {
            "id": 10,
            "quantity": 1,
            "returned_quantity": 1,
            "returned_item_id": 291
          }
        ]
      }
    ]
  }
]
key type 説明
* array<object> 返品
*.id int 返品ID
*.ec_order_id int 受注ID
*.status string 返品ステータス
*.note string | null 内部メモ
*.done_at int | null ケース完了日
*.created_at int | null ケース作成日
*.goods array<object> 返品明細
*.goods.*.id int 返品明細ID
*.goods.*.ec_order_goods_id int 受注明細ID
*.goods.*.unit_price int 単価
*.goods.*.unit_adjustment int 単価調整
*.goods.*.order_adjustment int 小計調整
*.goods.*.tax int 外税
*.goods.*.included_tax int 内税
*.goods.*.tax_rate int 税率
*.goods.*.tax_rate_type string 税区分
*.goods.*.shipping_price int 送料
*.goods.*.shipping_tax int 送料外税
*.goods.*.shipping_included_tax int 送料内税
*.goods.*.shipping_tax_rate int 送料税率
*.goods.*.shipping_tax_rate_type string 送料税区分
*.goods.*.payment_price int 支払手数料
*.goods.*.payment_tax int 支払手数料外税
*.goods.*.payment_included_tax int 支払手数料内税
*.goods.*.payment_tax_rate int 支払手数料税率
*.goods.*.payment_tax_rate_type string 支払手数料税区分
*.goods.*.option_price int サービス料
*.goods.*.option_tax int サービス料外税
*.goods.*.option_included_tax int サービス料内税
*.goods.*.option_tax_rate int サービス料税率
*.goods.*.option_tax_rate_type string サービス料税区分
*.goods.*.quantity int 返品数量
*.goods.*.earned_point int 返還ポイント
*.goods.*.return_type string 在庫補充モード
*.goods.*.allocations array<object> 在庫補充割当
*.goods.*.allocations.*.id int 在庫補充割当ID
*.goods.*.allocations.*.quantity int 補充数量
*.goods.*.allocations.*.returned_quantity int 補充済み割当数量
*.goods.*.allocations.*.returned_item_id int | null 補充在庫ID

返品取得

概要

基本情報

GET /ec/orders/return_orders/9
返品検索のresponse[0]と同様

返品作成

概要

基本情報

body

key type 説明 制約など
note ?string | null 内部メモ -
goods array<object> 受注明細 -
goods.*.ec_order_goods_id int 受注明細ID -
goods.*.quantity int 返品数量 -
goods.*.return_type string 在庫補充モード -

POST /ec/orders/181/return_orders
{
  "note": null,
  "goods": [
    {
      "ec_order_goods_id": 188,
      "quantity": 1,
      "return_type": "NO_ADD"
    }
  ]
}
返品検索のresponse[0]と同様

返品編集

概要

基本情報

body

返品作成との差分のみ記載
key type 説明 制約など
goods.*.action string アクション CREATE UPDATE DELETE
goods.*.id ?int (*2) 返品明細ID -
goods.*.ec_order_goods_id ?int (*1) 受注明細ID -
goods.*.quantity ?int (*1) 返品数量 -
goods.*.return_type ?string (*1) 在庫補充モード -

PUT /ec/orders/return_orders/9
{
  "note": null,
  "goods": [
    {
      "action": "UPDATE",
      "id": 10,
      "quantity": 2
    }
  ]
}
返品検索のresponse[0]と同様

返品削除

概要

基本情報

DELETE /ec/orders/return_orders/9
なし

返品確定

概要

基本情報

PUT /ec/orders/return_orders/9/checkout
返品検索のresponse[0]と同様