Understanding Your Inventory
Every time you open a case and win an item, it’s automatically added to your inventory. Your inventory is stored in theuser_items table in the database.
Inventory Data Structure
Each item in your inventory contains:Unique identifier for this inventory entry
Your user ID (links to your profile)
The item’s ID (links to items table)
Current status of the item:
in_inventory- Available in your collectionsold- Sold for balancewithdrawn- Shipped to your address
When you won this item
Item Properties
Each item has these attributes (fromitems table):
- Basic Info
- Rarity
- Financial
- Name - Item display name
- Image URL - Product image
- Price - Value in ARS
- Created At - When added to platform
Accessing Your Inventory
Currently, inventory viewing is integrated into the profile and case opening flows.Future Inventory Page
A dedicated inventory page will be located at/inventory with features:
Navigate to Inventory
Access via:
- Direct URL:
/inventory - Profile dropdown menu
- Sidebar navigation (when implemented)
View Your Collection
See all items with status
in_inventory displayed as cards showing:- Item image
- Item name
- Rarity badge
- Current value
- Date won
Filter and Sort
Organize your inventory by:
- Rarity level
- Date acquired
- Item value
- Status (active/sold/withdrawn)
Selling Items
Convert your won items into balance to open more cases.Sell Flow
Select Item to Sell
From your inventory, identify the item you want to sell.Consider:
- Do you want the physical item?
- Is the sell value good?
- Do you need balance for more cases?
Click Sell Button
On the winner modal after opening a case, you can immediately sell via:“Vender por ” buttonOr from the inventory page (when implemented), click the sell action on any item card.
Transaction Processing
The system:
- Updates item status to
sold - Creates transaction record (type:
item_sell) - Adds item value to your balance
- Refreshes your balance display
- Shows success notification
Bulk Selling
Currently, items must be sold individually through the sell button on each item card. To sell multiple items efficiently:- Navigate to your inventory page
- Sort items by value or rarity to group similar items
- Sell items one at a time by clicking the “Vender” button on each card
- Confirm each sale in the modal
Withdrawing Physical Items
For high-value items, you can request physical shipment to your address.Withdrawal Eligibility
Physical withdrawal is typically available for:
- Epic and Legendary rarity items
- Items valued over a certain threshold (e.g., $50,000 ARS)
- Items marked as “shippable” in the database
Withdrawal Process
Update Shipping Address
Before requesting withdrawal:
- Navigate to
/profile - Fill in “Dirección de envío” completely:
- Street and number
- City
- Province
- Postal code
- Add your Phone Number
- Save changes
Request Withdrawal
From your inventory:
- Find the item you want to withdraw
- Click “Solicitar Envío” (Request Shipment)
- Review item details and shipping address
- Confirm the request
Verification
The support team may contact you to:
- Verify your identity (DNI check)
- Confirm shipping address
- Provide shipment timeline
- Request additional information
Item Status Update
Once withdrawal is approved:
- Item status changes to
withdrawn - Item is removed from active inventory
- You receive a tracking number
- Shipment is processed
Withdrawal Fees
Withdrawal Fees
Shipping costs may apply based on:
- Item size and weight
- Delivery location
- Shipping method (standard vs express)
Inventory Organization
Viewing Options
Customize how you view your collection:- Grid View
- List View
- History View
Default view showing items as cards:
- 3-4 columns on desktop
- Large item images
- Quick action buttons
- Rarity borders
Filtering Options
Narrow down your inventory view:By Status
- Active Items Only
- Sold Items
- Withdrawn Items
- All Items
By Rarity
- Legendary
- Epic
- Rare
- Common
- All Rarities
By Value
- High to Low
- Low to High
- Above threshold
- Below threshold
By Date
- Newest First
- Oldest First
- Last 7 Days
- Last 30 Days
- All Time
Search Functionality
Find specific items quickly:Inventory Statistics
Track your collection’s performance:- Overview
- Profitability
- Rarity Breakdown
- Case History
Dashboard showing:
- Total items won
- Total value (active inventory)
- Items sold (count and value)
- Items withdrawn (count)
Database Queries
For developers, here are the key queries for inventory management:Fetch User Inventory
Sell Item Transaction
Inventory Statistics
Best Practices
Regular Review
Check your inventory regularly to:
- Sell items you don’t want
- Track valuable items
- Plan withdrawals
- Monitor collection growth
Strategic Selling
Optimize your selling strategy:
- Keep rare items for withdrawal
- Sell common items for more cases
- Build balance for high-value cases
- Track profit/loss trends
Address Accuracy
Keep your shipping address updated:
- Verify before each withdrawal
- Include phone number
- Use clear, complete format
- Update if you move
Item Protection
Protect your valuable items:
- Don’t sell rare items impulsively
- Consider withdrawal for very valuable items
- Keep proof of ownership
- Contact support if issues arise
