Get a rental contract for an organization
GET api/V3/{language}/org/{orgIdentifier}/rentalcontracts/{id}
You can get the rental contract id from /org/{orgIdentifier}/rentalcontracts
Request Information
URI Parameters
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
orgIdentifier (string) |
Amilia-specific organization identifier. This identifier can be either the organization number, such as 8008, or the organization URL identifier. You can find that by looking at the URL of your Amilia store. It may look like lower-case words separated by a dash, such as forest-explorers. Note that in v2 and v1 we call that the 'rewrite URL'. |
Required |
id (integer) |
Rental contract id |
Required |
Body Parameters
None.
Response Information
Resource Description
PARAMETERS | ||
---|---|---|
OrganizationId (integer) |
Id of the organization. This one cannot be substituted for rewriteUrl, contrary to the organization id in the query parameters |
|
ContractNumber (integer) |
Number of the contract |
|
Name (string) |
Resource name |
|
ClientId (integer) |
Id of the client |
|
AccountId (integer) |
Id of the account |
|
Bookings () |
Object containing facility bookings details (booking id, location id and name, start and end date, price and occurrence status) |
|
DateCreated (date) |
Format is 9999-12-31 |
|
Status (ContractState) |
Object containing the possible status values (case-insensitive). For a contract, possible values are All, Approved, Draft, and PendingApproval. |
|
Notes (string) |
For contracts, notes to display on the official contract, visible to the clients |
|
IsArchived (boolean) |
True if resource is archived |
|
Version (integer) | ||
LastUpdated (date) | ||
Id (integer) |
Resource id |
|
ContractNumber (string) |
Number of the contract |
|
AdminNotes (string) |
For contracts, private notes invisible to the clients |
|
SetupOption (string) |