Create tickets

Create Support Ticket on Login

This endpoint creates a support ticket associated with a specific user account, identified by nickname or login name. It is intended for scenarios where a support ticket must be raised at or near the login flow, before a full user session is established. The request includes the ticket topic, message text, and an optional field-update request type to categorize the nature of the support inquiry.

Endpoint

POST /api/support/createTicketOnLogin

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 a user encounters an issue during or immediately after login and a support ticket needs to be created on their behalf using their login identifier rather than a resolved profile ID. This is also appropriate when support agents or partner systems need to log a ticket tied to a user account without initiating a full authenticated user session. Common use cases include login failures, locked accounts, and pre-session profile update requests (e.g., email or phone change).

Request Body

FieldTypeRequiredDescription
nickNameOrLoginstringYesThe user's nickname or login identifier. Minimum length: 1.
textstringYesThe body/message of the support ticket. Minimum length: 1.
topicIdinteger (int32)NoID of the support topic category to assign to the ticket.
updateFieldRequeststring (enum)NoSpecifies the type of profile field update being requested. See enum values below.
ticketTypeinteger (int32)NoNumeric type code for the ticket. Allowed values: 1, 2, 21, 24, 26.

updateFieldRequest enum values:
Email, Phone, Address, PrimAuthEmail, PrimAuthPhone, PrimAuthAddress, Owner1Email, Owner1Phone, Owner1Address, Owner2Email, Owner2Phone, Owner2Address, Owner3Email, Owner3Phone, Owner3Address, Owner4Email, Owner4Phone, Owner4Address, Employer, EmployerIdentificationNumber, BusinessStartDate, DateOfBirth, Ssn, GivenName, MiddleName, FamilyName, DoingBusinessAsName, LegalBusinessName, LoanApprove

{
  "nickNameOrLogin": "[email protected]",
  "text": "I am unable to log in to my account and need assistance resetting my credentials.",
  "topicId": 3,
  "updateFieldRequest": "Email",
  "ticketType": 1
}

Response

200 OK

FieldTypeDescription
ticketIdinteger (int32)Unique identifier for the created support ticket.
ticketTopicIdinteger (int32)ID of the topic assigned to the ticket.
ticketTopicobjectObject containing details about the ticket topic.
ticketTopic.idinteger (int32)Topic ID.
ticketTopic.namestring / nullName of the topic.
ticketTopic.responseTimestring / nullExpected response time description for this topic.
ticketTopic.isDeletedbooleanIndicates whether the topic has been deleted.
ticketTopic.isHiddenbooleanIndicates whether the topic is hidden from end users.
userProfileIdinteger (int32)ID of the user profile associated with the ticket.
createdstring (date-time)ISO 8601 timestamp of when the ticket was created.
textstring / nullThe message body submitted with the ticket.
parentTicketIdinteger (int32) / nullID of the parent ticket if this is a follow-up ticket; null otherwise.
isNewbooleanIndicates whether the ticket is newly created and unread.
updateFieldRequeststring (enum)The profile field update type associated with the ticket, if any.
ipAddressstring / nullIP address from which the ticket was submitted, if captured.
{
  "ticketId": 10482,
  "ticketTopicId": 3,
  "ticketTopic": {
    "id": 3,
    "name": "Account Access",
    "responseTime": "Within 24 hours",
    "isDeleted": false,
    "isHidden": false
  },
  "userProfileId": 20091,
  "created": "2026-06-08T14:32:00Z",
  "text": "I am unable to log in to my account and need assistance resetting my credentials.",
  "parentTicketId": null,
  "isNew": true,
  "updateFieldRequest": "Email",
  "ipAddress": "192.168.1.100"
}

Error Codes

CodeWhen it happens
400Missing required fields (nickNameOrLogin or text), values below minimum length, or invalid enum value for updateFieldRequest or ticketType
401Token missing, expired, or invalid
403Insufficient permissions to create tickets on behalf of users
404User account matching nickNameOrLogin not found
500Internal server error

Common Mistakes

  • Omitting nickNameOrLogin or text, both of which are required — the request will fail with a 400 error.
  • Passing an empty string for nickNameOrLogin or text; both have a minimum length of 1.
  • Using an invalid updateFieldRequest value not present in the enum list — ensure the exact casing matches (e.g., "Ssn" not "SSN").
  • Using a ticketType integer not in the allowed set (1, 2, 21, 24, 26) — other values will be rejected.
  • Sending the request with an expired Bearer token; tokens last 10 minutes and must be refreshed via /api/auth/refresh.

Related Endpoints

  • POST /api/auth/v2 — Obtain a Bearer token for authentication
  • POST /api/auth/refresh — Refresh an expiring Bearer token
  • POST /api/support/createTicket — Create a support ticket for an authenticated user session

Example

curl -X POST https://api.banking.netevia.dev/api/support/createTicketOnLogin \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "nickNameOrLogin": "[email protected]",
    "text": "I am unable to log in to my account and need assistance resetting my credentials.",
    "topicId": 3,
    "updateFieldRequest": "Email",
    "ticketType": 1
  }'
Body Params
int32
string
required
length ≥ 1
string
required
length ≥ 1
string
enum
int32
enum
Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request 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