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

````