API
Products
List, create, and update products from the Developer API.
List
GET /api/dev/v1/products{
"data": [
{
"uniqid": "demo_pro-license",
"title": "Pro License",
"price": "29.00",
"currency": "USD",
"type": "LICENSE",
"stock": -1
}
]
}Get one
GET /api/dev/v1/products/{id}id can be the product uniqid or internal id.
Create
POST /api/dev/v1/products
Content-Type: application/json
{
"title": "Pro License",
"price": 29,
"type": "LICENSE",
"currency": "USD"
}Update
PATCH /api/dev/v1/products/{id}Custom fields, serials, variants, and delivery settings are on the product payload. The dashboard product editor writes the same resource.
Node
const product = await client.products.get("demo_pro-license");
await client.products.update(product.data.uniqid, { price: 39 });