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

# 上传产品图片

> Upload a product image as multipart form data. The file must be an image and must not exceed 5 MB.



## OpenAPI

````yaml POST /product/image/upload
openapi: 3.1.0
info:
  title: Clink API
  description: >-
    Official API documentation for Clink's payment processing platform. This API
    enables merchants to create and manage payment sessions, handle
    subscriptions, and process transactions.
  version: 1.0.0
servers:
  - url: https://uat-api.clinkbill.com/api/
security:
  - ApiKeyAuth: []
paths:
  /product/image/upload:
    post:
      summary: Upload Product Image
      description: >-
        Upload a product image as multipart form data. The file must be an image
        and must not exceed 5 MB.
      operationId: uploadProductImage
      parameters:
        - $ref: '#/components/parameters/TimestampHeader'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ProductImageUploadRequest'
      responses:
        '200':
          description: Product image uploaded successfully
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ROssUploadApiVo'
            application/json:
              schema:
                $ref: '#/components/schemas/ROssUploadApiVo'
        '401':
          description: Unauthorized
          content:
            '*/*':
              schema:
                type: string
components:
  parameters:
    TimestampHeader:
      name: X-Timestamp
      in: header
      required: true
      description: >-
        Current timestamp in milliseconds since Unix epoch (required for request
        signing)
      schema:
        type: string
        example: '1783513683000'
  schemas:
    ProductImageUploadRequest:
      type: object
      description: Multipart request body for uploading a product image.
      properties:
        file:
          type: string
          format: binary
          description: >-
            Product image file. Supported extensions are jpg, jpeg, png, gif,
            and webp.
    ROssUploadApiVo:
      type: object
      properties:
        code:
          type: integer
          description: Response status code, 200 when success
          format: int32
          example: 200
        msg:
          type: string
          example: success
          description: Brief description of what happened, 'success' when happy case
        data:
          $ref: '#/components/schemas/OssUploadApiVo'
    OssUploadApiVo:
      type: object
      description: Uploaded OSS file information returned after a successful upload.
      properties:
        url:
          type: string
          description: Public URL of the uploaded file.
        fileName:
          type: string
          description: Original or stored file name.
        ossId:
          type: string
          description: OSS object identifier used when referencing the uploaded file.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        Your secret API key obtained from the Clink dashboard (Developers
        section)

````