跳转到主要内容
POST
/
product
/
image
/
upload
Upload Product Image
curl --request POST \
  --url https://uat-api.clinkbill.com/api/product/image/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-Timestamp: <api-key>' \
  --form file='@example-file'
{
  "code": 200,
  "msg": "success",
  "data": {
    "url": "<string>",
    "fileName": "<string>",
    "ossId": "<string>"
  }
}

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.

授权

X-API-KEY
string
header
必填

Your secret API key obtained from the Clink dashboard (Developers section)

X-Timestamp
string
header
必填

Current timestamp in milliseconds since Unix epoch (required for request signing)

请求体

multipart/form-data

Multipart request body for uploading a product image.

file
file

Product image file. Supported extensions are jpg, jpeg, png, gif, and webp.

响应

Product image uploaded successfully

code
integer<int32>

Response status code, 200 when success

示例:

200

msg
string

Brief description of what happened, 'success' when happy case

示例:

"success"

data
object

Uploaded OSS file information returned after a successful upload.