get https://api.banking.netevia.dev/api/tickets/all
API Method: GET /api/tickets/all
GET /api/tickets/all
Description:
This endpoint is used to retrieve a list of all support or service tickets associated with the current authenticated client in the banking application. The response includes details for each ticket, such as status, subject, creation date, and priority, providing users with an overview of their entire ticket history. This is useful for clients who want to track the status of their requests, view closed or ongoing issues, or manage their service interactions.
Request:
- HTTP Method:
GET
- Endpoint:
/api/tickets/all
- Authentication: Requires authentication (e.g., Bearer token or session ID) to ensure that only the authenticated client can access their ticket information.
Query Parameters:
None. This request retrieves all tickets for the currently authenticated client.
Request Headers:
Authorization
:Bearer <token>
(required) — The token used to authenticate the request.
Response:
- Status Code:
200 OK
— On success, the API returns a list of all tickets associated with the current client. - Content-Type:
application/json
Example Response:
{
"tickets": [
{
"ticketId": "123456", // Unique identifier for the ticket
"subject": "Transaction Issue", // The subject or title of the ticket
"status": "Open", // Current status of the ticket (e.g., Open, Closed, In Progress)
"createdDate": "2023-09-01T10:30:00Z", // Date and time the ticket was created
"lastUpdatedDate": "2023-09-02T12:00:00Z", // Date and time the ticket was last updated
"priority": "High" // Priority level of the ticket (e.g., Low, Medium, High)
},
{
"ticketId": "123457",
"subject": "Account Access Issue",
"status": "Closed",
"createdDate": "2023-07-15T08:45:00Z",
"lastUpdatedDate": "2023-07-20T09:30:00Z",
"priority": "Medium"
},
{
"ticketId": "123458",
"subject": "Payment Processing Delay",
"status": "In Progress",
"createdDate": "2023-08-10T14:50:00Z",
"lastUpdatedDate": "2023-08-12T10:15:00Z",
"priority": "High"
}
]
}
Response Fields:
tickets
(array
): A list of tickets associated with the current client.ticketId
(string
): The unique identifier for each ticket.subject
(string
): The subject or title of the ticket.status
(string
): The current status of the ticket (Open
,Closed
,In Progress
).createdDate
(string
): The date and time when the ticket was created.lastUpdatedDate
(string
): The date and time when the ticket was last updated.priority
(string
): The priority level of the ticket (Low
,Medium
,High
).
Possible Errors:
401 Unauthorized
: The request was made without proper authentication or with an invalid token.403 Forbidden
: The user does not have permission to access the ticket list.500 Internal Server Error
: An error occurred on the server while processing the request.
Example Usage:
curl -X GET /api/tickets/all \
-H "Authorization: Bearer <token>"
This request retrieves a list of all tickets created by the authenticated client, including their status, subject, and other key details.