Contracts
For authentication instructions, see API overview.
Endpoints
Retrieve all
Returns a single al, which you can request by passing through an id in the url.
Query parameters
limitintegerThe number of records to return
pageintegerThe page number
orderstringThe order of the records
sortBystringThe sort of the records
fieldsstringThe filter of the records
pstringpolicyFilters
qstringsearch query
Request
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contractsResponse
No response schemaCreate contract
Create contract. You need to pass through any required fields, and you can optionally pass through other fields.
Request body
isCompanybooleancapitalintegermanagerstringnamestringstreet1stringstreet2stringzipCodestringcitystringcontactsarraycontractstringfrequencystringbeginDatestringendDatestringterminationDatestringguarantyPaybacknumbercustomerarrayunitsarrayguarantynumberreferencestringisVatbooleanvatRationumbercommissioneRationumberdiscountnumberlegalFormstringsiretstringdocumentsarraycontractDatestringnotesstringrecordSourcestringreservationIdstringcustomerIdstringtermsarraybankInfoobjectattachmentsarraydescriptionstringmanualbooleanmanualTermsarray
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X POST -H 'Content-Type: application/json' \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts \ -d 'isCompany="boolean"' \ -d 'capital=500000' \ -d 'manager="string"' \ -d 'name="string"' \ -d 'street1="string"' \ -d 'street2="string"' \ -d 'zipCode="string"' \ -d 'city="string"' \ -d 'contacts="array"' \ -d 'contract="string"' \ -d 'frequency="days"' \ -d 'beginDate="20/12/2022"' \ -d 'endDate="25/12/2022"' \ -d 'terminationDate="22/12/2022"' \ -d 'guarantyPayback="number"' \ -d 'customer="array"' \ -d 'units="array"' \ -d 'guaranty=2000' \ -d 'reference="string"' \ -d 'isVat="boolean"' \ -d 'vatRatio="number"' \ -d 'commissioneRatio="number"' \ -d 'discount=500' \ -d 'legalForm="string"' \ -d 'siret="string"' \ -d 'documents="array"' \ -d 'contractDate="string"' \ -d 'notes="string"' \ -d 'recordSource="string"' \ -d 'reservationId="64520b0902c0fa6233119c2b"' \ -d 'customerId="64520b0902c0fa6233119c2b"' \ -d 'terms="array"' \ -d 'bankInfo="object"' \ -d 'attachments="array"' \ -d 'description="string"' \ -d 'manual="boolean"' \ -d 'manualTerms="array"'Response
No response schemaRetrieve contract
Returns a single contrac, which you can request by passing through an id in the url.
Path parameters
idstringID of the contract
Request
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/:idResponse
No response schemaUpdate contract
Path parameters
idstringID of the contract
Request body
isCompanybooleancapitalintegermanagerstringnamestringstreet1stringstreet2stringzipCodestringcitystringcontactsarraycontractstringfrequencystringbeginDatestringendDatestringterminationDatestringguarantyPaybacknumbercustomerarrayunitsarrayguarantynumberreferencestringisVatbooleanvatRationumbercommissioneRationumberdiscountnumberlegalFormstringsiretstringdocumentsarraycontractDatestringnotesstringrecordSourcestringreservationIdstringcustomerIdstringtermsarraybankInfoobjectattachmentsarraydescriptionstringmanualbooleanmanualTermsarray
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X PUT \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/:id \ -d 'isCompany="boolean"' \ -d 'capital=500000' \ -d 'manager="string"' \ -d 'name="string"' \ -d 'street1="string"' \ -d 'street2="string"' \ -d 'zipCode="string"' \ -d 'city="string"' \ -d 'contacts="array"' \ -d 'contract="string"' \ -d 'frequency="days"' \ -d 'beginDate="20/12/2022"' \ -d 'endDate="25/12/2022"' \ -d 'terminationDate="22/12/2022"' \ -d 'guarantyPayback="number"' \ -d 'customer="array"' \ -d 'units="array"' \ -d 'guaranty=2000' \ -d 'reference="string"' \ -d 'isVat="boolean"' \ -d 'vatRatio="number"' \ -d 'commissioneRatio="number"' \ -d 'discount=500' \ -d 'legalForm="string"' \ -d 'siret="string"' \ -d 'documents="array"' \ -d 'contractDate="string"' \ -d 'notes="string"' \ -d 'recordSource="string"' \ -d 'reservationId="64520b0902c0fa6233119c2b"' \ -d 'customerId="64520b0902c0fa6233119c2b"' \ -d 'terms="array"' \ -d 'bankInfo="object"' \ -d 'attachments="array"' \ -d 'description="string"' \ -d 'manual="boolean"' \ -d 'manualTerms="array"'Response
No response schemaUpdate contract soft
Update contract soft by setting the values of the parameters passed. Any parameters not set will be unchanged.
Path parameters
idstringID of the contract
Request
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/:idResponse
No response schemaDelete contract
Path parameters
idstringID of the contract
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X DELETE \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/:idResponse
No response schemaList all contracts
Returns a list of contracts. The contracts are returned in sorted order, with the most recent appearing first.
Query parameters
limitintegerThe number of records to return
pageintegerThe page number
orderstringThe order of the records
sortBystringThe sort of the records
fieldsstringThe filter of the records
pstringpolicyFilters
qstringsearch query
Request
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/allResponse
No response schemaCreate contracts date
Create contracts date. You need to pass through any required fields, and you can optionally pass through other fields.
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X POST -H 'Content-Type: application/json' \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/date-rangeResponse
No response schemaCreate contract
Create contract. You need to pass through any required fields, and you can optionally pass through other fields.
Path parameters
idstringID of the contract
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X POST -H 'Content-Type: application/json' \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/:id/renewResponse
No response schemaCreate contract
Create contract. You need to pass through any required fields, and you can optionally pass through other fields.
Path parameters
idstringID of the contract
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X POST -H 'Content-Type: application/json' \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/contracts/:id/extend