Create product
POST/products
Create product.
Authorization Action:
pay:products:create
Request
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
Unique identifier for the object.
created numberrequired
Time at which the object was created. Measured in seconds since the Unix epoch.
name stringrequired
The product's name, meant to be displayable to the customer.
active boolean
description string
The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
images string[]
A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
metadata object
Set of key-value pairs that you can attach to an object.
type string
Possible values: [service
]
Default value: service
The type of the product.
url string
A URL of a publicly-accessible webpage for this product.
{
"id": "string",
"created": 0,
"name": "string",
"active": true,
"description": "string",
"images": [
"string"
],
"metadata": {},
"type": "service",
"url": "string"
}
Loading...