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

# Shopify Return を取得

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

`shopifyReturnId` を使用して Shopify Return を取得します。

認証されたアカウントで該当する返品が見つからない場合、API は not-found エラーを返します。


## OpenAPI

````yaml get /api/shopify/ShopifyReturn/getShopifyReturn
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/getShopifyReturn:
    get:
      tags:
        - ShopifyReturn
      summary: Get Shopify return details
      operationId: ReturnUserApi_GetShopifyReturn
      parameters:
        - name: shopifyReturnId
          in: query
          required: false
          description: >-
            Shopify return identifier. Supply this identifier to look up the
            return.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetShopifyReturnPayload'
        '401':
          description: Authentication failed.
      servers:
        - url: https://api.returnshelper.com/uat/user
          description: Sandbox — User API
components:
  schemas:
    GetShopifyReturnPayload:
      type: object
      properties:
        shopifyReturn:
          $ref: '#/components/schemas/ShopifyReturnDetails'
        returnShipmentCustomField:
          anyOf:
            - $ref: '#/components/schemas/ShopifyReturnShipmentCustomField'
            - type: 'null'
        shopifyReturnLineItemList:
          type: array
          items:
            $ref: '#/components/schemas/ShopifyReturnLineItem'
    ShopifyReturnDetails:
      type: object
      properties:
        shopifyReturnId:
          type:
            - string
            - 'null'
          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'
    ShopifyReturnShipmentCustomField:
      type: object
      properties:
        shipmentId:
          type:
            - string
            - 'null'
        customFieldType:
          type:
            - string
            - 'null'
        customFieldMap:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
    ShopifyReturnLineItem:
      type: object
      properties:
        shopifyReturnLineItemId:
          type:
            - string
            - 'null'
          format: uuid
        shopifyReturnId:
          type:
            - string
            - 'null'
          format: uuid
        apiId:
          type: integer
          format: int32
        sellerReferenceNumber:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        quantity:
          type: integer
          format: int32
        sku:
          type:
            - string
            - 'null'
        weight:
          type: number
        weightUom:
          type:
            - string
            - 'null'
        value:
          type: number
        valueCurrencyCode:
          type:
            - string
            - 'null'
        returnReasonCode:
          type:
            - string
            - 'null'
        returnReason:
          type:
            - string
            - 'null'
        shopifyProductId:
          type: integer
          format: int64
        buyerNotes:
          type:
            - string
            - 'null'
        customFieldMap:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
        isDeclined:
          type: boolean
        declinedOn:
          type:
            - string
            - 'null'
          format: date-time
        shopifyReturnLineItemImageList:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/ShopifyReturnLineItemImage'
    ShopifyReturnLineItemImage:
      type: object
      properties:
        shopifyReturnLineItemImageId:
          type: string
          format: uuid
        shopifyReturnLineItemId:
          type: string
          format: uuid
        shopifyLineItemImageUrl:
          type:
            - string
            - 'null'
        fileName:
          type:
            - string
            - 'null'
        fileExt:
          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.