Purchase a chest using the associated currencies. This endpoint deducts the required currency from the player’s account and adds the chest to their inventory.
This operation is irreversible. Ensure the player has sufficient currency before calling this endpoint.
Status Code: 400 Bad RequestCause: Player doesn’t have enough currency to complete the purchase.Solution: Prompt the player to earn or purchase more currency before trying again.
Chest Already Owned
Status Code: 409 ConflictCause: Player already owns this specific chest.Solution: Check the player’s inventory before allowing purchase attempts.
Chest Unavailable
Status Code: 404 Not FoundCause: The chest has been removed, disabled, or never existed.Solution: Refresh your chest catalog and remove unavailable items from the UI.
After successful purchase, the chest will appear in the player’s inventory and can be opened using the Open Chest endpoint.