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

# 按 Seller Reference Number 搜索 Resend

> Enterprise-only. Returns the resends whose resend shipment carries one of the supplied `sellerReferenceNumber` values.

<Warning>
  此页面由 AI 自动翻译。API 技术规格以英文呈现为标准。如有任何疑问，请参阅[英文版本](/api-reference/resend/search-resend-by-seller-reference-number)。
</Warning>

<Note>
  此为 **Enterprise 专属** 功能，仅对 Return Helper Enterprise 客户开放。未启用的账户其请求会被拒绝。如需了解更多，请联系 [enterprise-solution@returnhelper.com](mailto:enterprise-solution@returnhelper.com)。
</Note>

以您调用 [Create resend by SKU](/zh-Hans/api-reference/resend/create-resend-by-sku) 时提供的 `sellerReferenceNumber` 搜索补寄，并返回每笔匹配结果的 `resendId`。补寄相关操作仍需使用 Return Helper 的 `resendId`——本接口正是获取该值的方式，让您不必自行存储 `resendId`。值采用**完全匹配**，不支持部分匹配或通配符搜索。

<h2 id="cancel-a-resend-you-only-know-by-your-own-reference">
  只知道自有参考编号时如何取消补寄
</h2>

1. 以您的 `sellerReferenceNumber` 调用本接口。
2. 从结果中读取 `resendId` 与 `resendStatusCode`，挑选您要处理的补寄。
3. 以该 `resendId` 调用 [Cancel resend order](/zh-Hans/api-reference/resend/cancel-resend-order)。

<Note>
  `sellerReferenceNumber` **并非唯一值**。取消后重新创建补寄，会合理地产生多笔带有相同值的补寄，因此一次搜索可能返回多笔结果。请务必先检查 `resendStatusCode`，再决定要对哪个 `resendId` 执行操作。
</Note>

<h2 id="which-resends-are-searchable">
  哪些补寄可被搜索
</h2>

以 [Create resend order](/zh-Hans/api-reference/resend/create-resend-order) 创建的补寄不带 `sellerReferenceNumber`，因此永远不会出现在本接口的结果中——请改以 `resendId` 通过 [Get resend order details](/zh-Hans/api-reference/resend/get-resend-order-details) 查询。

<h2 id="matching-status-updates-to-your-own-records">
  将状态更新对应到您自己的记录
</h2>

