Trouble Ticket Open API
-
- UpdatedJan 30, 2025
- 37 minutes to read
- Yokohama
- API reference
The Trouble Ticket Open API provides endpoints to create, update, and retrieve data from the Case [sn_customerservice_case] and Incident [incident] tables.
Use this API to manage ticket information between external ticketing systems and the Now Platform.
This API is included in the Telecommunications Assurance Workflows application, which is available on the ServiceNow Store. The Customer Service (com.sn_customerservice) and Customer Service Install Base Management (com.snc.install_base) applications are required to use this API with the Case [sn_customerservice_case] table.
This API is provided within the sn_ind_tsm_sdwan
namespace.
The calling user must have the ticket_integrator role.
This API can be extended to make customizations around required parameters, request body validation, additional REST operations, and field mappings. For more information, see the Trouble Ticket Open API Developer Guide.
The Trouble Ticket Open API is a ServiceNow® implementation of the TM Forum Trouble Ticket Management API REST specification. This implementation is based on the TMF621 Trouble Ticket Management API REST Specification Release 19, June 2019. The Trouble Ticket Open API is conformance certified by TM Forum.
Trouble Ticket - GET /sn_ind_tsm_sdwan/ticket/troubleTicket
Retrieves a list of all trouble ticket records from the Case [sn_customerservice_case] and Incident [incident] tables.
URL format
Default URL: /api/sn_ind_tsm_sdwan/ticket/troubleTicket
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Response body parameters (JSON)
Example: cURL request
This example returns specified fields for the first five trouble ticket case records.
Response body.
Trouble Ticket - GET /sn_ind_tsm_sdwan/ticket/troubleTicket/{id}
Retrieves a specified record from the Case [sn_customerservice_case] or Incident [incident] table.
URL format
Default URL: /api/sn_ind_tsm_sdwan/ticket/troubleTicket/{id}
Supported request parameters
Name | Description |
---|---|
id | Sys_id of the case or incident record to retrieve. Data type: String Table: Case [sn_customerservice_case] or Incident [incident] |
Name | Description |
---|---|
fields | List of fields to return in the response. Invalid fields are ignored. Valid values:
Data type: String Default: Returns all fields. |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected for one or
more of the following reasons.
|
404 | Record not found. A record associated with the ID is not found in the Case [sn_customerservice_case] or Incident [incident] table. |
Response body parameters (JSON)
Example: cURL request
This example retrieves a trouble ticket record from the Case [sn_customerservice_case] table.
Response body.
Trouble Ticket - GET /sn_ind_tsm_sdwan/troubleticket/{ticketType}/{id}
Retrieves a specified record from the Case [sn_customerservice_case] or Incident [incident] table.
URL format
Default URL: /api/sn_ind_tsm_sdwan/troubleticket/{ticketType}/{id}
Supported request parameters
Name | Description |
---|---|
ticketType | Type of ticket. This value determines whether a record is retrieved from the Case [sn_customerservice_case] or Incident [incident] table. Valid values:
Data type: String |
id | Sys_id of the case or incident record to retrieve. Data type: String |
Name | Description |
---|---|
fields | Comma-separated list of fields to return in the response. Invalid fields are ignored. If this value is not passed in, all fields are returned. Valid fields:
Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected for one or
more of the following reasons.
|
404 | Record not found. A record associated with the ID is not found in the Case [sn_customerservice_case] or Incident [incident] table. |
Response body parameters (JSON or XML)
Example: cURL request
This example gets the name, description, severity, and status of a case.
Response body.
Trouble Ticket - PATCH /sn_ind_tsm_sdwan/ticket/troubleTicket/{id}
Updates a specified record in the Case [sn_customerservice_case] or Incident [incident] table.
URL format
Default URL: /api/sn_ind_tsm_sdwan/ticket/troubleTicket/{id}
Supported request parameters
Name | Description |
---|---|
id | Sys_id of the case or incident record to update. Data type: String Table: Case [sn_customerservice_case] or Incident [incident] |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Content-Type | Data format of the request body. Only supports application/json. |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected for one or
more of the following reasons.
|
404 | Record not found. A record associated with the ID is not found in the Case [sn_customerservice_case] or Incident [incident] table. |
Response body parameters (JSON)
Example: cURL request
This example updates a case record.
Response body.
Trouble Ticket - PATCH /sn_ind_tsm_sdwan/troubleticket/{ticketType}/{id}
Updates a record in the Case [sn_customerservice_case] or Incident [incident] table.
URL format
Default URL: /api/sn_ind_tsm_sdwan/troubleticket/{ticketType}/{id}
Supported request parameters
Name | Description |
---|---|
ticketType | Type of ticket. This value determines whether a record is updated in the Case [sn_customerservice_case] or Incident [incident] table. Valid values:
Data type: String |
id | Sys_id of the case or incident record to update. Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Content-Type | Data format of the request body. Only supports application/json. |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected for one or
more of the following reasons.
|
404 | Record not found. A record associated with the ID is not found in the Case [sn_customerservice_case] or Incident [incident] table. |
Response body parameters (JSON or XML)
Example: cURL request
This example updates a case record.
Response body.
Trouble Ticket - POST /sn_ind_tsm_sdwan/ticket/troubleTicket
Creates a record in the Case [sn_customerservice_case] or Incident [incident] table.
URL format
Default URL: /api/sn_ind_tsm_sdwan/ticket/troubleTicket
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Content-Type | Data format of the request body. Only supports application/json. |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
201 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected for one or
more of the following reasons.
|
Response body parameters (JSON)
Example: cURL request
This example creates a trouble ticket case record.
Response body.
Trouble Ticket - POST /sn_ind_tsm_sdwan/troubleticket/{ticketType}
Creates a record in the Case [sn_customerservice_case] or Incident [incident] table.
URL format
Default URL: /api/sn_ind_tsm_sdwan/troubleticket/{ticketType}
Supported request parameters
Name | Description |
---|---|
ticketType | The type of ticket. This value determines whether the record is created in the Case [sn_customerservice_case] or Incident [incident] table. Valid values:
Data type: String |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Content-Type | Data format of the request body. Only supports application/json. |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
201 | Successful. The request was successfully processed. |
400 | Bad Request. A bad request type or malformed request was detected for one or
more of the following reasons.
|
Response body parameters (JSON or XML)
Example: cURL request
This example creates a case with high priority and open state.
Response body.
On this page
- Trouble Ticket - GET /sn_ind_tsm_sdwan/ticket/troubleTicket
- Trouble Ticket - GET /sn_ind_tsm_sdwan/ticket/troubleTicket/{id}
- Trouble Ticket - GET /sn_ind_tsm_sdwan/troubleticket/{ticketType}/{id}
- Trouble Ticket - PATCH /sn_ind_tsm_sdwan/ticket/troubleTicket/{id}
- Trouble Ticket - PATCH /sn_ind_tsm_sdwan/troubleticket/{ticketType}/{id}
- Trouble Ticket - POST /sn_ind_tsm_sdwan/ticket/troubleTicket
- Trouble Ticket - POST /sn_ind_tsm_sdwan/troubleticket/{ticketType}