> ## 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.

# RMA 画像を取得

> [!WARNING]
>
> このページはAIによって自動翻訳されています。API技術仕様は英語が正式です。不明点がある場合は[英語版](https://apidocs.returnhelper.com/api-reference/returninventory/get-rma-images.md)を参照してください。

1 回のリクエストで、最大 500 件の Return Inventory RMA に関連する元画像を取得します。各画像は完全な HTTPS URL で返されます。

## リクエスト

`rmaList` に 1〜500 件の RMA コードを指定します。この上限は重複を除去する前の送信件数に適用されます。

照合では大文字と小文字を区別せず、完全一致を使用します。大文字と小文字の違いを含む重複コードは 1 回だけ返されます。一致した RMA は保存時の大文字・小文字表記で、リクエストに最初に現れた順に返されます。

## レスポンス

* `data.rmaImageList` には、認証されたアカウントの Return Inventory に一致する RMA が含まれます。
* `imageUrlList` には、一致した RMA に関連する有効な元画像の URL が含まれます。利用可能な画像がない一致 RMA の `imageUrlList` は空になります。
* 存在しない RMA と、認証されたアカウントからアクセスできない RMA は省略されます。一致する RMA がない場合、`rmaImageList` は空になります。
* 結果はページネーションなしで 1 つのレスポンスとして返されます。関連する親 RMA またはルート RMA をたどって画像を検索することはありません。

## レスポンス例

```json theme={null}
{
  "correlationId": "example-trace-id",
  "meta": {
    "status": 200,
    "data": {},
    "errorCode": null,
    "error": {}
  },
  "data": {
    "rmaImageList": [
      {
        "rma": "RMA-1001",
        "imageUrlList": ["https://images.example.com/returns/front.jpg"]
      },
      {
        "rma": "RMA-1002",
        "imageUrlList": []
      }
    ]
  }
}
```


## OpenAPI

````yaml post /api/ReturnInventory/getRmaImages
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/ReturnInventory/getRmaImages:
    post:
      tags:
        - ReturnInventory
      summary: Get RMA images
      operationId: ReturnUserApi_GetRmaImages
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetRmaImagesRequest'
            example:
              rmaList:
                - RMA-1001
                - RMA-1002
                - RMA-MISSING
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRmaImagesResponse'
              example:
                data:
                  rmaImageList:
                    - rma: RMA-1001
                      imageUrlList:
                        - https://images.example.com/returns/front.jpg
                        - https://images.example.com/returns/back.jpg
                    - rma: RMA-1002
                      imageUrlList: []
        '401':
          description: Authentication failed.
      security:
        - ApiKey: []
          ApiToken: []
      servers:
        - url: https://api.returnshelper.com/uat/user
          description: Sandbox — User API
components:
  schemas:
    GetRmaImagesRequest:
      type: object
      required:
        - rmaList
      properties:
        rmaList:
          type: array
          minItems: 1
          maxItems: 500
          description: >-
            RMA codes to look up. The 500-item limit applies before duplicates
            are removed.
          items:
            type: string
            minLength: 1
            maxLength: 47
            pattern: ^[A-Za-z0-9_-]{1,47}$
    GetRmaImagesResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/GetRmaImagesReply'
    GetRmaImagesReply:
      type: object
      properties:
        rmaImageList:
          type: array
          description: Matching RMAs in first-requested order.
          items:
            $ref: '#/components/schemas/RmaImageReply'
    RmaImageReply:
      type: object
      properties:
        rma:
          type: string
          description: Matched RMA in its stored capitalization.
        imageUrlList:
          type: array
          description: >-
            Full HTTPS URLs of available original images. An empty array means
            the RMA matched but has no eligible images.
          items:
            type: string
            format: uri
  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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.