Reservations
For authentication instructions, see API overview.
Endpoints
get
List all reservations
Returns a list of reservations. The reservations 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
cURL
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/reservationsResponse
No response schemapost
Create reservation
Create reservation. You need to pass through any required fields, and you can optionally pass through other fields.
Request body
customerIdstringcustomerNamestringContactsarraysalesManstringunitIdstringstatusstringreservationDatestringvalidToDatestringdownPaymentnumberreservationFeesnumberaccountIdstring
Request
cURL
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/reservations \ -d 'customerId="635c2d3d6e93d9350ce6fce3"' \ -d 'customerName="Mazen Mohamed"' \ -d 'Contacts="array"' \ -d 'salesMan="Nageeb Saweras"' \ -d 'unitId="635c2f3d6e93d9350ce6fc03"' \ -d 'status="Success"' \ -d 'reservationDate="22/11/2022"' \ -d 'validToDate="27/11/2022"' \ -d 'downPayment=3000' \ -d 'reservationFees=200' \ -d 'accountId="93949djfdf"'Response
No response schemaget
Retrieve reservation
Returns a single reservatio, which you can request by passing through an id in the url.
Path parameters
idstringID of the reservation
Request
cURL
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/reservations/:idResponse
No response schemaput
Update reservation
Path parameters
idstringID of the reservation
Request body
customerIdstringcustomerNamestringContactsarraysalesManstringunitIdstringstatusstringreservationDatestringvalidToDatestringdownPaymentnumberreservationFeesnumberaccountIdstring
Request
cURL
export ICLOUDREADY_API_KEY=[your api key]curl -X PUT \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/reservations/:id \ -d 'customerId="635c2d3d6e93d9350ce6fce3"' \ -d 'customerName="Mazen Mohamed"' \ -d 'Contacts="array"' \ -d 'salesMan="Nageeb Saweras"' \ -d 'unitId="635c2f3d6e93d9350ce6fc03"' \ -d 'status="Success"' \ -d 'reservationDate="22/11/2022"' \ -d 'validToDate="27/11/2022"' \ -d 'downPayment=3000' \ -d 'reservationFees=200' \ -d 'accountId="93949djfdf"'Response
No response schemapatch
Update reservation soft
Update reservation soft by setting the values of the parameters passed. Any parameters not set will be unchanged.
Path parameters
idstringID of the reservation
Request
cURL
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/reservations/:idResponse
No response schemadelete
Delete reservation
Path parameters
idstringID of the reservation
Request
cURL
export ICLOUDREADY_API_KEY=[your api key]curl -X DELETE \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/reservations/:id