Cancel free tickets

Cancel a whole free order or chosen free tickets.

POST https://cotlet.dev/api/v1/billetto/orders/{order_id}/free-tickets/cancel

write Confirm

Does what Cancel all tickets and Cancel selected do on the order page: it cancels free tickets only, because paid tickets go through refund_tickets. Omit ticket_ids to cancel the whole order. Billetto's help article does not say whether the guest gets an email, so the agent tells the guest itself when you ask for that. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: cancel_free_tickets
NameTypeDescription
order_id string required string Order ID from list_orders.
ticket_ids array array Ticket IDs from get_order. Omit to cancel the whole order.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/billetto/orders/order_8c41d2/free-tickets/cancel \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("billetto", "cancel_free_tickets", {"order_id":"order_8c41d2"})
Node.js
const result = await cotlet.call('billetto', 'cancel_free_tickets', {"order_id":"order_8c41d2"});
CLI
cotlet call billetto cancel_free_tickets --data '{"order_id":"order_8c41d2"}'

Example response

JSON

{
  "order_id": "9041660",
  "status": "cancelled",
  "cancelled_tickets": [
    "48377102"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.