Add a product to a ticket
Adds a product to a ticket and lowers the product's stock by the quantity.
post
Authorizations
api_keystringRequired
Your business's Cekat API key, from Settings → Developers & API in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans.
Body
product_idstring · uuidRequired
ticket_idstring · uuidRequired
quantityinteger · min: 1Required
adjusted_pricenumberRequired
The price for this ticket.
Responses
201
Product added.
application/json
messagestringOptional
400
A field is missing or invalid, or the ticket belongs to another business.
application/json
401
The API key is missing or invalid.
application/json
429
Rate limit exceeded. Wait and retry.
application/json
post/api/tickets/products
POST /api/tickets/products HTTP/1.1
Host: api.cekat.ai
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 141
{
"product_id": "8f7e6d5c-4b3a-4291-8e7d-6c5b4a392817",
"ticket_id": "9d0e1f2a-3b4c-4d5e-6f7a-8b9c0d1e2f3a",
"quantity": 1,
"adjusted_price": 150000
}{
"message": "text",
"data": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}Last updated