Create a reward
Creates a new reward in the loyalty program.
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
pid
Loyalty Program ID
Request
This endpoint expects an object.
name
Internal name of the reward
publicDescription
Public facing description of the reward
publicImage
URL of the public image for the reward
publicName
Public facing name of the reward
Response
Reward successfully created
id
Unique identifier for the reward
loyaltyProgramId
Loyalty program to which the reward belongs
name
Name of the reward
publicDescription
Public description of the reward
publicImage
Public image URL of the reward
publicName
Public name of the reward
createdAt
Timestamp when the reward was created
updatedAt
Timestamp when the reward was last updated
Errors
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error