You can call this operation to approve a specified ticket.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ApproveOrder

The operation that you want to perform. Set the value to ApproveOrder.

ApprovalType String Yes agree

The approval action. Valid values:

  • AGREE
  • CANCEL
  • REJECT
Tid Long   Yes -1

The ID of the tenant.

WorkflowInstanceId Long   Yes 1234

The ID of the approval workflow. You can query the value of this parameter from the GetOrderBaseInfo operation. For a ticket to be approved, the value of this parameter is an integer greater than 0.

Response parameters

Parameter Type Example Description
RequestId String 427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D

The ID of the request.

Success Boolean true

Indicates whether the request was successful.

ErrorMessage String UnknownError

Error message

ErrorCode String UnknownError

Error code

Examples

Sample request

http(s)://[Endpoint]/? Action=ApproveOrder
&ApprovalType=agree
&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

For a list of error codes, visit the API Error Center.