curl --request POST \
--url https://api.trata.ai/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"active": true,
"defaultPrice": 123,
"currency": "AED",
"description": "High-quality gardening tools",
"name": "Garden Tool Set",
"shippable": false,
"features": [
"<string>"
],
"scheduleAppointment": false,
"props": "stainless steel",
"tags": "gardening",
"status": "active",
"agentIds": [
"<string>"
]
}'
{
"id": "pro.1731301754.OZSMSU1S",
"orgId": "org.1726902940.GZChqlpU",
"active": true,
"defaultPrice": 1299,
"currency": "USD",
"description": "Spicy Korean Chicken Wings",
"name": "Spicy Korean Chicken Wings",
"shippable": true,
"features": [],
"scheduleAppointment": false,
"props": {},
"status": "active",
"createdBy": "trata-system",
"createdAt": "2024-11-11T05:09:14.979287",
"updatedBy": "trata-system",
"updatedAt": "2024-11-11T05:09:14.979289"
}
Create a New Product
curl --request POST \
--url https://api.trata.ai/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"active": true,
"defaultPrice": 123,
"currency": "AED",
"description": "High-quality gardening tools",
"name": "Garden Tool Set",
"shippable": false,
"features": [
"<string>"
],
"scheduleAppointment": false,
"props": "stainless steel",
"tags": "gardening",
"status": "active",
"agentIds": [
"<string>"
]
}'
{
"id": "pro.1731301754.OZSMSU1S",
"orgId": "org.1726902940.GZChqlpU",
"active": true,
"defaultPrice": 1299,
"currency": "USD",
"description": "Spicy Korean Chicken Wings",
"name": "Spicy Korean Chicken Wings",
"shippable": true,
"features": [],
"scheduleAppointment": false,
"props": {},
"status": "active",
"createdBy": "trata-system",
"createdAt": "2024-11-11T05:09:14.979287",
"updatedBy": "trata-system",
"updatedAt": "2024-11-11T05:09:14.979289"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Product created successfully
Product and services offered by the business