Reviews a ticket.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ApproveOrder |
The operation that you want to perform. Set the value to ApproveOrder. |
| Tid | Long | Yes | 3*** |
The ID of the tenant. You can call the GetUserActiveTenant operation to obtain the tenant ID. |
| WorkflowInstanceId | Long | Yes | 1234 |
The ID of the approval process. You can call the GetOrderBaseInfo operation to obtain the ID of the approval process. |
| ApprovalType | String | Yes | AGREE |
The action that you want to perform on the ticket. Valid values:
|
| RegionId | String | No | cn-hangzhou |
The ID of the region in which you want to call this operation. |
| Comment | String | No | test |
The description of the ticket. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D |
The ID of the request. |
| ErrorCode | String | UnknownError |
The error code returned. |
| ErrorMessage | String | UnknownError |
The error message returned. |
| Success | Boolean | true |
Indicates whether the request was successful. Valid values:
|
Examples
Sample request
http(s)://dms-enterprise.aliyuncs.com/?Action=ApproveOrder
&Tid=3***
&WorkflowInstanceId=1234
&ApprovalType=AGREE
&Comment=test
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ApproveOrderResponse>
<RequestId>427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D</RequestId>
<Success>true</Success>
</ApproveOrderResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.