You can call CloseOrder to close a ticket.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes CloseOrder

The operation that you want to perform. Valid values: CloseOrder .

CloseReason String Yes close reason

The reason why the instance was closed.

OrderId Long Yes 1343

The ticket ID.

Tid Long Yes -1

The ID of the tenant.

Note The tenant ID is taken from the avatar in the upper-right corner of the system. For more information, see Tenant ID and Tenant .

Response parameters

Parameter Type Example Description
ErrorCode String UnknownError

The error code.

ErrorMessage String UnknownError

The error message of the failure.

RequestId String 427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D

The ID of the request.

Success Boolean true

Indicates whether the call was successful.

Examples

Sample requests


     http(s)://[Endpoint]/? Action=CloseOrder &CloseReason=close reason &OrderId=1343 &Tid=-1 &<common request parameters> 
   

Sample success responses

XML format


     <RequestId>427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D</RequestId> <Success>true</Success> 
   

JSON Format


     { "RequestId": "427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D", "Success": true } 
   

Error codes

Go to the Error Center For more information, see error codes.