Products
Create Product
Changed onCreates a product.
Only name is required. To give the product a default price, first create the price, then set defaultPriceId with Update Product.
Slug:
A slug is unique in your account. A slug another product already has is rejected with 409.
post/products
Request
- Base URLhttps://api.monei.com/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Gold plan",
"description": "Unlimited access to every course",
"images": [
"https://example.com/images/gold-plan.png"
],
"slug": "gold-plan",
"unitLabel": "seat",
"descriptor": "MONEI GOLD",
"active": true,
"metadata": {
"systemId": "12345"
}
}Response
A product object
Example response
{
"id": "8f2c6d1a-4b3e-4f7a-9d2c-1e5b7a9c3f60",
"name": "Gold plan",
"description": "Unlimited access to every course",
"images": [
"https://example.com/images/gold-plan.png"
],
"slug": "gold-plan",
"unitLabel": "seat",
"descriptor": "MONEI GOLD",
"defaultPriceId": "3c5a1f8e-2b7d-4e9a-9c41-7d2e6b0f5a13",
"active": true,
"metadata": {
"systemId": "12345"
},
"createdAt": 1636366897,
"updatedAt": 1636366897
}Changes
- info
endpoint added
- info