approve()
Approves one or more transactions that were submitted for approval.
Syntax
ApproveResult[] approveResults = stub.approve(new ApproveRequest[] approveRequests);
Usage
Use the approve() command to approve transactions which were submitted for approval. The maximum number of objects you can approve with one single call is 1,000.
For information about object types for which the XML API and SOAP API support approval-related operations, see Approval-Related Operations.
Arguments
|
Name |
Type |
Description |
|---|---|---|
|
|
|
Array of |
Response
ApproveResult[] — Array of ApproveResult objects.
Sample Code — C#
// approve an envelope
oaEnvelope env = new oaEnvelope();
env.id = "122";
oaApproval appr = new oaApproval();
appr.cc = "help@example.com"; // cc approval email to additional contacts
appr.notes = "Approval notes";
ApproveRequest ar = new ApproveRequest();
ar.approve = env;
ar.approval = appr;
ApproveResult[] results = _svc.approve(new ApproveRequest[] { ar });
Sample Code — Java
// approve an envelope which was submitted for approval
oaEnvelope env = new oaEnvelope();
env.setId("122");
oaApproval appr = new oaApproval();
appr.setCc("help@example.com"); // cc approval email to additional contacts
appr.setNotes("approval notes");
ApproveRequest ar = new ApproveRequest();
ar.setApproval(appr);
ar.setApprove( env );
ApproveResult[] results = stub.approve(new ApproveRequest[] { ar });