Product image upload API

POST /v1/products/upload-image — upload an image to the marketplace and receive an image_id for reuse in image search.

Request body

FieldRequiredDescription
channelYes1688 | taobao
image_base64One ofBase64 image (data-URL prefix stripped). Required for Taobao.
image_url1688 onlyPublic URL; server fetches when base64 omitted

Example

POST /v1/products/upload-image
{
  "channel": "1688",
  "image_base64": "/9j/4AAQSkZJRg..."
}

Response

{
  "channel": "1688",
  "image_id": "img_1234567890",
  "request_id": "req_..."
}

See upload-image response fields.