LeaderOS API
  • 👋Getting Started
    • Introduction
    • Authentication
  • 🔐Auth
    • Login
    • Register
    • Sessions
  • 🧑‍🦱Users
    • Profiles
    • Roles
    • Tickets
    • Orders
  • 🛍️Store
    • Listing
    • Products
    • Categories
    • Buy
    • Donations
  • 🍏Bazaar
    • Player Storages
    • Servers
  • 🚨Support
    • Tickets
    • Messages
    • Categories
    • Quick Answers
  • 🪙Credits
    • Show Credits
    • Add Credits
    • Remove Credits
    • Send Credits
    • Set Credits
  • 👍Vote
    • Vote Links
  • 🎮Discord
    • Users
    • Settings
    • Roles
Powered by GitBook
On this page
  1. Credits

Remove Credits

POST https://yourwebsite.com/api/credits/remove

Request Body

Name
Type
Description

target_username*

string

amount*

decimal

{
    "current_credits": "10.25 USD",
    "current_raw_credits": 10.25,
    "currency": "USD"
}
{
    "status": false,
    "error": "USER_NOT_FOUND",
    "message": "User not found!"
}
{
    "status": false,
    "error": "INVALID_AMOUNT",
    "message": "You can't send less than 0.01!"
}
{
    "status": false,
    "error": "NOT_ENOUGH_CREDITS",
    "message": "This user doesn't have enough credits to remove this amount!"
}
PreviousAdd CreditsNextSend Credits

Last updated 4 months ago

🪙