For the complete documentation index, see llms.txt. This page is also available as Markdown.

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
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