Daily Gifts
Daily Gifts are a redeemable that players can create once a day, each daily gift when redeemed, gives players a set amount of in-game coins. On this page, we'll dive into the different daily gift endpoints you can use to manage daily gifts programmatically. We'll look at how to create, and update daily gifts.
The daily gift model
The daily gift model contains all the information about your daily gifts, such as their coins.
Properties
- Name
id- Type
- integer
- Description
Unique identifier for the currency.
- Name
coins- Type
- integer
- Description
Coins for the daily gift.
- Name
redeemed_at- Type
- nullable timestamp
- Description
Timestamp from when the daily gift became redeemed.
POST/daily-gifts
Create a daily gift
This endpoint allows you to create a daily gift for yourself. Only one daily gift can be created per day.
Request
POST
/daily-giftscurl https://prod-app.themeparkshark.com/api/daily-gifts \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"
Response
{
"data": {
"id": 1,
"coins": 50
}
}
PUT/daily-gifts/:id
Update a daily gift
This endpoint allows you to perform an update on a daily gift you have created. In this case, redeeming the daily gift.
Request
PUT
/daily-gifts/1curl -X PUT https://prod-app.themeparkshark.com/api/daily-gifts/1 \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"
Response
{
"data": {
"id": 1,
"coins": 50,
"redeemed_at": "2023-12-04T15:38:51.000000Z"
}
}
