Get ticket

Get Ticket

This endpoint retrieves detailed information about a specific support or service ticket within the Netevia Banking platform. It returns the ticket's current status, message history, file attachments, and any relationship to a parent ticket. It can be used by customer service representatives, administrators, or customers tracking the progress of their own submitted tickets.

Endpoint

GET /api/tickets

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to use

Use this endpoint when you need to display the full details of an existing support or service ticket to an end user or agent. This is useful for support dashboards that show ticket status and conversation history, or for polling ticket updates after a ticket has been submitted. Partners can also use it to surface ticket resolution progress directly within their own application interface.

Query Parameters

ParameterTypeRequiredDescription
ticketIdinteger (int32)YesThe unique numeric identifier of the ticket to retrieve.

Response

200 OK

Ticket object (netevia.client.models.ticket)

FieldTypeDescription
ticketIdinteger (int32)The unique identifier of the ticket.
createdDatestring (date-time)The date and time the ticket was created (ISO 8601).
statusstringThe current status of the ticket (e.g., Open, In Progress, Resolved, Closed).
ticketMessagesarray of ticketMessageList of messages associated with the ticket. Null if no messages exist.
ticketAttachmentsarray of ticketAttachmentList of file attachments associated with the ticket. Null if no attachments exist.
parentTicketIdinteger (int32)ID of the parent ticket if this ticket is a sub-ticket. Null if no parent.

ticketMessage object

FieldTypeDescription
ticketMessageIdinteger (int32)The unique identifier of the message.
createdBystringThe name or identifier of the user who created the message.
textstringThe content of the message.
createdDatestring (date-time)The date and time the message was created (ISO 8601).

ticketAttachment object

FieldTypeDescription
ticketMessageIdinteger (int32)The ID of the ticket message this attachment belongs to. Null if not linked to a specific message.
fileNamestringThe stored file name of the attachment.
contentTypestringThe MIME type of the attachment (e.g., image/png, application/pdf).
fileBase64stringThe Base64-encoded content of the attachment file.
createdDatestring (date-time)The date and time the attachment was uploaded (ISO 8601).
originalFileNamestringThe original file name as provided by the uploader.
{
  "ticketId": 98241,
  "createdDate": "2026-05-15T10:32:00Z",
  "status": "In Progress",
  "ticketMessages": [
    {
      "ticketMessageId": 1001,
      "createdBy": "[email protected]",
      "text": "We have received your request and are currently investigating the issue.",
      "createdDate": "2026-05-15T11:00:00Z"
    },
    {
      "ticketMessageId": 1002,
      "createdBy": "[email protected]",
      "text": "Thank you. Please let me know when it is resolved.",
      "createdDate": "2026-05-15T11:45:00Z"
    }
  ],
  "ticketAttachments": [
    {
      "ticketMessageId": 1001,
      "fileName": "screenshot_2026-05-15.png",
      "contentType": "image/png",
      "fileBase64": "iVBORw0KGgoAAAANSUhEUgAA...",
      "createdDate": "2026-05-15T11:00:00Z",
      "originalFileName": "screenshot.png"
    }
  ],
  "parentTicketId": null
}

Error Codes

CodeWhen it happens
400The ticketId query parameter is missing, non-numeric, or otherwise invalid.
401Token missing, expired, or invalid.
403Insufficient permissions — the authenticated user does not have access to the requested ticket.
404No ticket was found matching the provided ticketId.
500Internal server error while processing the request.

Common Mistakes

  • Passing ticketId as a string instead of an integer — the schema defines it as int32, so non-numeric values will result in a 400 error.
  • Querying a ticket that belongs to a different partner or customer context — ensure the authenticated token has permission to view the requested ticket, or a 403 will be returned.
  • Expecting ticketMessages or ticketAttachments to always be present — both fields are nullable and may be null or absent when no messages or attachments exist.
  • Not refreshing the Bearer token before it expires (10-minute lifetime) — stale tokens will result in a 401 response.

Related Endpoints

  • POST /api/tickets — Create a new support or service ticket.
  • POST /api/tickets/message — Add a message to an existing ticket.
  • POST /api/tickets/attachment — Upload a file attachment to a ticket.

Example

curl -X GET "https://api.banking.netevia.dev/api/tickets?ticketId=98241" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Query Params
int32
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json