Skip to content

Ticketing

The ticketing side of the Catalogue API manages what a ticket storefront shows: ticket groups (events and attractions with variants, gallery and calendar), the document templates their tickets and emails use, tags, a banner carousel and rail menus. Storefront reads are public; admin writes take the workspace in the path. For playlists and feeds, see the Catalogue API.

Resources

Resource What it is
Ticket group A ticket product: names and descriptions in Malay (Bm), English (En) and Chinese (Cn), cover image, gallery, detail sections, variants (prices), operating calendar and organiser.
Ticket variant A priced ticket type of a ticket group, such as Adult. Prices and availability come from the group's point-of-sale system.
Document template The look and text of a group's printed ticket (PDF) and confirmation email. Several groups can share one.
Tag A label you attach to ticket groups.
Banner An image in the storefront carousel.
Rail menu A named row of content on the storefront, mixing ticket groups and advertisements.

Authentication and permissions

Storefront reads need no token. Admin routes need a bearer token and, in the workspace in the path, the permission below. See Authentication.

Action Permission
Read ticket groups, tags, banners, rail menus, availability, closed dates and images None (public)
Create or change ticket groups, templates, tags, banners and rail menus; read all banners and the admin rail-menu view; preview templates workspace:catalogue:manage

Payment and point-of-sale profiles for a ticket group are managed through the integration profiles routes.

Base path

https://<API_HOST>/api/ticketGroups/…
https://<API_HOST>/api/documentTemplates/{workspaceId}/…
https://<API_HOST>/api/tags/…
https://<API_HOST>/api/banners/…
https://<API_HOST>/api/railMenus/…

These routes are on CoreAPI and have no /v1. Admin routes take {workspaceId} right after the resource name.

Capabilities

  • Ticket groups: create, edit by section, placements, cover and gallery
  • Variants, availability and closed dates (from the point-of-sale system)
  • Live updates by server-sent events
  • Document templates with logo, text per language and previews
  • Tags, banners and rail menus
  • Ticket group search and filtering (planned)

Object model

Ticket group

Text fields exist in three languages with the suffix Bm, En or Cn (for example groupNameEn).

Field Type Meaning
ticketGroupId integer, read-only Ticket group ID.
groupName…, groupDesc… string Name and description per language. Required.
pricePrefix…, priceSuffix… string Text before and after the price, up to 50 characters. Required.
orderTicketLimit integer Most tickets per order, at least 1.
scanSetting none, qr_code or barcode How tickets are checked.
activeStartDate, activeEndDate YYYY-MM-DD Sale period. The end date is optional.
isActive boolean On sale.
placement integer Display order, from 1.
weeklyClosedDays integer array Closed weekdays, 0 = Sunday to 6 = Saturday.
tags array Attached tags.
uniqueExtension string, read-only Key of the cover image for GET /api/ticketGroups/attachment/{uniqueExtension}.

GET /api/ticketGroups/ticketProfile adds detail sections, variants, gallery, operating exceptions, location and organiser data.

Rail menu item

A rail menu's ticketGroups array holds entries of two kinds, sorted by placement across both:

[
  { "type": "ticket", "placement": 1, "detail": { "ticketGroupId": 12, "groupNameEn": "Johor Zoo" } },
  { "type": "advertisement", "placement": 2, "detail": { "advertisementId": 8, "advertisementType": "coupon", "titleEn": "10% off" } }
]

Advertisements are read-only here; manage them in the Advertising API. The customer list keeps advertisements that are active today (Malaysia time); the admin list returns all.

bannerId, placement, redirectUrl, activeStartDate, activeEndDate, isActive, duration (seconds on screen) and uniqueExtension for the image.

Lists

No ticketing list takes page or limit: every list route returns all its items inside result.

List result key Order
Ticket groups ticketGroups Not sorted by the server: sort by placement. ?active=true keeps groups with isActive true and doesn't check the sale dates.
Banners banners placement
Tags tags Not defined
Document templates the array itself Most recently updated first
Rail menus railMenus placement
curl "https://<API_HOST>/api/banners/<WORKSPACE_ID>/all" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
{
  "respCode": 2000,
  "respDesc": "Success",
  "result": {
    "banners": [
      {
        "bannerId": 5,
        "placement": 1,
        "redirectUrl": "https://example.com/promo",
        "uploadedBy": "Dana Lee",
        "activeStartDate": "2026-12-01",
        "activeEndDate": "2026-12-31",
        "isActive": true,
        "duration": 8,
        "uniqueExtension": "c41b.png",
        "createdAt": "2026-11-10 10:00:00",
        "updatedAt": "2026-11-10 10:00:00"
      }
    ]
  }
}

Each banner also carries attachmentName, attachmentPath, attachmentSize and contentType for its image; use uniqueExtension to fetch it. An empty list is [], not null.

Lifecycle and states

A ticket group is on sale when isActive is true and today is inside activeStartDate to activeEndDate. A day is closed when its weekday is in weeklyClosedDays, unless an operating exception with isOpen: true opens it; an exception with isOpen: false closes any day. GET /api/ticketGroups/closedDates returns only the days that differ from the normal week.

Errors

Ticketing routes return an envelope. Success is { "respCode": 2000, "respDesc": "Success", "result": … }; a handled error is { "respCode": 4000, "respDesc": "<reason>", "result": null }. Token and permission failures return { "message": "<reason>" }.

Status When it happens and what to do
400 Invalid body, missing ticketGroupId or date (YYYY-MM-DD), duplicate tag name, unsupported file type. Read respDesc.
401 No or invalid token on an admin route.
403 You lack workspace:catalogue:manage in that workspace, or you tried to change a platform template (copy it instead).
404 The template or file doesn't exist.
500 The server or the point-of-sale system failed. Retry later.

Bodies as returned:

{ "respCode": 4000, "respDesc": "Invalid request body", "result": null }

400. respCode is always 4000 on a handled error, whatever the status.

{ "message": "Unauthorized - No token provided" }

401.

{ "message": "Forbidden - Insufficient permissions" }

403. Changing a platform template returns { "respCode": 4000, "respDesc": "This is a platform template and cannot be modified. Copy it instead.", "result": null }.

{ "respCode": 4000, "respDesc": "Template not found", "result": null }

404. A template in another workspace also reads as not found.

{ "respCode": 4000, "respDesc": "Failed to retrieve banners", "result": null }

500. A few routes (ticket group list, rail menus, galleries) return { "error": "<reason>" } instead, and a rail menu validation failure returns { "error": "Validation failed", "details": "<fields>" } with status 400. Check the HTTP status first, then read respDesc or error.

Status codes

Admin writes answer 201 even when they update an existing item, and GET /api/tags answers 201. Treat any 2xx with respCode 2000 as success.

Endpoints