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

# 取得物流業者的配送產品列表

> 返回指定物流業者的可用配送產品列表。建立標籤時請使用返回的產品代碼。



## OpenAPI

````yaml /flex-forward-zh-Hant.yaml get /products
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:
  /products:
    get:
      tags:
        - Products
      summary: 取得物流業者的配送產品列表
      description: 返回指定物流業者的可用配送產品列表。建立標籤時請使用返回的產品代碼。
      operationId: listProducts
      parameters:
        - schema:
            minLength: 1
            type: string
          in: query
          name: courier
          required: true
        - schema:
            minLength: 1
            type: string
          in: query
          name: shipperAccountId
          required: false
        - schema:
            minLength: 2
            maxLength: 10
            type: string
          in: query
          name: locale
          required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductsListResponse'
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationErrorResponse'
                  - $ref: '#/components/schemas/ErrorResponse'
        '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'
      security:
        - bearerAuth: []
        - apiKey: []
          apiToken: []
components:
  schemas:
    ProductsListResponse:
      additionalProperties: false
      type: object
      required:
        - products
      properties:
        products:
          type: array
          items:
            additionalProperties: false
            type: object
            required:
              - code
              - name
            properties:
              code:
                type: string
              name:
                type: string
    ValidationErrorResponse:
      additionalProperties: false
      description: 當請求本文未通過結構描述驗證時返回。
      type: object
      required:
        - error
        - details
      properties:
        error:
          description: 錯誤摘要訊息。
          type: string
          enum:
            - Validation failed
        details:
          description: 欄位層級驗證錯誤清單。
          type: array
          items:
            additionalProperties: false
            type: object
            required:
              - field
              - message
            properties:
              field:
                description: 以點分隔的無效欄位路徑。
                type: string
                example: service.productCode
              message:
                description: 人類可讀的驗證訊息。
                type: string
                example: service.productCode is required
    ErrorResponse:
      additionalProperties: false
      type: object
      required:
        - error
      properties:
        error:
          description: 人類可讀的錯誤訊息。
          type: string
          example: Shipping account not found
        code:
          description: 機器可讀的錯誤代碼。
          type: string
          example: COURIER_ERROR
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKey:
      type: apiKey
      in: header
      name: x-rr-apikey
    apiToken:
      type: apiKey
      in: header
      name: x-rr-apitoken

````