List Tickets

GET https://app.alaaqat.com/api/tickets

Parameters

This endpoint inherit Pagination parameters.

This endpoint has Complex Filtration feature.

Key Type default Description
search string - Search by ticket_name
order string created_at Ordering the results
complex_filters array [] See Complex Filtration

Response

The return type will always be Pagination<Ticket> check Pagination for more details.

{
    "data": [
        {
            "properties": {
                "_id": "66985cc15b6b9ecd2e0aa1e2",
                "ticket_name": "test",
                "desc": null,
                "category": "product_issue",
                "source": "source_manual",
                "updated_at": "2024-07-18T00:07:29.801000Z",
                "created_at": "2024-07-18T00:07:29.801000Z"
            }
        }
    ],
    "links": {
        "first": "http://localhost/api/tickets?page=1",
        "last": "http://localhost/api/tickets?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "http://localhost/api/tickets?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "path": "http://localhost/api/tickets",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}