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
  • Get tickets
  • Get a ticket
  • Create ticket
  • Close ticket
  1. Support

Tickets

Get tickets

GET https://yourwebsite.com/api/support/tickets

[
    {
        "id": "1",
        "accountID": "1",
        "categoryID": "3",
        "title": "I need help!",
        "statusID": "2",
        "readStatus": "1",
        "updateDate": "2022-09-15 10:54:46",
        "creationDate": "2022-09-15 10:51:02",
        "categoryName": "Other",
        "messages": [
            {
                "id": "3",
                "accountID": "1",
                "message": "please **help** me!",
                "writeLocation": "1",
                "creationDate": "2022-09-15 10:53:46"
            },
            {
                "id": "4",
                "accountID": "3",
                "message": "<p><strong>How can I help you?</strong></p>",
                "writeLocation": "2",
                "creationDate": "2022-09-15 10:54:46"
            }
        ]
    },
    {
        "id": "2",
        "accountID": "1",
        "categoryID": "1",
        "title": "Cheater report!",
        "statusID": "2",
        "readStatus": "1",
        "updateDate": "2022-09-15 10:54:27",
        "creationDate": "2022-09-15 10:52:07",
        "categoryName": "Cheat",
        "messages": [
            {
                "id": "1",
                "accountID": "1",
                "message": "please **help** me!",
                "writeLocation": "1",
                "creationDate": "2022-09-15 10:53:27"
            },
            {
                "id": "2",
                "accountID": "3",
                "message": "<p>thanks banned!</p>",
                "writeLocation": "2",
                "creationDate": "2022-09-15 10:54:27"
            }
        ]
    }
]

Get a ticket

GET https://yourwebsite.com/api/support/tickets/<id>

{
    "id": "6",
    "accountID": "1",
    "categoryID": "1",
    "title": "Deneme BaลŸlฤฑk!2",
    "statusID": "1",
    "readStatus": "0",
    "updateDate": "2023-07-19 20:13:37",
    "creationDate": "2023-07-19 20:13:37",
    "category": {
        "id": "1",
        "name": "Cheat"
    },
    "messages": [
        {
            "id": "6",
            "accountID": "1",
            "message": "Merhaba deneme iรงerikkk2",
            "writeLocation": "1",
            "creationDate": "2023-07-19 20:13:37"
        }
    ]
}
{
    "status": false,
    "error": "TICKET_NOT_FOUND",
    "message": "Ticket not found!"
}

Create ticket

POST https://yourwebsite.com/api/support/tickets/<id>

Request Body

Name
Type
Description

accountID*

String

categoryID*

String

title*

String

message*

String

statusID

String

Default: 1 (Open)

1: Open

2: Answered

3: User-Reply

4: Closed

{
    "success": true,
    "data": {
        "id": "6"
    }
}

Close ticket

POST https://yourwebsite.com/api/support/tickets/<id>/close

{
    "success": true,
    "data": {
        "id": "6"
    }
}
{
    "status": false,
    "error": "TICKET_NOT_FOUND",
    "message": "Ticket not found!"
}
PreviousSupportNextMessages

Last updated 4 months ago

๐Ÿšจ