> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.returnhelper.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Return Inventory ID で Recall を作成

<Warning>
  このページはAIによって自動翻訳されています。API技術仕様は英語が正式です。不明点がある場合は[英語版](/api-reference/recall/create-recall-by-return-inventory-ids)を参照してください。
</Warning>

すでに倉庫に到着している 1 件以上の返品在庫アイテムに対してリコール要求を作成します。リコールは倉庫から再発送し、宛先は当社の香港倉庫です。

## 前提条件

* 対象在庫アイテムはアカウントに存在している必要があります。`returnInventoryId` は `newInventoryCreated` webhook イベントで配信されるため、統合は自社側でキャッシュしてください。
* 各在庫の現在の `handlingStatusCode` は、ハンドリング状態機械上でリコール（`Handling.rtn`）に進めるものでなければなりません——通常は `pending` または `ohd` 状態が対象です。
* いずれのアイテムにも、有効な（未キャンセルの）リコールが存在してはなりません。
* いずれのアイテムのラインアイテムにも保留中の VAS が存在してはなりません——先に解決してください。

## 必須フィールド

* **`returnInventoryIdList`** — 空でない `List<long>`。

## 副作用

* 各在庫の `handlingCode` が `rtn` に設定されます。
* 各在庫の RMA マッピングが、スワップ防止のためロックされます。
* リコールの履行は非同期です。状態更新は webhook（`recallShipmentDispatched`、`recallDelivered` など）で配信されます。

## 関連

* [リコール注文を作成](/ja/api-reference/recall/create-recall-order) — リコールペイロードを直接受け付けるレガシーの非バッチ版。新規統合では本バッチエンドポイントを優先してください。
* [返品在庫 ID でリコールをキャンセル](/ja/api-reference/recall/cancel-recall-by-return-inventory-id) — 倉庫が履行する前にリコールを取り消します。
* [すべてのリコール在庫ステータスを取得](/ja/api-reference/recallstatus/get-all-recall-inventory-statuses) — コード → ラベルのマッピング。
* [Webhooks](/ja/webhooks) — `recallUpdateStatus` および各リコール ライフサイクル イベントが進捗をエンドポイントへ配信します。


## OpenAPI

````yaml post /api/Recall/createRecallByReturnInventoryId
openapi: 3.1.0
info:
  title: Return Helper API
  description: API documentation for Return Helper — covering User and Public endpoints.
  version: 1.0.0
servers:
  - url: https://api.returnshelper.com/uat/user
    description: Sandbox — User API
  - url: https://api.returnshelper.com/uat/public
    description: Sandbox — Public API
  - url: https://api.returnhelpercentre.com/v1/user
    description: Production — User API
  - url: https://api.returnhelpercentre.com/v1/public
    description: Production — Public API
  - url: https://api.returnhelperchina.com/user
    description: Production — User API (China)
security:
  - ApiKey: []
    ApiToken: []
paths:
  /api/Recall/createRecallByReturnInventoryId:
    post:
      tags:
        - Recall
      summary: Create recall by return inventory IDs
      operationId: ReturnUserApi_CreateRecallByReturnInventoryId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRecallByReturnInventoryIdListRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CreateRecallByReturnInventoryIdListResponse
        '401':
          description: >-
            Authentication failed. Returned when the `x-rr-apikey` or
            `x-rr-apitoken` header is missing or invalid. The body uses the
            standard `ApiResponse` envelope with `meta.error.message` describing
            the auth failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
      security:
        - ApiKey: []
          ApiToken: []
      servers:
        - url: https://api.returnshelper.com/uat/user
          description: Sandbox — User API
components:
  schemas:
    CreateRecallByReturnInventoryIdListRequest:
      type: object
      properties:
        returnInventoryIdList:
          type: array
          items:
            type: integer
            format: int64
          description: List of return inventory IDs
      required:
        - returnInventoryIdList
    CreateRecallByReturnInventoryIdListResponse:
      type: object
      properties:
        recallList:
          type: array
          items:
            $ref: '#/components/schemas/CreateRecallPayload'
          description: List of created recalls
    ApiResponse:
      type: object
      description: >-
        Universal response envelope. Successful responses include the business
        payload as additional top-level fields alongside `correlationId` and
        `meta`. Failed responses (auth errors, validation errors) only populate
        `correlationId` and `meta`, with `meta.errorCode` and `meta.error`
        describing the failure.
      properties:
        correlationId:
          type:
            - string
            - 'null'
          description: >-
            Unique correlation ID for tracing the request through Return Helper
            systems.
        meta:
          $ref: '#/components/schemas/ApiResponseMeta'
    CreateRecallPayload:
      type: object
      properties:
        apiId:
          type: integer
          format: int32
        recallId:
          type: integer
          format: int64
        warehouseId:
          type: integer
          format: int32
        recallNumber:
          type:
            - string
            - 'null'
        recallStatusCode:
          type: string
          description: Recall status code
        warehouseRemarks:
          type:
            - string
            - 'null'
        recallInventoryList:
          type: array
          items:
            type: object
            description: '(see source: RecallInventoryPayload)'
    ApiResponseMeta:
      type: object
      description: >-
        Application-level metadata for every API response. Inspect `status` and
        `errorCode` to detect soft-error responses (validation failures arrive
        as HTTP 200 with `meta.status: 400`).
      properties:
        status:
          type: integer
          description: >-
            Application-level status code. For successful operations this
            mirrors the HTTP status (e.g. 200). For validation failures it
            reports the logical status (e.g. 400) even though the wire HTTP
            status is 200.
        data:
          type: object
          additionalProperties:
            type: string
          description: Reserved free-form metadata key/value pairs. Usually empty.
        errorCode:
          type:
            - string
            - 'null'
          description: >-
            Machine-readable error code (e.g. `VALIDATION_FAILED`). Non-null
            only when the operation failed.
        error:
          type: object
          additionalProperties: true
          description: >-
            Field-level or message-level error detail keyed by request property
            name. Empty object on success.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-rr-apikey
      description: Your API key
    ApiToken:
      type: apiKey
      in: header
      name: x-rr-apitoken
      description: Your API token — keep this private

````