Integration profiles
Integration profiles hold the provider credentials an organization uses to send email, take payments and issue tickets. You create email, payment and POS profiles once per organization, then map them to email usage types and to ticket groups.
Resources¶
| Resource | What it is |
|---|---|
| Email profile | An email sending account (Google, Amazon SES, Postmark, Zoho or SMTP) with a sender address and an optional fallback SMTP account. |
| Email usage mapping | Which email profile sends each kind of organization email, such as invitations or password resets. |
| Payment profile | A payment gateway account (JohorPay or Stripe) that checkout can offer. |
| POS profile | An account on a point-of-sale system that issues tickets and serves availability. |
| Provider catalog | The providers you can choose and the credential fields each one needs. One catalog each for email, payment and POS. |
| Ticket group | A group of tickets sold together, inside one workspace of the organization. It sends from one email profile, offers one or more payment profiles and issues through one POS profile. |
Every profile belongs to the organization. Payment and POS profiles can also be limited to one workspace; a ticket group can only use a profile that is available to its workspace.
Credentials are stored encrypted and never returned. Responses show the non-secret values in config and the keys
of the secrets that are set in configuredSecrets.
Authentication and permissions¶
All routes need an access token. See Authentication. The token's
organization must be {orgId}; a token for another organization gets 403.
| Action | Permission |
|---|---|
| List or get email profiles, the email provider catalog, email usage mappings and a ticket group's email profile | org:email-profiles:view |
| Create, update, delete, test or validate email profiles; change email usage mappings; set or remove a ticket group's email profile | org:email-profiles:manage |
| List or get payment profiles, the payment provider catalog and a ticket group's payment profiles | org:payment-profiles:view |
| Create, update, delete, test or validate payment profiles; set or unlink a ticket group's payment profiles | org:payment-profiles:manage |
| List or get POS profiles, the POS provider catalog and a ticket group's POS profile | org:pos-profiles:view |
| Create, update, delete, test or validate POS profiles; set or remove a ticket group's POS profile | org:pos-profiles:manage |
A route that needs a manage permission also checks the matching view permission, so your role needs both.
Base path¶
All routes are on CoreAPI:
{orgId} is the ID of the organization in your access token.
Capabilities¶
- Email profiles: create, list, get, update, delete
- Send a test email from a stored email profile
- Validate email credentials by sending one email, without storing them
- Optional fallback SMTP account on an email profile
- Map email usage types to email profiles
- Set or remove a ticket group's own email profile, with the organization's mapping as the default
- Payment profiles: create, list, get, update, delete, test the connection, validate credentials without storing them
- Link several payment profiles to a ticket group
- POS profiles: create, list, get, update, delete, test the connection, validate credentials without storing them
- Set or remove a ticket group's POS profile
- Provider catalogs for email, payment and POS, to build forms from
List routes aren't paginated: each returns the full list.
Object model¶
Email profile¶
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (UUID) | read-only | ID of the email profile. |
organizationId |
string (UUID) | read-only | ID of the owning organization. |
name |
string | yes | Letters and digits, words separated by single spaces (Zoo Tickets). Unique in the organization, case-insensitive. |
slug |
string | read-only | name in lower case with spaces replaced by underscores (zoo_tickets). |
provider |
string | yes | google, postmark, ses, smtp or zoho (see Providers). Case-insensitive on input. |
fromAddress |
string | yes | Sender address, bare (tickets@example.com), without a display name. |
fromName |
string | no | Sender display name. Left out of responses when empty. |
credentials |
object | yes, write-only | The provider's credential fields. Never returned. |
fallbackSmtp |
object | no | On input: SMTP credentials used when the main provider fails, with the smtp fields. On output: {config, configuredSecrets} without secrets, left out when none is stored. |
clearFallbackSmtp |
boolean | no, update only | true removes the fallback SMTP account. Default false. |
hasFallbackSmtp |
boolean | read-only | Whether a fallback SMTP account is stored. |
isActive |
boolean | no | Whether emails can be sent through the profile. true on create. |
config |
object | read-only | Non-secret credential values. Left out when empty. |
configuredSecrets |
array of strings | read-only | Keys of the secret fields that are set. Left out when empty. |
createdAt, updatedAt |
string (ISO 8601) | read-only | When the profile was created and last changed. |
On update, send only the fields that change. With the same provider, send only the credential keys that change: a
secret you leave out, or send as "", keeps its stored value. To switch provider, send provider with the full
credentials.
{
"id": "5d0c6f2e-3a41-4b8e-9c27-1f6e8a9b0c3d",
"organizationId": "9a7e1c42-6b3d-4f10-8e25-7c4b2d9f1a06",
"name": "Zoo Tickets",
"slug": "zoo_tickets",
"provider": "smtp",
"fromAddress": "tickets@example.com",
"fromName": "Example Zoo",
"hasFallbackSmtp": false,
"isActive": true,
"createdAt": "2026-11-16T03:12:45.120Z",
"updatedAt": "2026-11-16T03:12:45.120Z",
"config": {
"host": "smtp.example.com",
"port": 587,
"useSsl": false,
"username": "tickets@example.com",
"authMethod": "password"
},
"configuredSecrets": ["password"]
}
Email usage mapping¶
| Field | Type | Required | Description |
|---|---|---|---|
usageType |
string | yes | Kind of email (values below). |
profileId |
string (UUID) | yes, on update | Email profile mapped to the usage type. Left out of responses when unmapped. |
profileName |
string | read-only | Name of the mapped profile. Left out when unmapped. |
The update body takes profileId and an array usageTypes, and maps every listed usage type to that profile. The
list response always has five entries, in the order below.
usageType |
Meaning |
|---|---|
user_invite |
Invitations to join the organization. |
order_confirmation |
Accepted and stored. No email is sent through this mapping today. |
password_reset |
Password reset emails. |
ticket_delivery |
Ticket emails, for ticket groups that have no email profile of their own. |
fallback |
Used by any usage type above that has no mapping of its own. |
[
{ "usageType": "user_invite", "profileId": "5d0c6f2e-3a41-4b8e-9c27-1f6e8a9b0c3d", "profileName": "Zoo Tickets" },
{ "usageType": "order_confirmation" },
{ "usageType": "password_reset", "profileId": "5d0c6f2e-3a41-4b8e-9c27-1f6e8a9b0c3d", "profileName": "Zoo Tickets" },
{ "usageType": "ticket_delivery" },
{ "usageType": "fallback", "profileId": "5d0c6f2e-3a41-4b8e-9c27-1f6e8a9b0c3d", "profileName": "Zoo Tickets" }
]
An email sent through a mapping to an inactive profile fails; it doesn't move on to fallback.
Payment profile and POS profile¶
Payment and POS profiles have the same fields.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (UUID) | read-only | ID of the profile. |
organizationId |
string (UUID) | read-only | ID of the owning organization. |
workspaceId |
string | no, write-once | Limits the profile to one workspace of the organization. null or left out: every workspace. Left out of responses when not set. Can't be changed after create. |
name |
string | yes | Letters and digits, words separated by single spaces. Unique per profile kind in the organization, case-insensitive. |
slug |
string | read-only | name in lower case with spaces replaced by underscores. |
provider |
string | yes | Payment: johorpay or stripe. POS: zoo. Case-insensitive on input. |
credentials |
object | yes, write-only | The provider's credential fields. Never returned. |
isActive |
boolean | no | true on create. Payment: an inactive profile isn't offered at checkout, but payments already started with it still complete. POS: ticket groups using an inactive profile can't issue tickets. |
config |
object | read-only | Non-secret credential values, including defaults the server filled in. Always present, {} when empty. |
configuredSecrets |
array of strings | read-only | Keys of the secret fields that are set. Always present. |
createdAt, updatedAt |
string (ISO 8601) | read-only | When the profile was created and last changed. |
Updates follow the same rules as email profiles: send only what changes; omitted or "" secrets keep their value.
{
"id": "2a9d6b3e-7f1c-4a8b-9e5d-3c2b1a0f9e8d",
"organizationId": "9a7e1c42-6b3d-4f10-8e25-7c4b2d9f1a06",
"name": "Zoo Stripe",
"slug": "zoo_stripe",
"provider": "stripe",
"config": { "currency": "myr" },
"configuredSecrets": ["secretKey", "webhookSecret"],
"isActive": true,
"createdAt": "2026-11-16T03:20:10.500Z",
"updatedAt": "2026-11-16T03:20:10.500Z"
}
Ticket group profiles¶
Each ticket group route returns the group's current setting.
| Route | Response |
|---|---|
…/ticket-groups/{ticketGroupId}/email-profile |
{ticketGroupId, source, emailProfile}. source is ticketGroup (the group's own profile) or organization (inherited from the ticket_delivery mapping, or else fallback). emailProfile has no config, configuredSecrets or fallbackSmtp. emailProfile: null with no source: nothing applies and the group can't send ticket emails. |
…/ticket-groups/{ticketGroupId}/payment-profiles |
An array of {id, name, provider, workspaceId, isActive}, sorted by name, active or not. Customers see only the active ones. PUT replaces the whole set; [] unlinks all. |
…/ticket-groups/{ticketGroupId}/pos-profile |
{ticketGroupId, posProfile} with the full POS profile. There is no organization default for POS: posProfile: null means the group can't issue tickets or show availability. |
{ticketGroupId} is a positive integer. A ticket group in another organization returns 404. Setting an inactive
profile on a ticket group is allowed; sending, paying or issuing through it then fails until it is active.
{
"ticketGroupId": 42,
"source": "ticketGroup",
"emailProfile": {
"id": "5d0c6f2e-3a41-4b8e-9c27-1f6e8a9b0c3d",
"organizationId": "9a7e1c42-6b3d-4f10-8e25-7c4b2d9f1a06",
"name": "Zoo Tickets",
"slug": "zoo_tickets",
"provider": "smtp",
"fromAddress": "tickets@example.com",
"fromName": "Example Zoo",
"hasFallbackSmtp": false,
"isActive": true,
"createdAt": "2026-11-16T03:12:45.120Z",
"updatedAt": "2026-11-16T03:12:45.120Z"
}
}
Providers¶
GET …/email-providers, GET …/payment-providers and GET …/pos-providers each return an array of providers,
sorted by type. Each provider has type (the value you send as provider), label, description and fields.
Each field has:
| Field | Type | Description |
|---|---|---|
key |
string | Key in the credentials object. |
label |
string | Display label. |
type |
string | string, text, secret (write-only, never returned), url (absolute http or https URL), number, boolean or select (one of options). |
required |
boolean | Required when the field applies. |
secret |
boolean | true for secret fields. |
default |
any | Value used when you leave the field empty. Optional. |
placeholder, helpText |
string | Example input and help text. Optional. |
options |
array | {value, label} choices of a select field. |
minLength, maxLength |
integer | Length limits in characters. Optional. |
pattern |
string | Regular expression the value must match. Optional. |
when |
object | {field, in}: the field applies only when field has one of the values in in. Otherwise it is ignored. |
Unknown keys in credentials are rejected. The providers and their fields today (secret fields marked secret):
| Kind | provider |
What it is | Credential fields |
|---|---|---|---|
google |
Gmail API | authMethod (service_account, default, or oauth_refresh_token). Service account: serviceAccountJson secret, delegatedUser. Refresh token: clientId, clientSecret secret, refreshToken secret. |
|
postmark |
Postmark | serverToken secret. |
|
ses |
Amazon SES | accessKeyId, secretAccessKey secret, region. |
|
smtp |
Any SMTP server; also the fallback SMTP account | host, port (default 587), useSsl (default false), username, authMethod (password, default, or xoauth2). Password: password secret. XOAUTH2: clientId, clientSecret secret, refreshToken secret, tokenUrl (optional). |
|
zoho |
Zoho Mail API. Can't send attachments, so it can't deliver ticket emails without a fallback SMTP account. | clientId, clientSecret secret, accountId, serverInfo (default https://accounts.zoho.com). |
|
| Payment | johorpay |
JohorPay (FPX online banking; the customer picks a bank) | gatewayUrl, paymentEndpoint, redflowEndpoint, bankListEndpoint, apiKey secret (at least 32 characters), agToken secret. |
| Payment | stripe |
Stripe Checkout | secretKey secret (sk_ or rk_ key), webhookSecret secret (whsec_…), currency (three lower-case letters, default myr). |
| POS | zoo |
The parks' ticketing and POS API | baseUrl, tokenEndpoint, qrEndpoint, ticketEndpoint, apiUsername, apiPassword secret; optional scheduleEndpoint, onlineItemEndpoint, tierType (default WEB), programFilter (default false). |
Read the exact limits and defaults from the catalog routes; the table above is a summary.
Errors¶
Errors from these routes have an error string, for example {"error": "email profile not found"}. Some add
fields, listed below. A body that isn't JSON, or a missing required field, can also return
{"success": false, "error": "Bad Request"}. Token and permission errors have a message string instead.
| Status | When | What to do |
|---|---|---|
400 |
The body isn't JSON; a required field is missing; name has characters other than letters, digits and single spaces; fromAddress isn't a bare email address; provider or usageType is unknown; provider changes without credentials; {ticketGroupId} isn't a positive integer. |
Fix the request. |
401 |
No access token, or it is malformed, expired or invalid. | Get a new token. |
403 |
Your role lacks the permission, or the token is for another organization. | Use a token for {orgId} with a role that has the permission. |
404 |
The profile or ticket group doesn't exist in the organization (a profile ID that isn't a UUID too); on a ticket group DELETE, nothing was set. |
Check the ID. |
409 |
Another profile of the same kind already has the name; or you delete a profile that is still in use. The body says what uses it: email usageTypes and ticketGroups (IDs), payment ticketGroups and orders (counts), POS ticketGroups (count). |
Pick another name; or remove the profile from those usage types and ticket groups first, or set isActive: false instead. A payment profile with orders can't be deleted. |
422 |
A credential field is invalid: fields maps each key to a message (fallbackSmtp.<key> for the fallback account, _root for the whole object). Or a ticket group can't use the profile: the body has the profile ID and a reason (not a valid id, not found in this organization, or limited to a different workspace); for payment profiles, profiles maps each bad ID to its reason and nothing changes. |
Fix the listed fields or profile IDs. |
500 |
The server couldn't complete the request. | Retry later; contact support if it persists. |
502 |
During a test send, test connection or validation, the provider refused the credentials or message, or couldn't be reached. | Check the credentials and the provider's status, then retry. |
{
"error": "some credential fields are invalid",
"fields": {
"password": "is required",
"port": "must be a number"
}
}