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

# Get Shopify return by return request ID

Retrieves the Shopify return associated with a Return Helper `returnRequestId`.

If no matching return is found for the authenticated account, `data` is `null`.


## OpenAPI

````yaml get /api/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId
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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId:
    get:
      tags:
        - ShopifyReturn
      summary: Get Shopify return by return request ID
      operationId: ReturnUserApi_GetShopifyReturnByReturnRequestId
      parameters:
        - name: returnRequestId
          in: query
          required: false
          description: >-
            Return Helper return request identifier. Supply this identifier to
            look up the return.
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetShopifyReturnByRequestPayload'
        '401':
          description: Authentication failed.
      servers:
        - url: https://api.returnshelper.com/uat/user
          description: Sandbox — User API
components:
  schemas:
    GetShopifyReturnByRequestPayload:
      type: object
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/ShopifyReturnByRequestDetails'
            - type: 'null'
    ShopifyReturnByRequestDetails:
      type: object
      properties:
        shopifyReturnId:
          type: string
          format: uuid
        apiId:
          type: integer
          format: int32
        sellerReferenceNumber:
          type:
            - string
            - 'null'
        returnRequestId:
          type:
            - integer
            - 'null'
          format: int32
        shipmentId:
          type:
            - integer
            - 'null'
          format: int64
        returnRequestNumber:
          type:
            - string
            - 'null'
        shipmentNumber:
          type:
            - string
            - 'null'
        totalValue:
          type: number
        totalValueCurrency:
          type:
            - string
            - 'null'
        remarks:
          type:
            - string
            - 'null'
        labelRequestStatusCode:
          type:
            - string
            - 'null'
        trackingNumber:
          type:
            - string
            - 'null'
        labelUrl:
          type:
            - string
            - 'null'
        error:
          type:
            - string
            - 'null'
        warehouseId:
          type: integer
          format: int32
        shipmentServiceType:
          type:
            - string
            - 'null'
        shipmentCountryCode:
          type:
            - string
            - 'null'
        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'
        costCurrencyCode:
          type:
            - string
            - 'null'
        cost:
          type: number
        boxType:
          type:
            - string
            - 'null'
        weight:
          type: number
        weightUom:
          type:
            - string
            - 'null'
        dimension1:
          type: number
        dimension2:
          type: number
        dimension3:
          type: number
        dimensionUom:
          type:
            - string
            - 'null'
        shopifyShopId:
          type: string
          format: uuid
        shopifyOrderId:
          type:
            - string
            - 'null'
        shopifyOrderNumber:
          type:
            - string
            - 'null'
        shopifyOrderName:
          type:
            - string
            - 'null'
        shopifyReturnStatusCode:
          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

````

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