Skip to main content

Contract manipulation


Depending on the flow, it may be necessary to make some calls to complete the flow of a contract.


Manager Approval​


If the contract is proposed by a consultant, after the documents are generated, the manager's approval is required before it is sent for signature. Only the manager approves or rejects: the consultant accesses the same endpoint, but only to cancel.

Available on
ProfileHostRequired permission
Managermanager-apiRead and write
Consultantconsultant-apiCreate assignment contracts

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/assignment_contract/assignment_contract/ASSIGNMENT_CONTRACT_KEY
METHOD
PUT
Request Body
{
"status": "denied",
"denial_reason": "Insufficient assignor documentation"
}

Body Params​

FieldTypeDescriptionCharacters
status *stringManager's decision: approved or denied.--
denial_reasonstringDescription of the reason for the rejection. Returned in the denied status webhook.Up to 500

*Required fields

Response​

STATUS
202

Errors​

StatusCodeWhen it happens
404ACT000023assignment_contract_key not found.
400ACT000025Approval or rejection sent by someone other than the manager.
400ACT000077The current status does not allow the decision. approved requires pending_manager_approval; denied accepts pending_manager_approval or pending_document.

Authentication, permission and host errors: see API errors.


Manual Signature Submission​


If the template configures manual submission for signature, it is possible to group several contracts, as long as they have the same manager, assignor and guarantors, into the same signature batch. Every contract in the batch must be in pending_signature_submission.

Available on
ProfileHostRequired permission
Managermanager-apiWrite

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/assignment_contract/signature_batch
METHOD
POST
Request Body
{
"assignment_contract_keys": [
"1caff47c-bd05-48b0-a6bc-9569f5070f6b",
"41d6ff41-1dac-4df7-9e50-d15210ec57f3"
]
}

Body Params​

FieldTypeDescriptionCharacters
assignment_contract_keys *arrayList of contracts to be sent in the same batch--

*Required fields

Response​

STATUS
202

Errors​

StatusCodeWhen it happens
404ACT000023One of the keys in assignment_contract_keys was not found.
400ACT000088One of the contracts is not in pending_signature_submission.
404ACT000089The contracts in the batch do not have the same related parties (manager, assignor, guarantors). Only group contracts with the same parties.
400ACT000165Every contract in the batch comes from templates that forbid standalone signature. Include at least one contract that allows it.

Authentication, permission and host errors: see API errors.


Contract Cancellation​


At any stage, except when the contract is already signed, it is possible to cancel it. If it is under signature, the signature event is also canceled.

Available on
ProfileHostRequired permission
Managermanager-apiRead and write
Consultantconsultant-apiCreate assignment contracts

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/assignment_contract/assignment_contract/ASSIGNMENT_CONTRACT_KEY
METHOD
PUT
Request Body
{
"status": "canceled"
}

Body Params​

FieldTypeDescriptionCharacters
status *stringcanceled--

*Required fields

Response​

STATUS
202

Errors​

StatusCodeWhen it happens
404ACT000023assignment_contract_key not found.
400ACT000077The contract is signed or denied and cannot be canceled.

Authentication, permission and host errors: see API errors.