Templates

Templates

List metadata transaction templates

get
/metadata/templates

List metadata transaction templates

Header parameters
Accept-LanguagestringOptional

RFC 7231 language tags format (e.g., en-US, nl-NL) to use for returning localized names

Responses
200

List templates response

application/json
get
/metadata/templates
200

List templates response

List transaction templates

get
/tenants/{tenantUid}/templates

List transaction templates

Authorizations
AuthorizationstringRequired

Token received from the auth service

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
sortBystringOptional

Defines which field the resource list is sorted by.

templateTypestringOptional

Filter on Template Type

Responses
200

TransactionTemplatesResponse

application/json
get
/tenants/{tenantUid}/templates
200

TransactionTemplatesResponse

Create transaction template

post
/tenants/{tenantUid}/templates

Create transactio template

Authorizations
AuthorizationstringRequired

Token received from the auth service

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body

TransactionTemplateRequestSchema

typestringRequired

This must be a valid type from /metadata/templates

Example: SMS_PICKUP_NOTE
templatestringRequiredExample: Your order {.orderNumber} is ready to be picked up in {.storeName}
subjectstringOptional
templateUidstringOptionalPattern: ^[A-Za-z0-9-_]+
Responses
post
/tenants/{tenantUid}/templates
201

TransactionTemplateResponse

Get transaction template by templateUid

get
/tenants/{tenantUid}/templates/{templateUid}

Get transaction template by templateUid

Authorizations
AuthorizationstringRequired

Token received from the auth service

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
templateUidstringRequired

Reference to a template.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

TransactionTemplateResponse

application/json
get
/tenants/{tenantUid}/templates/{templateUid}
200

TransactionTemplateResponse

Update transaction template by templateUid

put
/tenants/{tenantUid}/templates/{templateUid}

Update transaction template by templateUid

Authorizations
AuthorizationstringRequired

Token received from the auth service

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
templateUidstringRequired

Reference to a template.

Pattern: ^[A-Za-z0-9-_]+
Body
templatestringRequiredExample: Your order {.orderNumber} is ready to be picked up in {.storeName}
subjectstringOptional
Responses
200

TransactionTemplateResponse

application/json
put
/tenants/{tenantUid}/templates/{templateUid}
200

TransactionTemplateResponse

Delete transaction template by templateUId

delete
/tenants/{tenantUid}/templates/{templateUid}

Delete transaction template by templateUId

Authorizations
AuthorizationstringRequired

Token received from the auth service

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
templateUidstringRequired

Reference to a template.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

OK

No content

delete
/tenants/{tenantUid}/templates/{templateUid}

No content

Render transaction template preview

post
/tenants/{tenantUid}/templates/{templateUid}/notifications-preview

Render transaction template preview

Authorizations
AuthorizationstringRequired

Token received from the auth service

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
templateUidstringRequired

Reference to a template.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

OK

text/html
Responseobject
post
/tenants/{tenantUid}/templates/{templateUid}/notifications-preview

Last updated