Skip to main content
POST
Create Product

授权

X-API-KEY
string
header
必填

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

请求头

X-Timestamp
string
必填

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

示例:

"1783513683000"

请求体

application/json

Parameters required to create a product by API

name
string
必填

Default product name

image
string
必填

Uploaded product image OSS ID

taxCategory
enum<string>
必填

Product tax category

可用选项:
digital_goods_or_service,
ebook,
software_service
localizedNames
object

Localized product names. Key is a language or locale code, value is the localized product name.

description
string

Product description

defaultPrice
string

Default price ID. Usually omitted when creating a new product with priceList.

priceList
object[]

Prices to create with this product

响应

Product created successfully

Body of the response message

code
integer<int32>

Response status code, 200 when success

msg
string

Brief description of what happened, success when happy case

data
object