Schema
Loyalty Program
The settings for a stored-value, voucher, stamp or point loyalty program. Stamp and point programs share quantity_configuration and quantity_cost. Their type distinguishes the displayed mechanic. Only the configuration matching the program type may be supplied.
Overview
Composition
One of
One of 1
Nested properties
uuid
The loyalty program's unique identifier.
uuid
Yes
name
The name of the loyalty program.
Barry's Burgers Wallet
1
255
type
Allowed values
stored_valuecurrency_code
The loyalty program's ISO 4217 currency code.
SGD
3
3
Yes
available_from
Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point earning evaluates this window against purchase completion time.
date-time
available_until
Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.
date-time
Yes
description
The customer-facing description for the loyalty program.
Use Barry's Burgers wallet to get great value top-up bonuses!
1
10000
Yes
is_archived
Indicates if the loyalty program has been archived.
Yes
outlet_uuids
The current list governs use of existing balances. Stamp and point earning also checks the purchase outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty list allows all current and future outlets belonging to the merchant.
100
Yes
Array items
Items
uuid
customer_tier_uuids
Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.
100
Yes
Array items
Items
uuid
stored_value_configuration
References Stored Value Configuration.
voucher_configuration
quantity_configuration
cashback_configuration
created_at
The date-time that the loyalty program was first created.
date-time
Yes
One of 2
Nested properties
uuid
The loyalty program's unique identifier.
uuid
Yes
name
The name of the loyalty program.
Barry's Burgers Wallet
1
255
type
Allowed values
vouchercurrency_code
The loyalty program's ISO 4217 currency code.
SGD
3
3
Yes
available_from
Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point earning evaluates this window against purchase completion time.
date-time
available_until
Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.
date-time
Yes
description
The customer-facing description for the loyalty program.
Use Barry's Burgers wallet to get great value top-up bonuses!
1
10000
Yes
is_archived
Indicates if the loyalty program has been archived.
Yes
outlet_uuids
The current list governs use of existing balances. Stamp and point earning also checks the purchase outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty list allows all current and future outlets belonging to the merchant.
100
Yes
Array items
Items
uuid
customer_tier_uuids
Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.
100
Yes
Array items
Items
uuid
stored_value_configuration
voucher_configuration
References Voucher Configuration.
quantity_configuration
cashback_configuration
created_at
The date-time that the loyalty program was first created.
date-time
Yes
One of 3
Nested properties
uuid
The loyalty program's unique identifier.
uuid
Yes
name
The name of the loyalty program.
Coffee stamps
1
255
type
Allowed values
stamppointcurrency_code
The loyalty program's ISO 4217 currency code.
SGD
3
3
Yes
available_from
Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point earning evaluates this window against purchase completion time.
date-time
available_until
Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.
date-time
Yes
description
The customer-facing description for the loyalty program.
Use Barry's Burgers wallet to get great value top-up bonuses!
1
10000
Yes
is_archived
Indicates if the loyalty program has been archived.
Yes
outlet_uuids
The current list governs use of existing balances. Stamp and point earning also checks the purchase outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty list allows all current and future outlets belonging to the merchant.
100
Yes
Array items
Items
uuid
customer_tier_uuids
Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.
100
Yes
Array items
Items
uuid
stored_value_configuration
voucher_configuration
quantity_configuration
References Quantity Configuration.
cashback_configuration
created_at
The date-time that the loyalty program was first created.
date-time
Yes
One of 4
Nested properties
uuid
The loyalty program's unique identifier.
uuid
Yes
name
The name of the loyalty program.
Everyday cashback
1
255
type
Allowed values
cashbackcurrency_code
The loyalty program's ISO 4217 currency code.
SGD
3
3
Yes
available_from
Inclusive addition-window start. Purchase earning checks completion time; manual credits and tier gifts check processing time. Existing funds can still be redeemed outside this window.
date-time
available_until
Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of existing balances. Must not precede available_from.
date-time
Yes
description
The customer-facing description for the loyalty program.
Use Barry's Burgers wallet to get great value top-up bonuses!
1
10000
Yes
is_archived
Indicates if the loyalty program has been archived.
Yes
outlet_uuids
Cashback purchase earning checks the source outlet against this list at capture. The current list also restricts spending existing funds. An empty list permits all current and future merchant outlets. Manual credits and tier gifts do not use this earning/spending outlet restriction.
100
Yes
Array items
Items
uuid
customer_tier_uuids
Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use of existing balances.
100
Yes
Array items
Items
uuid
stored_value_configuration
voucher_configuration
quantity_configuration
created_at
The date-time that the loyalty program was first created.
date-time
Yes
cashback_configuration
References Cashback Configuration.
Used by
Raw YAML
title: Loyalty Program
x-tags:
- Models
description: The settings for a stored-value, voucher, stamp or point loyalty program. Stamp and point
programs share quantity_configuration and quantity_cost. Their type distinguishes the displayed mechanic.
Only the configuration matching the program type may be supplied.
oneOf:
- properties:
uuid: &a1
type: string
format: uuid
description: The loyalty program's unique identifier.
readOnly: true
name: &a2
type: string
minLength: 1
maxLength: 255
example: Barry's Burgers Wallet
description: The name of the loyalty program.
type:
type: string
enum:
- stored_value
currency_code: &a3
type: string
minLength: 3
maxLength: 3
example: SGD
description: The loyalty program's ISO 4217 currency code.
readOnly: true
available_from: &a4
type: string
format: date-time
description: Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point
earning evaluates this window against purchase completion time.
available_until: &a5
type:
- string
- "null"
format: date-time
description: Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of
existing balances. Must not precede available_from.
description: &a6
type:
- string
- "null"
minLength: 1
maxLength: 10000
description: The customer-facing description for the loyalty program.
example: Use Barry's Burgers wallet to get great value top-up bonuses!
is_archived: &a7
type: boolean
description: Indicates if the loyalty program has been archived.
readOnly: true
outlet_uuids: &a8
type: array
maxItems: 100
uniqueItems: true
description: |-
The current list governs use of existing balances. Stamp and point earning also checks the purchase
outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty
list allows all current and future outlets belonging to the merchant.
items:
type: string
format: uuid
customer_tier_uuids: &a9
type: array
maxItems: 100
uniqueItems: true
description: Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use
of existing balances.
items:
type: string
format: uuid
stored_value_configuration:
$ref: ./StoredValueConfiguration.yaml
voucher_configuration:
type: "null"
quantity_configuration:
type: "null"
cashback_configuration:
type: "null"
created_at: &a10
type: string
format: date-time
description: The date-time that the loyalty program was first created.
readOnly: true
title: Stored-value program
type: object
required:
- uuid
- name
- type
- currency_code
- available_from
- available_until
- description
- is_archived
- outlet_uuids
- customer_tier_uuids
- stored_value_configuration
- voucher_configuration
- quantity_configuration
- created_at
- cashback_configuration
- properties:
uuid: *a1
name: *a2
type:
type: string
enum:
- voucher
currency_code: *a3
available_from: *a4
available_until: *a5
description: *a6
is_archived: *a7
outlet_uuids: *a8
customer_tier_uuids: *a9
stored_value_configuration:
type: "null"
voucher_configuration:
$ref: ./VoucherConfiguration.yaml
quantity_configuration:
type: "null"
cashback_configuration:
type: "null"
created_at: *a10
title: Voucher program
type: object
required:
- uuid
- name
- type
- currency_code
- available_from
- available_until
- description
- is_archived
- outlet_uuids
- customer_tier_uuids
- stored_value_configuration
- voucher_configuration
- quantity_configuration
- created_at
- cashback_configuration
- properties:
uuid:
type: string
format: uuid
description: The loyalty program's unique identifier.
readOnly: true
name:
type: string
minLength: 1
maxLength: 255
example: Coffee stamps
description: The name of the loyalty program.
type:
type: string
enum:
- stamp
- point
currency_code:
type: string
minLength: 3
maxLength: 3
example: SGD
description: The loyalty program's ISO 4217 currency code.
readOnly: true
available_from:
type: string
format: date-time
description: Inclusive start of the benefit-addition window. Does not restrict use of existing balances. Stamp and point
earning evaluates this window against purchase completion time.
available_until:
type:
- string
- "null"
format: date-time
description: Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of
existing balances. Must not precede available_from.
description:
type:
- string
- "null"
minLength: 1
maxLength: 10000
description: The customer-facing description for the loyalty program.
example: Use Barry's Burgers wallet to get great value top-up bonuses!
is_archived:
type: boolean
description: Indicates if the loyalty program has been archived.
readOnly: true
outlet_uuids:
type: array
maxItems: 100
uniqueItems: true
description: |-
The current list governs use of existing balances. Stamp and point earning also checks the purchase
outlet against this list. Adding or removing an outlet changes where benefits can be used. An empty
list allows all current and future outlets belonging to the merchant.
items:
type: string
format: uuid
customer_tier_uuids:
type: array
maxItems: 100
uniqueItems: true
description: Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use
of existing balances.
items:
type: string
format: uuid
stored_value_configuration:
type: "null"
voucher_configuration:
type: "null"
quantity_configuration:
$ref: ./QuantityConfiguration.yaml
cashback_configuration:
type: "null"
created_at:
type: string
format: date-time
description: The date-time that the loyalty program was first created.
readOnly: true
title: Quantity program
type: object
required:
- uuid
- name
- type
- currency_code
- available_from
- available_until
- description
- is_archived
- outlet_uuids
- customer_tier_uuids
- stored_value_configuration
- voucher_configuration
- quantity_configuration
- created_at
- cashback_configuration
- properties:
uuid:
type: string
format: uuid
description: The loyalty program's unique identifier.
readOnly: true
name:
type: string
minLength: 1
maxLength: 255
example: Everyday cashback
description: The name of the loyalty program.
type:
type: string
enum:
- cashback
currency_code:
type: string
minLength: 3
maxLength: 3
example: SGD
description: The loyalty program's ISO 4217 currency code.
readOnly: true
available_from:
type: string
format: date-time
description: Inclusive addition-window start. Purchase earning checks completion time; manual credits and tier
gifts check processing time. Existing funds can still be redeemed outside this window.
available_until:
type:
- string
- "null"
format: date-time
description: Inclusive end of the benefit-addition window, or no end when null. Does not restrict use of
existing balances. Must not precede available_from.
description:
type:
- string
- "null"
minLength: 1
maxLength: 10000
description: The customer-facing description for the loyalty program.
example: Use Barry's Burgers wallet to get great value top-up bonuses!
is_archived:
type: boolean
description: Indicates if the loyalty program has been archived.
readOnly: true
outlet_uuids:
type: array
maxItems: 100
uniqueItems: true
description: Cashback purchase earning checks the source outlet against this list at capture. The current list
also restricts spending existing funds. An empty list permits all current and future merchant outlets.
Manual credits and tier gifts do not use this earning/spending outlet restriction.
items:
type: string
format: uuid
customer_tier_uuids:
type: array
maxItems: 100
uniqueItems: true
description: Customer tiers eligible for adding benefits; empty means all tiers. Changes do not restrict use
of existing balances.
items:
type: string
format: uuid
stored_value_configuration:
type: "null"
voucher_configuration:
type: "null"
quantity_configuration:
type: "null"
created_at:
type: string
format: date-time
description: The date-time that the loyalty program was first created.
readOnly: true
cashback_configuration:
$ref: ./CashbackConfiguration.yaml
title: Cashback program
type: object
required:
- uuid
- name
- type
- currency_code
- available_from
- available_until
- description
- is_archived
- outlet_uuids
- customer_tier_uuids
- stored_value_configuration
- voucher_configuration
- quantity_configuration
- created_at
- cashback_configuration