All Products
Search
Document Center

Data Management:ApproveOrder

更新時間:Oct 21, 2024

Reviews a ticket.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TidlongNo

The ID of the tenant. You can call the GetUserActiveTenant operation to obtain the tenant ID.

-1
WorkflowInstanceIdlongYes

The ID of the approval process. You can call the GetOrderBaseInfo operation to obtain the ID of the approval process.

1234
ApprovalTypestringYes

The action that you want to perform on the ticket. Valid values:

  • AGREE
  • CANCEL
  • REJECT
  • TRANSFER
  • ADD_APPROVAL_NODE
agree
CommentstringNo

The description of the ticket.

test
NewApproverlongNo

The ID of the user to which the ticket is transferred. If ApprovalType is set to TRANSFER, you need to specify this parameter.

12***
OldApproverlongNo

The ID of the user that transfers the ticket to another user. The default value is the ID of the current user. If the current user is an administrator or a database administrator (DBA), the user can change the value of this parameter to the ID of another user.

23***
ApprovalNodeIdlongNo

If ApprovalType is set to ADD_APPROVAL_NODE, you need to specify this parameter. The ID of the user that is added as the new approval node. This node must be a user-defined approval node. You can call the ListUserDefineWorkFlowNodes operation to obtain the value of this parameter.

1
ApprovalNodePosstringNo

The position of the new approval node. You must specify this parameter if ApprovalType is set to ADD_APPROVAL_NODE. Valid values:

  • PRE_ADD_APPROVAL_NODE: before the current approval node.
  • POST_ADD_APPROVAL_NODE: after the current approval node.
POST_ADD_APPROVAL_NODE
NewApproverListstringNo
Note You can specify this parameter if ApprovalType is set to TRANSFER. You need to only specify one of NewApproverList and NewApprover.

The IDs of the users to whom the ticket is transferred. Separate multiple IDs with commas (,).

154***,155***,156***
RealLoginUserUidstringNo

The UID of the Alibaba Cloud account that actually calls the API.

21400447956867****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D
ErrorCodestring

The error code returned.

UnknownError
ErrorMessagestring

The error message returned.

UnknownError
Successboolean

Indicates whether the request is successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-11The request parameters of the API has changedView Change Details
2024-04-18The request parameters of the API has changedView Change Details
2023-07-06The request parameters of the API has changedView Change Details