post https://api-ext.zluri.com/v2/contracts
This endpoint fetches contract data based on filters like name, dates, status, and other contract attributes. Supports pagination and sorting.
Supported Filters:
| Field | Type | Description / Allowed Values |
|---|---|---|
contract_id | string | Contract ID |
contract_name | string | Contract name |
contract_status | enum | Contract status |
contract_start_date | date | Contract start date (ISO 8601 format, use with field_order) |
contract_end_date | date | Contract end date (ISO 8601 format, use with field_order) |
contract_renew_by | date | Contract renewal date (ISO 8601 format, use with field_order) |
contract_cancel_by | date | Contract cancellation date (ISO 8601 format, use with field_order) |
archive | boolean | Archive status (true/false) |
Date Range Filtering:
For date fields, use field_order with operators:
gte- Greater than or equal tolte- Less than or equal toeq- Equal tone- Not equal tolt- Less thangt- Greater than
Example Date Filter:
{
"field_id": "contract_start_date",
"field_order": ["gte"],
"field_values": ["2023-10-01"]
}
Custom Fields Filter Format:
{
"field_id": "custom_fields",
"field_values": {
"custom_field_id": "679b613f315ee0a11cb67bd1",
"custom_field_values": ["India"]
}
}
Use these as field_id values inside the filter_by array in the request body to filter results. For custom fields, the field_id will always be custom_fields, while the field_values object must contain custom_field_id (the ID of the custom field) and custom_field_values (an array of values to filter by).
