CreateTicket

更新时间:
复制 MD 格式

Use CreateTicket to create a ticket.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Instance ID.

ccc-test

TemplateId

string

No

Ticket template ID.

e9e4c76c-948d-4a6e-9ce2-9da0f5967a73

CustomerId

string

No

Customer ID, the customer ID in Cloud Contact Center customer profiles.

51e155ce-3747-4f21-b402-13c69597b920

Title

string

No

Ticket title.

售后工单。

Source

string

No

Ticket source.

CHAT

ContactId

string

No

The ID of the call.

job-38860977107324****

Context

string

No

Ticket field information.

{"productName":"玩具1"}

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

HTTP status code.

200

Code

string

Response code.

OK

Message

string

Response message.

RequestId

string

Request ID.

A450574A-337F-43E2-BC59-9C6594C994C6

Data

string

Returned data, ticket ID.

3d26b90a-c5d2-4b09-8219-60cda1******

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "Code": "OK",
  "Message": "无",
  "RequestId": "A450574A-337F-43E2-BC59-9C6594C994C6",
  "Data": "3d26b90a-c5d2-4b09-8219-60cda1******"
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Blank The parameter %s must not be null.
400 Parameter.Empty The parameter %s must not be null or empty.
400 Parameter.Maximum The parameter %s must be less than or equal to %s.
400 Parameter.Minimum The parameter %s must be greater than or equal to %s.
400 Parameter.Null The parameter %s must not be null.
404 NotExists.InstanceId The specified instance %s does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.