Set the terms of your contract

Create a contract by answering simple questions

Once you've fetched the terms of a contract, you'll be able to set the fields of the contract. A contract object is stored in a bundle which means that you'll need to create one before you can set the terms.

How to create a bundle for your contract?

Contracts are grouped within a Team in bundles. A bundle will automatically be associated to a contract if it is created on its own. A bundle can contain multiple contracts (e.g. Employment offer letter, Employment contract, ...)

To create an automatically generated bundle for your contract, you'll simply need to post the Team Id to the POST bundle endpoint.

curl --request POST \
     --url https://sandbox.legislate.tech/v1/teams/{{Team Id}}/contracts \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {{API Key}}' \
     --header 'Content-Type: application/json'

How to set the terms of a contract?

Once you've created your bundle and fetched the terms you can use the patch endpoint to set them.