External sites and apps can list current TicketPulse events with GET https://ticketpulse.tech/api/v1/events and fetch one event with GET https://ticketpulse.tech/api/v1/events/{idOrSlug}. No API key is required. Browser requests from any origin are allowed. The list returns published and sold-out events whose end time (or start time when no end time is set) has not passed, ordered by start time and ID. Link visitors to each event's url to buy tickets on TicketPulse. A machine-readable OpenAPI 3.1 description is at GET /api/v1/openapi.json.
Query parameters:
limit: events per page, 1–100 (default 20).page: 1–10000 (default 1).cityandcategory: optional case-insensitive substring filters, at most 100 characters each.q: optional case-insensitive substring search over title, venue and city, at most 100 characters.fromandto: optional date range. Each is an ISO 8601 datetime withZor an offset (for example2026-12-01T00:00:00+02:00) or a plainYYYY-MM-DDdate, which means the start of that day (from) or the end of that day (to) in Africa/Harare. An event matches when it overlaps the range: it ends (or, with no end time, starts) on or afterfromand starts on or beforeto.fromdefaults to now and cannot go earlier than now (earlier values are treated as now), so the list is always upcoming-only.toearlier thanfromreturns 400.includeSoldOut:true(default) orfalse. Withfalse, events whose status issold_outare left out.include:ticketTypesembeds each event'sticketTypes(see below). Without it, the list omits them to stay small.ref: your partner id, see Partner tracking.
Example: GET /api/v1/events?city=Harare&limit=10&page=1
{
"events": [{
"id": "event-uuid",
"slug": "example-event",
"title": "Example event",
"description": "Event description",
"category": "Music",
"venue": "Example venue",
"city": "Harare",
"country": "Zimbabwe",
"address": null,
"startsAt": "2026-12-01T18:00:00.000Z",
"endsAt": null,
"updatedAt": "2026-11-20T09:30:00.000Z",
"timezone": "Africa/Harare",
"coverImage": null,
"tags": [],
"status": "published",
"availability": "on_sale",
"ticketsAvailable": true,
"soldOut": false,
"currency": "USD",
"url": "https://ticketpulse.tech/events/example-event?utm_source=ticketpulse_api&utm_medium=partner",
"lowestPrice": { "price": 10, "currency": "USD" },
"fees": { "included": false, "buyerFeePercent": 3 }
}],
"pagination": { "page": 1, "limit": 10, "hasMore": false, "nextPage": null }
}Dates (startsAt, endsAt, updatedAt) are UTC ISO 8601 instants; the event-local timezone is Africa/Harare (see timezone). url already carries utm_source=ticketpulse_api&utm_medium=partner parameters (or the partner parameters when you send ref). Prices and availability can change before checkout.
Status and availability#
status:published,sold_out,cancelledorcompleted. The list only containspublishedandsold_out;cancelledandcompletedappear on the single-event endpoint so you can retire stale listings.ticketsAvailable(boolean):truewhenavailabilityison_sale, that is, some public ticket type can be bought right now.soldOut(boolean):truewhenavailabilityissold_out.currency: the currency oflowestPrice, otherwise of the first public ticket type, ornullwhen the event has no public ticket types. Exact stock numbers are never exposed.availability, computed at request time from the event and its public ticket types:cancelled;ended(completed or already past);sold_out;on_sale(some ticket type can be bought now);not_yet_on_sale(stock remains but sales have not opened);sales_ended(stock remains but sales closed);unavailable(no public ticket types). When no ticket type can be bought and none has stock left, the event issold_out.
Prices and fees#
lowestPrice: the lowest currently purchasable price for a single ticket among non-guest ticket types, as{ price, currency }, ornull. Early bird prices count while active. Bundle ticket types are ignored: checkout only sells them in whole multiples of the bundle size (for example 5 tickets for a fixed price), so their per-ticket share is not a price a buyer can pay for one ticket. An event whose only ticket types are bundles therefore haslowestPrice: null; readticketTypes[].bundlefor those. Prices are face prices and exclude buyer fees. Currencies are not converted; ticket types of different currencies are compared by raw number, so checkcurrency.fees:{ included, buyerFeePercent }.included: falsemeans listed prices do not contain the buyer fee.buyerFeePercent(currently 3) is the gateway fee TicketPulse web checkout adds on top of the ticket subtotal. Payment-method charges may apply and the final total is always shown at checkout. The organiser commission is paid by the organiser and is not added to the buyer's price.
Ticket types#
ticketTypes is returned on the single-event endpoint and, on the list, when include=ticketTypes. Guest-only ticket types are never listed, and exact stock numbers are never exposed.
"ticketTypes": [{
"id": "tier-uuid", "name": "General", "description": null,
"price": 8, "currency": "USD", "availability": "on_sale", "available": true,
"salesStart": null, "salesEnd": "2026-12-01T16:00:00.000Z", "maxPerOrder": 10,
"earlyBird": { "price": 8, "until": "2026-11-30T22:00:00.000Z" },
"bundle": null
}]price is the current single-ticket price (the early bird price while it is active). earlyBird is non-null only while active. bundle is { size, price } when the ticket type is only sold in whole bundles of size at price per bundle (early bird does not apply). Ticket type availability is on_sale, sold_out, not_yet_on_sale or sales_ended; available is true only for on_sale.
Single event#
GET /api/v1/events/{idOrSlug} looks an event up by slug, or by id when the value is a UUID, and returns { "event": { ...same fields as a list item, "ticketTypes": [...] } }. It returns events with status published, sold_out, cancelled or completed; drafts, events awaiting review and unknown events return 404 { "error": "Event not found", "code": "not_found" }. It shares the list's rate limit (one bucket per client IP), caching, ETag and CORS behaviour, and accepts ref.
Partner tracking#
Send ref=<your-partner-id> on list and single-event requests (2-40 characters: lowercase letters, digits and hyphens, starting with a letter or digit; anything else returns 400 invalid_query). Apply at https://ticketpulse.tech/partners to get your id (see Partner programme). The id must belong to a registered, active partner: any other well-formed ref returns 400 unknown_partner. Each event url then carries ref=<id>&utm_source=<id>&utm_medium=partner&utm_campaign=ticketpulse_api. When a visitor lands on an event page with that ref, TicketPulse remembers it for 30 days and attaches it to orders and analytics, so sales you send can be reported to you. The ref works on any TicketPulse page (home, events, checkout, vendors and so on), not only event pages. Attribution rule: the first partner link a visitor clicks is protected for 7 days. If the visitor clicks a different partner's link within 7 days of the first, the first partner keeps the credit (the second click is still recorded as a click, but not attributed). After 7 days the last click wins. The same partner clicking again refreshes the 7-day window. Cookies last 30 days. Clicks are counted once per visitor, page and 30 minutes, and bots are ignored. Without ref, links carry utm_source=ticketpulse_api&utm_medium=partner and are not attributed to a partner. Keep the query string of url intact. Optional event fields can be null. Anonymous requests are limited to 60 per minute per client IP. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds when the window resets). A rate-limited request returns HTTP 429 with a Retry-After header in seconds; wait that long before retrying. Successful responses are cacheable: Cache-Control: public, max-age=60, s-maxage=60, stale-while-revalidate=300 with a weak ETag. Send it back as If-None-Match to receive an empty 304 Not Modified when nothing changed. Errors are never cached.
Errors return a JSON body { "error": "message", "code": "..." }. Codes: invalid_query (HTTP 400, invalid limit, page, city, category, q, from, to, include, includeSoldOut or malformed ref), unknown_partner (HTTP 400, ref is well-formed but not an active registered partner), ref_mismatch (HTTP 400, ref differs from the partner your API key belongs to), invalid_api_key (HTTP 401, key unknown, revoked or its partner paused), not_found (HTTP 404, single event only), rate_limited (HTTP 429), internal_error (HTTP 500). Page-based results may shift as events are added, updated, or expire; integrations should refresh their listings periodically.
Compatibility: v1 may add fields; existing fields will not be removed or change type without a new version.
Questions: contact us via https://ticketpulse.tech/contact
Partner programme#
Apply at ticketpulse.tech/partners. We review applications by hand. When you are approved we email you a partner id and a private stats page showing views, orders, paid ticket revenue and commission owed (with a CSV download).
Commission#
Commission is a share (set when you are approved, at most 50%) of TicketPulse's platform fee on the ticket revenue of orders attributed to you. The fee is the event's own platform fee percent (6% by default, 5% on some events); payment processing fees are not shared. Example: a 25% share on a 6% event earns 25% x 6% = 1.5% of the ticket price, so $0.30 on a $20 ticket and $0.75 on a $50 order.
Getting paid#
Commission is paid in USD. On your private stats page, open "Payout account" and add where you want to be paid: a bank account (account holder, account number, bank name and optional branch), an EcoCash number or another mobile money number. You can keep up to 3 accounts and choose one as your default. The page shows only the last four digits of each number, and we email you a security notice whenever an account is added, removed or made the default.
- Safety wait. A newly added account can be used for a payout request only 48 hours after you add it. This protects you if your private stats link ever leaks: nobody can add their own account and be paid straight away. If you did not make a change we email you about, contact support@ticketpulse.tech immediately.
- Minimum. You can request a payout once your commission owed is at least $10.00 and your default account has finished its safety wait.
- Request. Press "Request payout". The request covers your whole balance owed at that moment and goes to your default account. You can have one open request at a time and can cancel it until it is paid.
- Payment. We review the request, pay it and record the payment reference, then email you a confirmation with the amount, reference and the last four digits of the account. If we cannot pay it we email you the reason and your commission stays on your balance. Paid requests settle the commission rows they cover and appear under Payouts.
API keys (optional)#
Anonymous access keeps working exactly as before. A registered partner can also create an API key themselves in the "API keys" section of their private stats page (up to 3 active keys, each can be revoked there), which gives a higher rate limit and attributes requests to the partner automatically. Keys look like tp_..., are shown once when created and can be revoked at any time.
curl -H 'Authorization: Bearer tp_your_key' 'https://ticketpulse.tech/api/v1/events?limit=10'
# or: -H 'X-API-Key: tp_your_key'- Server-side only. Never put a key in browser JavaScript, a mobile app or a public repository: anyone who sees it can use your quota. Browsers should keep using the anonymous endpoint with
ref. - A key replaces the per-IP limit with its own per-minute limit (default 600). Check
X-RateLimit-*headers. - With a key,
refis optional and defaults to your partner id, so eventurls are attributed to you. A differentrefreturns 400ref_mismatch. - An invalid, revoked or paused-partner key returns 401
invalid_api_key; it is never silently treated as anonymous. - Keyed responses use
Cache-Control: private, max-age=60andVary: Authorization, X-API-Key, so shared caches and CDNs must not store them.
Partner wallet#
Partners can prepay a USD wallet and later sell tickets at wholesale. These endpoints need an API key (see API keys); a missing or invalid key returns 401 invalid_api_key, and the per-key rate limit applies. Money is always a decimal USD string such as "12.34". Responses are never cached.
Top-up money is held for you, not earned by us: it is a balance you spend on wholesale tickets.
Top up#
POST /api/v1/wallet/topups
{ "amount": "100.00", "processor": "ECOCASH", "phone": "0771234567" }amount: decimal string, minimum100.00, maximum50000.00, at most 2 decimals.processor:ECOCASH(a payment prompt is sent tophone, which is required) orVMC(card;paymentInstructions.urlis the hosted payment page, and an optional httpsreturnUrlis where the payer comes back to).Idempotency-Keyheader (optional, 1-128 printable characters): the same key with the same body returns the same top-up (200andIdempotent-Replayed: true); with a different body it returns 409idempotency_conflict. Always send one so a timeout can be retried safely.
{ "topup": { "id": "uuid", "status": "pending", "amount": "100.00", "currency": "USD", "processor": "ECOCASH",
"createdAt": "2026-12-02T10:00:00.000Z", "paidAt": null, "failureReason": null,
"paymentInstructions": { "type": "ecocash_prompt", "message": "Approve the EcoCash payment prompt sent to +263771234567." } } }paymentInstructions.type is ecocash_prompt, redirect (with url), pending (not ready yet, fetch the top-up again shortly) or none (nothing to do). Status is pending, paid, failed or expired. The wallet is credited only when the payment is confirmed with the gateway, never from the response to this request. Pay the exact amount only once per top-up.
Errors: 400 invalid_body, invalid_amount, below_minimum, above_maximum, invalid_processor, invalid_phone, invalid_idempotency_key; 409 idempotency_conflict; 502 gateway_error (the provider rejected the request; nothing was charged).
Check a top-up#
GET /api/v1/wallet/topups/{id} returns the same topup object for one of your own top-ups (404 not_found for any other id). While it is pending the server re-checks the payment with the gateway at most once a minute, so poll this endpoint every 5-10 seconds until the status changes. Abandoned top-ups become expired after 24 hours.
Wallet and statement#
GET /api/v1/wallet
{
"status": "active", "currency": "USD", "balance": "1234.56", "lifetimeTopups": "600.00",
"wholesaleTier": { "feeShare": 0.6, "nextTier": { "threshold": "2000.00", "feeShare": 0.75, "remaining": "1400.00" } },
"lowBalance": false,
"entries": [{ "id": "uuid", "type": "sale_debit", "amount": "-10.50", "balanceAfter": "1224.06", "orderId": "uuid",
"paymentReference": null, "note": null, "createdAt": "2026-12-02T10:05:00.000Z" }]
}status:pending_funding(before the first paid top-up),activeorfrozen(a frozen wallet can still be topped up).wholesaleTier.feeShareis the share of the platform fee you earn as a discount;nextTieris null at the top tier.lowBalanceis true below25.00.entriesare the 50 most recent ledger entries, newest first.typeistopup,sale_debit,refund_creditoradjustment; debits are negative.
Selling tickets from your wallet#
Once your wallet is funded you can sell tickets on your own site and pay for them from the wallet at wholesale. These endpoints use the same API key, rate limit, JSON errors and decimal-string money as the partner wallet. Only your own orders are visible to you; anyone else's order id returns 404 order_not_found.
Resell at the retail price. retail is the price on ticketpulse for that tier and quantity right now (early-bird, group and bundle pricing included, before the buyer-side payment fee shown on our own checkout). wholesale is what leaves your wallet: retail minus a discount, where the discount is your wallet tier's share of the platform fee TicketPulse would charge on that sale (see wholesaleTier in the wallet response). The organiser is paid exactly as for a normal sale at retail. We cannot enforce your price, but selling below retail comes out of your own margin and selling above it breaks the event's pricing, so please sell at retail. A partner-wallet sale earns the wholesale discount instead of a referral commission, never both.
Only USD tiers with a price above zero can be sold this way (422 currency_not_supported and 422 not_supported). Every rule of the buyer checkout applies: the event must be published and not over, the tier's sale window, per-order maximum, bundle sizes and stock. Guest-only tiers are not available.
Quote#
POST /api/v1/orders/quote prices a sale and changes nothing.
{ "event": "summer-fest-2026", "tier": "4f1d3c2a-8b6e-4c53-9d1e-2a7b9c0d1e2f", "quantity": 3 }{
"quote": {
"event": { "slug": "summer-fest-2026", "title": "Summer Fest" }, "tier": { "id": "uuid", "name": "General" }, "quantity": 3, "currency": "USD",
"retail": { "unit": "20.00", "total": "60.00" },
"wholesale": { "unit": "19.52", "total": "58.56" },
"platformFee": "3.60", "discount": "1.44", "margin": "1.44", "feeShare": 0.4,
"walletTier": { "minLifetimeTopup": "100.00", "feeShare": 0.4 },
"resaleRule": "Resell at the retail price. Wholesale is what is drawn from your wallet."
},
"wallet": { "balance": "250.00", "lowBalance": false, "sufficient": true, "status": "active" }
}margin is what you keep when you resell at retail (the same as discount). walletTier is null until your first tier. The quote is a snapshot: the order is priced again when you place it.
Create an order#
POST /api/v1/orders with a required Idempotency-Key header (8-128 printable characters, unique per order you want to create; missing or malformed returns 400 invalid_idempotency_key).
{ "event": "summer-fest-2026", "tier": "4f1d3c2a-8b6e-4c53-9d1e-2a7b9c0d1e2f", "quantity": 3,
"buyer": { "name": "Ada Moyo", "email": "ada@example.com", "phone": "0771234567" },
"partnerReference": "your-order-4711" }buyer.nameis required, and at least one ofbuyer.emailandbuyer.phone(a WhatsApp number). The tickets are emailed or sent on WhatsApp to the buyer, exactly like a normal purchase.partnerReference(optional) is your own order id, stored and returned for your reconciliation.- The wallet is debited and the tickets are reserved in one step. The response is
201with the order, its tickets and the new wallet balance:
{ "replayed": false, "deliveryPending": false,
"order": { "id": "uuid", "status": "paid", "event": { "slug": "summer-fest-2026", "title": "Summer Fest", "startsAt": "2026-12-20T10:00:00.000Z" },
"tier": "General", "quantity": 3, "currency": "USD", "retailTotal": "60.00", "wholesaleTotal": "58.56", "discount": "1.44", "refunded": null,
"buyer": { "name": "Ada Moyo", "email": "ada@example.com", "phone": "+263771234567" }, "partnerReference": "your-order-4711",
"createdAt": "2026-12-02T10:00:00.000Z", "cancelledAt": null, "accessUrl": "https://...", "deliveryStatus": "DELIVERED",
"tickets": [{ "id": "uuid", "tier": "General", "status": "sold", "qrCode": "https://..." }] },
"wallet": { "balance": "191.44", "lowBalance": false } }If ticket delivery fails after the order is paid, the order stays paid and deliveryPending is true; delivery is retried automatically and the tickets appear on GET /api/v1/orders/{id}.
Idempotency. Always send a new key per order and reuse it when you retry after a timeout. The same key with the same body returns the original order (200, "replayed": true) and never charges twice. The same key with a different body returns 409 idempotency_conflict. Keys are per partner.
Errors: 400 invalid_body, invalid_idempotency_key, exceeds_max_per_order, invalid_bundle_quantity; 402 insufficient_funds (with balance and required); 403 wallet_inactive; 404 event_not_found, tier_not_found; 409 sold_out (with remaining), event_not_on_sale, tier_not_on_sale, idempotency_conflict; 422 currency_not_supported, not_supported; 429 daily_cap_exceeded (with dailyCap, spentToday, required) and rate_limited.
Get and list orders#
GET /api/v1/orders/{id} returns { "order": { ... } } as above, including the tickets issued so far.
GET /api/v1/orders?limit=25&cursor=... lists your wallet orders, newest first. limit is 1-100 (default 25). Pass the returned nextCursor as cursor to get the next page; it is null on the last page.
Cancel an order#
POST /api/v1/orders/{id}/cancel voids the tickets, releases the seats and returns the full wholesale amount to your wallet. An order can be cancelled only when all of these hold:
- the event starts more than 24 hours from now (the same cut-off as a buyer's refund request);
- no ticket on the order has been scanned;
- the order is paid and not already cancelled, and no refund request is open on it.
Otherwise you get 409 with cancel_window_closed, tickets_used, refund_in_progress, not_cancellable, or tickets_pending (tickets are still being issued; retry in a minute). Cancelling twice is safe: the second call returns the same cancelled order ("alreadyCancelled": true) and does not refund again. The response is { "order": { "status": "refunded", ... }, "wallet": { ... }, "alreadyCancelled": false }.
Webhooks#
Registered partners can receive signed HTTPS POST requests when events change and when a sale they referred is paid or refunded. Manage them on your private stats page (the link we emailed you): add an endpoint URL, choose the events, copy the signing secret (shown once, on creation or after you rotate it), send a test delivery, disable or delete a webhook. You can have up to 5 webhooks.
Webhooks are switched on for the whole platform by TicketPulse (the environment flag PARTNER_WEBHOOKS_ENABLED=true). While they are off nothing is queued or sent, and the webhook section of your stats page still works. Sale events are queued the moment an order is paid or refunded; the delivery worker runs about once a minute, so expect the request within a minute or two.
Endpoint rules#
https://only, port 443 or 8443, no credentials in the URL.- No private or local targets:
localhost,*.local/*.internal, private, loopback, link-local and other reserved IP addresses are rejected, both when you save the URL and again at delivery time (the host is re-resolved, so a name that later points at a private address is blocked). Redirects are not followed. - Answer with any
2xxstatus within 10 seconds. Anything else counts as a failure.
Event types#
| Type | Sent when |
|---|---|
order.paid | An order carrying your partner id is paid (or confirmed by an admin). Complimentary orders are never sent. |
order.refunded | Such an order is refunded. The whole order is cancelled, so the commission is reversed in full. |
event.published, event.updated, event.cancelled, event.sold_out, event.ended | The public state of an event changes, same shape as GET /api/v1/events/{slug}. |
wallet.order.created | A wallet order is created through POST /api/v1/orders. |
wallet.order.cancelled | A wallet order is cancelled and its wholesale amount returned to your wallet. |
wallet.topup.paid | A top-up is confirmed and credited (card, EcoCash, or a bank transfer recorded by TicketPulse). |
wallet.topup.failed | A top-up fails or is marked failed. |
wallet.low_balance | A sale takes your wallet balance from $25.00 or more to below $25.00. It does not repeat while the balance stays low; a top-up above $25.00 re-arms it. |
event.test | You press "Send test delivery". Always delivered with a made-up event. |
Each webhook receives only the types you chose. Sale events are queued once per order and type, so a retry on our side can never produce a second order.paid for the same order; your receiver should still de-duplicate on the payload id (the delivery id, also sent as the TicketPulse-Delivery header) because a delivery is retried when your endpoint does not answer 2xx. A webhook you add later does not receive sales that were paid before you created it.
Sale payloads#
Sale payloads contain no buyer information: no name, email or phone number, and the order reference is a short prefix, not an order link.
{
"type": "order.paid",
"id": "9b2f5c5e-6d6c-4b0e-9d7d-3a1d9c2b7a10",
"createdAt": "2026-12-01T10:00:00.000Z",
"data": {
"orderId": "ABCDEF12",
"event": { "id": "event-uuid", "slug": "example-event", "title": "Example event", "startsAt": "2026-12-20T18:00:00.000Z" },
"tickets": [
{ "tier": "General", "quantity": 2, "unitPrice": 10 },
{ "tier": "VIP", "quantity": 1, "unitPrice": 30 }
],
"ticketRevenue": 50,
"currency": "USD",
"commissionRate": 25,
"platformFeePercent": 6,
"platformFeeAmount": 3,
"commissionAmount": 0.75,
"attributedAt": "2026-12-01T09:50:00.000Z"
}
}orderId: short public reference (the first 8 characters of the order id, upper case).tickets: ticket lines only.ticketRevenueis their total and excludes buyer fees, merchandise and transport.commissionRateis your share, in percent, of TicketPulse's platform fee.platformFeePercentis the event's platform fee percent andplatformFeeAmountis that fee onticketRevenue.commissionAmountisplatformFeeAmountxcommissionRate, all as they are when the delivery is queued. Your stats page and CSV are the source of truth for payouts.attributedAt: when the order was created with your partner id attached.
order.refunded has the same shape with "type": "order.refunded" and one extra field, refundedAmount: the amount actually returned to the buyer (it can be lower than the amount paid when a refund fee is kept). commissionAmount is the commission that is reversed.
Wallet payloads#
Wallet events are opt-in: tick them when you add a webhook (existing webhooks keep what they had). They are queued after the change is saved, once per order, top-up or low-balance crossing, so a retry on our side never produces a duplicate. They contain no buyer information and no commission fields: a wallet sale earns you the wholesale margin, not commission. Amounts are decimal strings in USD.
{
"type": "wallet.order.created",
"id": "9b2f5c5e-6d6c-4b0e-9d7d-3a1d9c2b7a10",
"createdAt": "2026-12-02T10:00:00.000Z",
"data": {
"orderId": "order-uuid",
"partnerReference": "your-ref-123",
"event": { "slug": "example-event", "title": "Example event" },
"tier": "General",
"quantity": 2,
"currency": "USD",
"retail": "40.00",
"wholesale": "37.60",
"margin": "2.40",
"balanceAfter": "212.40",
"createdAt": "2026-12-02T10:00:00.000Z"
}
}wallet.order.createdandwallet.order.cancelled:orderId,partnerReference(what you sent when creating the order, ornull),event,tier,quantity,retail,wholesale,margin(retailminuswholesale) andbalanceAfter(your wallet balance right after the change).wallet.order.cancelledaddsrefunded(the wholesale amount returned) andcancelledAt.wallet.topup.paidandwallet.topup.failed:topupId,amount,currency,processor(ECOCASH,VMCorbank_transfer),status(paidorfailed),balanceAfter,lifetimeTopupsandoccurredAt.wallet.topup.failedaddsreason.wallet.low_balance:balance,threshold("25.00") andcurrency.
event.* payloads look like { "type": "event.updated", "id": "...", "createdAt": "...", "event": { ...same fields as a single-event response } }.
Verifying the signature#
Every request has these headers: TicketPulse-Signature: t=<unix seconds>,v1=<hex>, TicketPulse-Event (the type), TicketPulse-Delivery (the delivery id) and User-Agent: TicketPulse-Webhooks/1.0. The signature is HMAC-SHA256(secret, "<t>.<raw request body>") in hex. Verify against the raw body bytes before parsing the JSON, compare in constant time and reject timestamps older than 5 minutes.
import crypto from "node:crypto"
import express from "express"
const SECRET = process.env.TICKETPULSE_WEBHOOK_SECRET // whsec_...
const app = express()
app.post("/ticketpulse-webhook", express.raw({ type: "application/json" }), (req, res) => {
const header = req.get("TicketPulse-Signature") ?? ""
const parts = Object.fromEntries(header.split(",").map(part => part.trim().split("=", 2)))
const timestamp = Number(parts.t)
if (!Number.isInteger(timestamp) || Math.abs(Date.now() / 1000 - timestamp) > 300 || !parts.v1) return res.sendStatus(400)
const expected = crypto.createHmac("sha256", SECRET).update(`${timestamp}.${req.body.toString("utf8")}`).digest()
const given = Buffer.from(parts.v1, "hex")
if (given.length !== expected.length || !crypto.timingSafeEqual(given, expected)) return res.sendStatus(400)
const payload = JSON.parse(req.body.toString("utf8"))
// De-duplicate on payload.id, then handle payload.type.
res.sendStatus(200)
})Retries, backoff and auto-disable#
A delivery that does not get a 2xx is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours (seven attempts in total). After the last failure it is marked dead and not sent again. A webhook that fails 50 attempts in a row (any success resets the count) is switched off automatically and our team is notified; fix your endpoint, then enable it again on your stats page. A webhook is also skipped while your partnership is paused.
Rotating a secret takes effect immediately: deliveries already queued are signed with the new secret when they are sent, so update your receiver first or accept a short window of failed signatures that will be retried.
Browser integration and CORS#
Use the public HTTPS endpoint directly from the browser without cookies, authorization, or custom headers:
const response = await fetch("https://ticketpulse.tech/api/v1/events?limit=10", {
credentials: "omit",
})
if (response.status === 429) {
const seconds = Number(response.headers.get("Retry-After")) || 60
throw new Error(`Rate limited; retry in ${seconds} seconds`)
}
if (!response.ok) throw new Error(`Events request failed: ${response.status}`)
const { events, pagination } = await response.json()The endpoint sends Access-Control-Allow-Origin: * and supports GET and OPTIONS. It does not support cross-origin credentials (credentials: "include"), and its preflight allows the request headers If-None-Match, Authorization and X-API-Key, but never send an API key from browser code (see below). Content-Type: application/json is not allowed. A GET request does not need a Content-Type header. Do not add Access-Control-Allow-Origin to the request: it is a response header, not a client setting. Retry-After, ETag and the X-RateLimit-* headers are exposed to browser JavaScript. The preflight allows the If-None-Match request header.
If a browser reports a CORS error:
- In Developer Tools, inspect the Network request and any
OPTIONSpreflight. Confirm the URL is exactlyhttps://ticketpulse.tech/api/v1/eventsand that the request omits credentials and custom headers. - Check the response status and
Access-Control-Allow-Origin. An error generated before the endpoint runs, such as a maintenance response, reverse-proxy error, redirect, or server failure, may not contain the endpoint's CORS headers and can appear as a CORS error in the browser. - Compare with
curl -i -H 'Origin: https://example.com' 'https://ticketpulse.tech/api/v1/events?limit=1'. A reachable successful response should includeAccess-Control-Allow-Origin: *.curldoes not enforce CORS; it only helps inspect the response. - If the issue persists, share the requesting page's origin, the exact browser console message, the request URL and method, and the Network response status and headers. Remove cookies, tokens, and other private data first.
Changelog#
2026-12-02#
Added:
- Wallet webhooks:
wallet.order.created,wallet.order.cancelled,wallet.topup.paid,wallet.topup.failedandwallet.low_balance. Opt-in per webhook; see Webhooks. - Selling tickets from your wallet:
POST /api/v1/orders/quote,POST /api/v1/orders(Idempotency-Keyrequired),GET /api/v1/orders,GET /api/v1/orders/{id}andPOST /api/v1/orders/{id}/cancel. Error codesinsufficient_funds,wallet_inactive,daily_cap_exceeded,sold_out,event_not_found,tier_not_found,event_not_on_sale,tier_not_on_sale,exceeds_max_per_order,invalid_bundle_quantity,currency_not_supported,not_supported,order_not_found,cancel_window_closed,tickets_used,tickets_pending,refund_in_progress,not_cancellable. - Partner wallet:
POST /api/v1/wallet/topups,GET /api/v1/wallet/topups/{id}andGET /api/v1/wallet(API key required). Error codesinvalid_body,invalid_amount,below_minimum,above_maximum,invalid_processor,invalid_phone,invalid_idempotency_key,idempotency_conflict,gateway_error.
2026-12-01#
Added:
- Webhooks for sales:
order.paidandorder.refunded(no buyer personal data), manageable on the partner stats page with signing secrets, test deliveries, retries and auto-disable. See Webhooks. - Event availability fields:
ticketsAvailableandsoldOut(booleans),currency, andavailable(boolean) on each ticket type. Additive only; existing fields are unchanged and exact stock is still never exposed.
2026-11-30#
Changed:
- Partner
refnow works on any page, not only event pages. First-click protection: a visitor's first partner is kept for 7 days; after that the last click wins. Partner clicks are now counted and reported.
2026-11-28#
Added:
- Partner registry:
refmust belong to a registered, active partner. Unknown refs return 400unknown_partner; orders and analytics are only attributed to active partners. - Optional API keys (
Authorization: BearerorX-API-Key) for server-side use, with per-key rate limits, private caching andrefdefaulting to the key's partner. X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Resetheaders on v1 responses, exposed via CORS.- Error codes
unknown_partner,ref_mismatchandinvalid_api_key. - CORS preflight now allows
AuthorizationandX-API-Key.
2026-11-27#
Added:
GET /api/v1/events/{idOrSlug}single-event endpoint (slug or UUID), including cancelled and completed events, withticketTypes.- List filters
q,from,to,includeSoldOutandinclude=ticketTypes. - Sold-out events now appear in the list. New event fields
status,availability,feesand, where requested,ticketTypes. - Partner tracking:
refparameter, partner-awareurl, and attribution of orders and analytics for visitors who arrive through a partner link. - OpenAPI 3.1 description at
/api/v1/openapi.json. not_founderror code.
Changed:
lowestPriceignores bundle-only ticket types (previously it used the per-ticket share of a bundle).
Earlier the same day:
updatedAtandtimezone(Africa/Harare) on every event.urlcarriesutm_source=ticketpulse_api&utm_medium=partner.- Public caching (
Cache-Controlplus weakETagand304 Not Modified). - Consistent JSON error bodies with
code, and CORS on error responses including maintenance and launch-gate responses. - Strict query validation (
cityandcategoryat most 100 characters) and a UTC-bound time cutoff.