curl --request POST \
--url https://api.yorlet.com/v1/loyalty/programs \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"name": "<string>",
"reward": {
"type": "points",
"points": 2
},
"statement_descriptor": "<string>",
"type": "rent_on_time",
"budget": {
"maximum_points": 2,
"time_window": "all_time"
},
"discoverable": true,
"expires_at": 123,
"max_redemptions": 2,
"metadata": {},
"priority": 50,
"recipient_restriction": "none",
"tier": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "loyalty.program",
"archived": true,
"budget": {
"maximum_points": 2,
"time_window": "all_time"
},
"description": "<string>",
"discoverable": true,
"expires_at": 123,
"in_person": {
"url": "<string>"
},
"name": "<string>",
"recipient_restriction": "none",
"reward": {
"type": "points",
"points": 2
},
"statement_descriptor": "<string>",
"status": "active",
"tier": "<string>",
"type": "rent_on_time",
"account": "<string>",
"deleted": false,
"priority": 50
}Create a loyalty program
curl --request POST \
--url https://api.yorlet.com/v1/loyalty/programs \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"name": "<string>",
"reward": {
"type": "points",
"points": 2
},
"statement_descriptor": "<string>",
"type": "rent_on_time",
"budget": {
"maximum_points": 2,
"time_window": "all_time"
},
"discoverable": true,
"expires_at": 123,
"max_redemptions": 2,
"metadata": {},
"priority": 50,
"recipient_restriction": "none",
"tier": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "loyalty.program",
"archived": true,
"budget": {
"maximum_points": 2,
"time_window": "all_time"
},
"description": "<string>",
"discoverable": true,
"expires_at": 123,
"in_person": {
"url": "<string>"
},
"name": "<string>",
"recipient_restriction": "none",
"reward": {
"type": "points",
"points": 2
},
"statement_descriptor": "<string>",
"status": "active",
"tier": "<string>",
"type": "rent_on_time",
"account": "<string>",
"deleted": false,
"priority": 50
}API Key authentication. Use "Bearer YOUR_API_KEY".
Grant a fixed number of points to the customer.
Show child attributes
The statement descriptor that will appear on the customer's statement.
rent_on_time, tenure_milestone, new_lease, renewal, move_in, referral, in_person, one_time, birthday, custom The budget object for the loyalty program.
Show child attributes
Whether the program is discoverable by residents in the app.
Must be a Unix timestamp in UTC time.
x >= 1Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Show child attributes
The priority of for sorting loyalty programs. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
0 <= x <= 100Restrictions on who can receive points. Set to "none" for no restrictions (any user in the OneMove network can receive points). Set to "residents" to only allow residents in your account to receive points.
none, residents ^[a-zA-Z0-9_]+$Create a loyalty program
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
loyalty.program Whether the program is archived. Archived programs are not visible to customers.
The budget object for the loyalty program.
Show child attributes
The description of the loyalty program. This will be displayed to customers.
Whether the program is discoverable by residents in the app.
The date and time the program expires.
The in_person object for the loyalty program.
Show child attributes
The name of the loyalty program. Useful for organising your programmes. Not shown to customers.
Restrictions on who can receive points. Set to "none" for no restrictions (any user in the OneMove network can receive points). Set to "residents" to only allow residents in your account to receive points.
none, residents Grant a fixed number of points to the customer.
Show child attributes
The statement descriptor that will appear on the customer's statement.
The status of the loyalty program.
active, expired, consumed The tier object for the loyalty program.
The type of the loyalty program.
rent_on_time, tenure_milestone, new_lease, renewal, move_in, referral, in_person, one_time, birthday, custom The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header.
Only returned if the object has been deleted.
The priority of for sorting loyalty programs. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
0 <= x <= 100Was this page helpful?