Skip to content

Get a list of loyalty notification templates

Request

Security
BearerPartnerUser
Path
chain_idintegerrequired

Chain ID

Headers
Acceptstringrequired

application/vnd.api.v2+json

Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/chains/{chain_id}/loyalty/notification_message_templates/programs' \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: string'

Responses

OK

Bodyapplication/json
Array [
idinteger, (int32)

Template ID

Example:12
typestring

Template option

Enum:"big""mid""small""custom"
Example:"small"
bodystring

Template text

Example:"Your discount expires tomorrow"
message_typestring

Message type

Enum:"loyalty_discount_expiration""loyalty_cashback_expiration""loyalty_discount_increased""loyalty_discount_decreased""loyalty_card_created""loyalty_card_withdraw""loyalty_withdraw_cancelled""loyalty_card_manual""loyalty_card_manual_withdraw""loyalty_card_cashback"
Example:"loyalty_discount_expiration"
]
Response
[ { "id": 12, "type": "small", "message_type": "loyalty_discount_expiration", "body": "Your discount expires tomorrow" } ]