> ## 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)。

透過一次請求取得最多 500 個 Return Inventory RMA 關聯的原始圖片。每張圖片以完整的 HTTPS URL 回傳。

## 請求

在 `rmaList` 中提供 1 至 500 個 RMA 代碼。此上限依移除重複項目之前提交的筆數計算。

比對不區分大小寫，且必須完全相符。重複的代碼（包括大小寫不同的代碼）只會回傳一次。相符的 RMA 以儲存時的大小寫，依其在請求中首次出現的順序回傳。

## 回應

* `data.rmaImageList` 包含已驗證帳戶中相符的 Return Inventory RMA。
* `imageUrlList` 包含與相符 RMA 關聯的有效原始圖片 URL。如果相符的 RMA 沒有符合條件的圖片，其 `imageUrlList` 為空。
* 不存在的 RMA 與已驗證帳戶無法存取的 RMA 會被省略。如果沒有相符項目，`rmaImageList` 為空。
* 結果不分頁，在一個回應中回傳。API 不會透過相關的父層或根 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.