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