v1

latestOpenAPI 3.0.02026-07-2612645160.3 KB
Ticket

Update the amount of a ticket

Updates the amount of the active ticket, or the latest closed ticket if allow_closed_ticket is true. Provide ticket_id, ai_contact_id, or contact_number to identify the ticket. currency is required for price-source tickets and ignored for metadata-source tickets. For email contacts always provide ticket_id: their tickets are per-thread, so resolution by ai_contact_id or contact_number may return no ticket or one from a different thread.

post/api/public/ticket/amount

Headers

x-api-keystring required

API key needed to authorize the request

Request body

ticket_idstring uuid
ai_contact_idstring uuid
contact_numberstring
amountnumber required
currencystring
allow_closed_ticketboolean

Example request

{
  "contact_number": "+56912345678",
  "amount": 150000,
  "currency": "CLP"
}

Response

Ticket amount updated successfully