> ## Documentation Index
> Fetch the complete documentation index at: https://openapidocs.flexforwardship.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ラベル ID または顧客注文番号でラベル URL を取得する

> 以前に作成したラベルのラベルドキュメント URL を取得します。ラベル UUID、customerOrderNumber、またはカンマ区切りの識別子をパスパラメータとして指定できます。一括リクエストでは、見つからない、または失敗したラベルは省略されます。



## OpenAPI

````yaml /flex-forward-ja.yaml get /labels/{id}
openapi: 3.1.0
info:
  title: Flex Forward Shipping API
  description: >-
    > **翻訳に関する注記:** この API
    リファレンスは英語から翻訳されています。[英語版](/api-reference/labels/create-label)が正式な情報源です。翻訳内容に不一致がある場合は、英語版を参照してください。


    Flex Forward は、複数の配送業者にわたる配送ラベルの作成、ラベルドキュメントの取得、および荷物追跡のための統一 API を提供します。
  version: 1.0.0
servers:
  - url: https://api.flexforwardship.com
    description: Production
  - url: https://api-staging.flexforwardship.com
    description: Staging
security: []
tags:
  - name: CreateLabels
    description: 配送ラベルを作成する。
  - name: Labels
    description: 配送ラベルとラベルドキュメントを取得する。
  - name: Tracking
    description: 出荷状況と追跡チェックポイント。
  - name: Products
    description: 利用可能な配送プロダクト一覧。
paths:
  /labels/{id}:
    get:
      tags:
        - Labels
      summary: ラベル ID または顧客注文番号でラベル URL を取得する
      description: >-
        以前に作成したラベルのラベルドキュメント URL を取得します。ラベル
        UUID、customerOrderNumber、またはカンマ区切りの識別子をパスパラメータとして指定できます。一括リクエストでは、見つからない、または失敗したラベルは省略されます。
      operationId: getLabel
      parameters:
        - schema:
            minLength: 1
            type: string
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
          in: path
          name: id
          required: true
          description: ラベル UUID、顧客注文番号、またはカンマ区切りの識別子。
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/GetLabelResponse'
                  - $ref: '#/components/schemas/GetLabelsResponse'
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: ラベルが作成されたが配送業者への送信に失敗した場合に返されます。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LabelFailedResponse'
        '502':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
        - apiKey: []
          apiToken: []
components:
  schemas:
    GetLabelResponse:
      additionalProperties: false
      description: ラベルドキュメント取得結果。
      type: object
      required:
        - id
        - customerOrderNumber
        - url
        - labelFormat
      properties:
        id:
          format: uuid
          description: ラベル識別子。
          type: string
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
        customerOrderNumber:
          minLength: 1
          description: このラベルに関連付けられた顧客注文番号。
          type: string
          example: N2026-05-13-TEST-01
        url:
          format: uri
          description: ラベルドキュメントのダウンロード URL。
          type: string
          example: https://label-cdn.yunexpress.cn/labels/YT2503010001.pdf
        labelFormat:
          minLength: 1
          description: ドキュメント形式（pdf または png）。
          type: string
          example: pdf
    GetLabelsResponse:
      additionalProperties: false
      description: 一括ラベルドキュメント取得結果。
      type: object
      required:
        - labels
      properties:
        labels:
          description: 正常に解決されたラベルドキュメント URL。見つからない、または失敗したラベルは省略されます。
          type: array
          items:
            additionalProperties: false
            type: object
            required:
              - id
              - customerOrderNumber
              - url
              - labelFormat
            properties:
              id:
                format: uuid
                description: ラベル識別子。
                type: string
                example: f47ac10b-58cc-4372-a567-0e02b2c3d479
              customerOrderNumber:
                minLength: 1
                description: このラベルに関連付けられた顧客注文番号。
                type: string
                example: N2026-05-13-TEST-01
              url:
                format: uri
                description: ラベルドキュメントのダウンロード URL。
                type: string
                example: https://label-cdn.yunexpress.cn/labels/YT2503010001.pdf
              labelFormat:
                minLength: 1
                description: ドキュメント形式（pdf または png）。
                type: string
                example: pdf
    ErrorResponse:
      additionalProperties: false
      type: object
      required:
        - error
      properties:
        error:
          description: 人間が読めるエラーメッセージ。
          type: string
          example: Shipping account not found
        code:
          description: 機械可読なエラーコード。
          type: string
          example: COURIER_ERROR
    LabelFailedResponse:
      additionalProperties: false
      description: ラベルが作成されたが配送業者への送信に失敗した場合に返されます。
      type: object
      required:
        - error
      properties:
        error:
          description: エラー概要。
          type: string
          enum:
            - Label creation failed
        errorCode:
          description: 配送業者固有のエラーコード。
          type: string
          example: COURIER_ERROR
        errorMessage:
          description: 人間が読めるエラーメッセージ。
          type: string
          example: Address validation failed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKey:
      type: apiKey
      in: header
      name: x-rr-apikey
    apiToken:
      type: apiKey
      in: header
      name: x-rr-apitoken

````