curl --request POST \
--url https://api.yorlet.com/v1/loyalty/program_events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"loyalty_program": "<string>",
"recipient": {
"type": "customer",
"customer": "<string>"
},
"expires_at": 123,
"loyalty_program_override": {
"points": 123
},
"statement_descriptor": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "loyalty.program_event",
"expires_at": 123,
"loyalty_program": "<string>",
"loyalty_program_override": {
"points": 123
},
"recipient": {
"type": "customer",
"customer": "<string>"
},
"statement_descriptor": "<string>",
"status": "expired",
"value": 123,
"account": "<string>",
"deleted": false,
"earn_rate": {
"spend_amount": 123
}
}Create a loyalty program event
curl --request POST \
--url https://api.yorlet.com/v1/loyalty/program_events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"loyalty_program": "<string>",
"recipient": {
"type": "customer",
"customer": "<string>"
},
"expires_at": 123,
"loyalty_program_override": {
"points": 123
},
"statement_descriptor": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "loyalty.program_event",
"expires_at": 123,
"loyalty_program": "<string>",
"loyalty_program_override": {
"points": 123
},
"recipient": {
"type": "customer",
"customer": "<string>"
},
"statement_descriptor": "<string>",
"status": "expired",
"value": 123,
"account": "<string>",
"deleted": false,
"earn_rate": {
"spend_amount": 123
}
}API Key authentication. Use "Bearer YOUR_API_KEY".
The loyalty program ID.
Show child attributes
Show child attributes
The date and time the points expire.
The number of points to award. If provided, this will override the default points set on the loyalty program.
Show child attributes
The statement descriptor. This appears on the customer's statement. If provided, this overrides the statement descriptor set on the loyalty program.
Create a loyalty program event
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
loyalty.program_event The date and time the points expire.
The loyalty program ID.
The number of points to award. If provided, this will override the default points set on the loyalty program.
Show child attributes
Show child attributes
The statement descriptor. This appears on the customer's statement. If provided, this overrides the statement descriptor set on the loyalty program.
The status of the event.
expired, pending, succeeded The points value of the event.
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.
Show child attributes
Was this page helpful?