[重寄状态更新 webhook](/zh-Hans/webhooks#resend-status-update)（`category: resend` / `action: updateResendStatus`）会在 `resendShipmentList[]` 中带上 `sellerReferenceNumber`。请订阅该事件，并在事件送达时与您自己的订单记录比对——这才是追踪补寄生命周期的建议做法。本搜索接口则适用于即时查询，例如在取消前立即查找。

<h2 id="pagination">
  分页
</h2>

此接口采用**游标式分页**。每个响应都包含 `nextCursor` 与 `previousCursor`：

* `nextCursor` 是下一页的游标；已到最后一页时为 `null`。
* `previousCursor` 是上一页的游标；在第一页时为 `null`。

若要向前翻页，将 `nextCursor` 的值作为 `cursor` 查询参数传回，并带上 `isForward=true`。在同一个分页序列中，请保持相同的 `pageSize` 与筛选条件。

<h2 id="related">
  相关
</h2>

* [按 SKU 创建 Resend](/zh-Hans/api-reference/resend/create-resend-by-sku) — `sellerReferenceNumber` 于此提供。
* [取消补寄订单](/zh-Hans/api-reference/resend/cancel-resend-order) — 以本接口查得的 `resendId` 取消。
* [Webhooks](/zh-Hans/webhooks) — 重寄状态更新事件，会一并带上 `sellerReferenceNumber`。


## OpenAPI

````yaml get /api/Resend/searchResendBySellerReferenceNumber
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/Resend/searchResendBySellerReferenceNumber:
    get:
      tags:
        - Resend
      summary: Search resend by seller reference number
      description: >-
        Enterprise-only. Returns the resends whose resend shipment carries one
        of the supplied `sellerReferenceNumber` values.
      operationId: ReturnUserApi_SearchResendBySellerReferenceNumber
      parameters:
        - name: sellerReferenceNumberList
          in: query
          required: true
          schema:
            type: string
          description: >-
            Comma-separated list of seller reference numbers to match (e.g.
            `ORDER-0001,ORDER-0002`). Required, at least one value. Each value
            must be non-empty, single-line, and 1–50 characters. The number of
            entries must not exceed 100.
        - name: pageSize
          in: query
          required: true
          schema:
            type: integer
            minimum: 1
            maximum: 1000
          description: >-
            Number of resends to return per page. Required. Minimum 1, maximum
            1000.
        - name: resendStatusCode
          in: query
          required: false
          schema:
            type: string
            enum:
              - pending
              - canceled
              - in-progress
              - completed
              - failed
              - queued
              - label-success
          description: >-
            Filter to a single resend status. Not a list. Omit to return resends
            in every status. Optional.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: >-
            Opaque, versioned cursor token. Pass the `nextCursor` (or
            `previousCursor`) from a previous response to fetch the adjacent
            page. Omit to fetch the first page. Optional.
        - name: isForward
          in: query
          required: false
          schema:
            type: boolean
          description: >-
            Pagination direction. Set `true` to page forward through results
            using the returned `nextCursor`. Defaults to `false` when omitted.
            Optional.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SearchResendBySellerReferenceNumberResponse
        '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:
    SearchResendBySellerReferenceNumberResponse:
      type: object
      description: >-
        Cursor-paginated list of resends matching the supplied seller reference
        numbers. The business payload (`nextCursor`, `previousCursor`, `data`)
        is returned as top-level fields alongside the standard `correlationId`
        and `meta` envelope.
      properties:
        nextCursor:
          type:
            - string
            - 'null'
          description: >-
            Cursor token for the next page, or `null` when there is no next
            page. Pass it back as `cursor` with `isForward=true` to page
            forward.
        previousCursor:
          type:
            - string
            - 'null'
          description: >-
            Cursor token for the previous page, or `null` when there is no
            previous page.
        data:
          type: array
          items:
            $ref: '#/components/schemas/SearchResendBySellerReferenceNumberReply'
          description: Resends for the current page
    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'
    SearchResendBySellerReferenceNumberReply:
      type: object
      properties:
        resendId:
          type: integer
          format: int64
          description: Resend identifier. Pass this to Cancel resend order.
        resendStatusCode:
          type:
            - string
            - 'null'
          description: >-
            Current resend status: `pending`, `canceled`, `in-progress`,
            `completed`, `failed`, `queued`, or `label-success`.
        description:
          type:
            - string
            - 'null'
          description: Free-text description set when the resend was created
        remarks:
          type:
            - string
            - 'null'
          description: Merchant remarks/notes set when the resend was created
        resendShipmentList:
          type: array
          items:
            $ref: '#/components/schemas/ResendShipmentPayload'
          description: Resend shipments belonging to this resend
    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.
    ResendShipmentPayload:
      type: object
      properties:
        resendShipmentId:
          type: integer
          format: int64
        resendId:
          type: integer
          format: int64
        warehouseId:
          type: integer
          format: int32
        resendShipmentNumber:
          type:
            - string
            - 'null'
        sellerReferenceNumber:
          type:
            - string
            - 'null'
          description: >-
            The reference you supplied when creating the resend through Create
            resend by SKU. Not unique — cancelling and re-creating a resend
            produces more than one resend carrying the same value. `null` for
            resends created any other way.
        shipmentServiceType:
          type:
            - string
            - 'null'
        shipmentCountryCode:
          type:
            - string
            - 'null'
          description: Lowercase ISO3
        shipmentName:
          type:
            - string
            - 'null'
        shipmentPhone:
          type:
            - string
            - 'null'
        shipmentFax:
          type:
            - string
            - 'null'
        shipmentEmail:
          type:
            - string
            - 'null'
        shipmentStreet1:
          type:
            - string
            - 'null'
        shipmentStreet2:
          type:
            - string
            - 'null'
        shipmentStreet3:
          type:
            - string
            - 'null'
        shipmentState:
          type:
            - string
            - 'null'
        shipmentCity:
          type:
            - string
            - 'null'
        shipmentPostalCode:
          type:
            - string
            - 'null'
        trackingNumber:
          type:
            - string
            - 'null'
        error:
          type:
            - string
            - 'null'
  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

````