---
title: "Update the amount of a ticket"
method: POST
path: "/api/public/ticket/amount"
tags: ["Ticket"]
---

# Update the amount of a ticket

`POST /api/public/ticket/amount`

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.

## Headers

- `x-api-key` string, required

## Request body

- object
  - `ticket_id` string, uuid
  - `ai_contact_id` string, uuid
  - `contact_number` string
  - `amount` number, required
  - `currency` string
  - `allow_closed_ticket` boolean

## Response `200`

Ticket amount updated successfully

## Other responses

- `400` — Invalid request - provide ticket_id, ai_contact_id, or contact_number
- `404` — Ticket not found

---

[API](https://skmtc.net/vambe/apis/vambe-ai-api.md) · [All operations](https://skmtc.net/vambe/apis/vambe-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vambe/vambe-ai-api/revisions/e206709d4be5/schema)
