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"
        }
    ]
}

Create ticket

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

Request Body

NameTypeDescription

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"
    }
}

Last updated