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

# Fetch the courier-hosted label URL by label id or customer order number

> Retrieves label document URLs for previously created labels. Accepts a label UUID, customerOrderNumber, or comma-separated identifiers as the path parameter. Batch requests omit missing or failed labels.



## OpenAPI

````yaml /flex-forward.yaml get /labels/{id}
openapi: 3.1.0
info:
  title: Flex Forward Shipping API
  description: >-
    Flex Forward provides a unified API for creating shipping labels, retrieving
    label documents, and tracking shipments across multiple courier services.
  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: Create shipping labels.
  - name: Labels
    description: Retrieve shipping labels and label documents.
  - name: Tracking
    description: Track shipment status and checkpoints.
  - name: Products
    description: List available shipping products.
paths:
  /labels/{id}:
    get:
      tags:
        - Labels
      summary: Fetch the courier-hosted label URL by label id or customer order number
      description: >-
        Retrieves label document URLs for previously created labels. Accepts a
        label UUID, customerOrderNumber, or comma-separated identifiers as the
        path parameter. Batch requests omit missing or failed labels.
      operationId: getLabel
      parameters:
        - schema:
            minLength: 1
            type: string
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
          in: path
          name: id
          required: true
          description: Label UUID, customer order number, or comma-separated identifiers.
      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: Returned when the label was created but courier submission failed.
          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: Label document retrieval result.
      type: object
      required:
        - id
        - customerOrderNumber
        - url
        - labelFormat
      properties:
        id:
          format: uuid
          description: Label identifier.
          type: string
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
        customerOrderNumber:
          minLength: 1
          description: Customer order number associated with this label.
          type: string
          example: N2026-05-13-TEST-01
        url:
          format: uri
          description: URL to download the label document.
          type: string
          example: https://label-cdn.yunexpress.cn/labels/YT2503010001.pdf
        labelFormat:
          minLength: 1
          description: Document format (pdf or png).
          type: string
          example: pdf
    GetLabelsResponse:
      additionalProperties: false
      description: Batch label document retrieval result.
      type: object
      required:
        - labels
      properties:
        labels:
          description: >-
            Successfully resolved label document URLs. Missing or failed labels
            are omitted.
          type: array
          items:
            additionalProperties: false
            type: object
            required:
              - id
              - customerOrderNumber
              - url
              - labelFormat
            properties:
              id:
                format: uuid
                description: Label identifier.
                type: string
                example: f47ac10b-58cc-4372-a567-0e02b2c3d479
              customerOrderNumber:
                minLength: 1
                description: Customer order number associated with this label.
                type: string
                example: N2026-05-13-TEST-01
              url:
                format: uri
                description: URL to download the label document.
                type: string
                example: https://label-cdn.yunexpress.cn/labels/YT2503010001.pdf
              labelFormat:
                minLength: 1
                description: Document format (pdf or png).
                type: string
                example: pdf
    ErrorResponse:
      additionalProperties: false
      type: object
      required:
        - error
      properties:
        error:
          description: Human-readable error message.
          type: string
          example: Shipping account not found
        code:
          description: Machine-readable error code.
          type: string
          example: COURIER_ERROR
    LabelFailedResponse:
      additionalProperties: false
      description: Returned when the label was created but courier submission failed.
      type: object
      required:
        - error
      properties:
        error:
          description: Error summary.
          type: string
          enum:
            - Label creation failed
        errorCode:
          description: Courier-specific error code.
          type: string
          example: COURIER_ERROR
        errorMessage:
          description: Human-readable error message.
          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

````