- Auth
- API Keys
- Collectables
- Heroes and Characters
- Game
- Asset Candidates
- Assets
- Bones
- Players
- Leaderboards
- Files
- Feature Toggles
- Universal Player Auth
- Merging
- Rarities
- Preferences
- Platforms
- Progressions
- User
- Organisation
- Link Types
- Events/Missions
- Maps
- White Label Login
- Rewards
- Moderation Reports
- Catalogs
- Currency
- Balances
- Messages
- DLC
- Player Segments
- Character Classes
- Subscriptions
- Player Operations
- Roles
- Title Config
- Items
- Entitlements
- Feedback
- Hosts
- Metadata
- Triggers
- Data Migration
- Twitch Drops
- Notifications
Debit Balance
POST
https://api.lootlocker.io/admin/game/{game_id}/balances/debit
balances
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lootlocker.io/admin/game//balances/debit' \
--header 'x-auth-token: ' \
--header 'x-auth-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": "99999999",
"wallet_id": "01H52M0RVAWP8AD5WE2JB3KTS9",
"currency_id": "01H4NR864V9J4YJ90A6ATA85Z8"
}'
Response Response Example
403 - Debit Balance - Insufficient Funds
{
"message": "Insufficient funds for from player 2422917: held amount: 4184769042, requested debit: 10000000000",
"request_id": "132e392b-5a75-4ecb-99b4-e30610d1a8fe",
"trace_id": "7c55f99f086390a7731a8430233cb158"
}
Request
Path Params
game_id
stringÂ
required
Header Params
x-auth-token
stringÂ
required
Example:
{{admin_auth_token}}
Body Params application/json
amount
stringÂ
required
wallet_id
stringÂ
required
currency_id
stringÂ
required
Examples
Responses
🟠403Debit Balance - Insufficient Funds
application/json
Body
message
stringÂ
required
request_id
stringÂ
required
trace_id
stringÂ
required
🟢200Debit Balance - Success
Modified at 2024-06-19 13:49:15