Transfers of items from Platform to Lucky Funatic
Lucky Funatic exposes one endpoint for transferring items from Platform:
POST /laravel/transfer/item
Available items
Items available for transfer have not NULL from_platform_item_id field in lucky_funatic_store_items table. Which is joinable with items table on id field.
WARNING: There is no foreign key constraint between lucky_funatic_store_items and items tables.
Authentication
Authentication follows the same pattern as other Laravel endpoints, e.g. POST /persist-game-state-change. It requires passing Authorization header with value Bearer <token>, where <token> is the token stored in LARAVEL_API_TOKEN environment variable.
POST /laravel/transfer/item
Required fields
funtico_user_id- ID of the user on the Platformitems- Array of items to transfer.amount- Amount of items to transfer.id- ID of the item on the Platform.
Examples
Request body
{
"funtico_user_id": 334,
"items": [
{
"amount": 5,
"id": 8
}
]
}
Response
200
{
"message": "items received successfully"
}
Errors
400
{
"error": "invalid quantity for item 8"
}
404
{
"error": "provided user id is not connected to any lucky funatic user"
}
404
{
"error": "one or more of the provided items is not available in lucky funatic items"
}