Place a ticket order
createOrderPlace a ticket order. The buyer pays the organizer DIRECTLY (Interac e-Transfer, Zelle, or cash) — EventPass never touches the money. Returns the order reference code and payment instructions to relay to the buyer. Free ($0) orders confirm immediately. Pass idempotency_key (a unique key per order, at least 16 characters — e.g. a UUID) to make retries safe: a retry with the same key and the same buyer, items, and contact returns the original order instead of creating a duplicate. Pass promoCode for a discount code from the event — it is validated server-side, and an invalid, expired, or used-up code rejects the order.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"eventId": "<eventId>",
"items": "<items>",
"buyerName": "<buyerName>",
"payMethod": "<payMethod>"
},
"name": "createOrder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| notes | No | ||
| eventId | Yes | Event ID from listEvents | |
| buyerName | Yes | Buyer's full name | |
| payMethod | Yes | How the buyer will pay the organizer directly | |
| promoCode | No | Promo / discount code for this event (optional). Validated server-side; an invalid, expired, or used-up code rejects the order. | |
| buyerEmail | No | ||
| buyerPhone | No | ||
| idempotency_key | No | Idempotency key: a unique key per order, at least 16 characters (e.g. a UUID). A retry with the same key returns the original order — no duplicate is created. The key is bound to this buyer, these items, and this contact: reusing it for a different order is refused. Optional; without it each call creates a new order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| order | No | ||
| replayed | No | ||
| event_currency | No |