Legal agreement or contract document between a business and a client. Tracks contract details, financial terms, duration, status, and specific terms and conditions.
https://api.mockly.codes/contracts?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/contractsGet a collection of contracts
/business/contracts/contracts/:idGet a single contract by ID
/business/contracts/:id/contracts/metaGet resource metadata and schema
/business/contracts/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/contracts?q=laptopGET https://api.mockly.codes/contracts?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 contracts
fetch('https://api.mockly.codes/contracts?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/contracts?count=10'
)
data = response.json()curl "https://api.mockly.codes/contracts?count=10"fetch('https://api.mockly.codes/contracts?nocache=true')idintegerUnique identifier for the contract record
random_intcontract_numberstringUnique contract reference number or identifier used for legal and administrative purposes
uuidclient_idintegerForeign key reference to the client or party the contract is with
random_inttitlestringShort descriptive title or name of the contract
sentencedescriptionstringDetailed description of the contract's purpose, scope, and objectives
paragraphvaluenumberTotal monetary value or contract amount agreed upon
pricecurrencystringISO currency code for the contract value (e.g., USD, EUR, GBP)
currencystart_datestringDate when the contract becomes effective and obligations begin
past_datedateend_datestringDate when the contract expires or terminates
future_datedatestatusstringCurrent status of the contract (e.g., draft, active, expired, terminated, renewed)
statustermsstringDetailed terms and conditions, obligations, and clauses of the contract
paragraphcountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request