Retrieve a contract by its identifier
- Sandbox APIhttps://api-sandbox.lawvu.com/v2/contracts/{contractId}
- Production APIhttps://api.lawvu.com/v2/contracts/{contractId}
const contractId = '5348';
const resp = await fetch(
`https://api-sandbox.lawvu.com/v2/contracts/${contractId}`,
{method: 'GET'}
);
const data = await resp.text();
console.log(data);OK
The expiry date of the contract. The date and time uses the ISO-8601 format and will be in the Local timezone of the organization
Example:"2024-12-25T00:00:00"
A unique user defined identifier that can be used to reference another system
Example:"external-01"
The collection of fields associated with the contract
Example:
{ "my_text_field": "my text value", "my_decimal_field": 78659.84, "my_boolean_field": true, "my_date_field": "2025-05-06", "my_option_field": { "label": "Option 1", "value": "option_1" }, "my_multioption_field": [ { … }, { … } ], "my_user_field": { "email": "api.developer@lawvu.com", "firstName": "Api", "id": "f0f1e06e-3005-4093-af7f-1934d55617e1", "lastName": "Developer", "organization": { … }, "organizationId": 8134 } }
Is the contract only available to members.
An indicator where the contract requires membership to access
Default:false
Example:false
The current status of the contract
Enum:"Draft""Negotiating""Approval""Signing""Executed""Expired""Void"
Example:"Active"
Response
{ "id": 5348, "name": "My contract", "document": { "id": 9456, "name": "Standard NDA.docx", "version": 3 }, "type": { "id": 1234, "name": "Contractor Agreement" }, "owner": { "email": "api.developer@lawvu.com", "firstName": "Api", "id": "f0f1e06e-3005-4093-af7f-1934d55617e1", "lastName": "Developer", "organization": { … }, "organizationId": 8134 }, "expiry": "2024-12-25T00:00:00", "externalId": "external-01", "fields": { "my_text_field": "my text value", "my_decimal_field": 78659.84, "my_boolean_field": true, "my_date_field": "2025-05-06", "my_option_field": { … }, "my_multioption_field": [ … ], "my_user_field": { … } }, "restricted": false, "status": "Active", "teamAssigned": { "id": 469, "name": "Legal - Commercial" }, "created": { "dateUtc": "2024-12-25T00:00:00Z", "user": { … }, "userName": "api.developer@lawvu.com" } }