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. Users

Orders

Get all orders of a user

GET https://yourwebsite.com/api/users/<user_id>/orders

Path Parameters

Name
Type
Description

user_id*

numeric

User's ID

[
    {
        "id": "2",
        "accountID": "2",
        "coupon": "test",
        "total": "100.00",
        "discount": "0.00",
        "subtotal": "100.00",
        "earnings": "100.00",
        "cashback": "0.00",
        "credit": "0.00",
        "type": "1",
        "status": "1",
        "paymentAPI": "paypal",
        "paymentID": "0",
        "creationDate": "2023-02-15 10:42:48"
    },
    {
        "id": "3",
        "accountID": "2",
        "coupon": null,
        "total": "300.00",
        "discount": "0.00",
        "subtotal": "300.00",
        "earnings": "300.00",
        "cashback": "0.00",
        "credit": "0.00",
        "type": "2",
        "status": "1",
        "paymentAPI": "paypal",
        "paymentID": "0",
        "creationDate": "2023-02-15 10:42:48"
    }
]
{
    "status": false,
    "error": "USER_NOT_FOUND",
    "message": "User not found!"
}
PreviousTicketsNextStore

Last updated 4 months ago

🧑‍🦱