Rental APIs
Get rental contract item
HTTP method | GET |
URI | https://api.rambase.net/rental/contracts/{rentalContractId}/items/{itemId} |
Supported formats | Xml, Html, Json (ex. $format=json) |
- URI parameter {rentalContractId} |
Rental contract identifier
Integer, minimum 100000 |
- URI parameter {itemId} |
Rental contract item identifier
Integer, minimum 1 |
Custom fields | Custom fields supported |
Successful HTTP status code | 200 |
API resource identifier | 5769, version 50 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
$showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
$lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
$access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
$db String, optional | Set the database/company for the request |
$format String, optional | Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json" |
$useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
$select String, optional | Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information. |
$expand String, optional | Use to include output fields that are not returned by default in the response. Accepts a comma-separated list of expandable field names. See the Expand and Select page for more information. |
$showCustomFields Boolean, optional | Set to "true" to include custom fields. Default value is false. |
Read more about filters and sorting on how to use filter parameters and named filters.
Read more about filters and sorting on how to use sortable parameters
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
RentalContractItemId
Rental contract item identifier
>{Integer}</RentalContractItemId>LineNumber
Line- or sequence number of the item
>{Integer}</LineNumber>CreatedAt
Date of item creation
>{Datetime}</CreatedAt>RentalContractVersionId
Rental contract version identifier
>{Integer}</RentalContractVersionId>Version
Rental contract item version
>{Integer}</Version>Revision
Rental contract item revision
>{Integer}</Revision>RentalContractVersionLink
Rentlal contract version reference
>{String}</RentalContractVersionLink>RentalContractQuoteId
Rental contract quote identifier
>{Integer}</RentalContractQuoteId>Name
Quote name
>{String}</Name>IsActive
Indicates whether version is active one
>{Boolean}</IsActive>Status
Status with regard to the stage of the item
Possible domain values can be found here
>{String}</Status>Type
Item type: 1- Subscription, 2 - Rental
Possible domain values can be found here
>{Integer}</Type>Note
Note for contract item
>{String}</Note>InternalNote
Internal note for the contract item
>{String}</InternalNote>CustomersReferenceNumber
Customers item reference number. Typically to the customers internal system.
>{String}</CustomersReferenceNumber>RentalContractItemId
Rental contract item identifier
>{Integer}</RentalContractItemId>VATPercent
Value added tax percent
>{Decimal}</VATPercent>RateChangeType
Change type of recurring rate (FIXED, MANUAL, AUTO). Defines if and how the recurring rate can be updated.
Possible domain values can be found here
>{Integer}</RateChangeType>CustomerId
Customer identifier
>{Integer}</CustomerId>CustomerLink
Customer reference
>{String}</CustomerLink>ProductId
Product identifier
>{Integer}</ProductId>Name
Name of the product
>{String}</Name>Description
Description of the product
>{String}</Description>ProductLink
Product reference
>{String}</ProductLink>Quantity
Number of units ordered
>{Integer}</Quantity>DiscountPercent
The discount in percent for this item.
>{Decimal}</DiscountPercent>RecurringRateId
Recurring rate identifier
>{Integer}</RecurringRateId>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>RateInterval
Interval of recurring rate
Possible domain values can be found here
>{Integer}</RateInterval>Type
Type of recurring rate: 1 - Standard, 2 - Special
Possible domain values can be found here
>{Integer}</Type>NumberOfRateSteps
Number of rate steps
>{Integer}</NumberOfRateSteps>RecurringRateLink
Recurring rate reference
>{String}</RecurringRateLink>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>Rate
Value of step rate
>{Decimal}</Rate>EffectiveDate
Start date for the recurring contract item
>{Date}</EffectiveDate>ExpirationDate
End date for the recurring contract item
>{Date}</ExpirationDate>TerminationDate
Termination date of item
>{Date}</TerminationDate>AverageRatePerDay
Average rate per day
>{Decimal}</AverageRatePerDay>Seller
Reference to the seller of the item
>EmployeeId
Employee identifier
>{Integer}</EmployeeId>FirstName
First name of employee
>{String}</FirstName>LastName
Last name of employee
>{String}</LastName>EmployeeLink
Employee reference
>{String}</EmployeeLink>Accounting
Accounting details for the item, including fixed/system dimensions. For all dimensions, see seperate resource.
>VATCode
Code that determines VAT rules used for VAT calculations.
>{String}</VATCode>VATPercent
Value added tax percent
>{Decimal}</VATPercent>GeneralLedgerAccountId
General ledger account identifier
>{Integer}</GeneralLedgerAccountId>GeneralLedgerAccountLink
General ledger account reference
>{String}</GeneralLedgerAccountLink>Department
The department related to the item. One of the system/fixed account dimensions.
>DepartmentId
Department identifier
>{Integer}</DepartmentId>DepartmentLink
Finance department reference
>{String}</DepartmentLink>FinanceProject
The finance project related to the item. One of the system/fixed account dimensions.
>FinanceProjectId
Finance project identifier
>{Integer}</FinanceProjectId>FinanceProjectLink
Finance project reference
>{String}</FinanceProjectLink>Asset
The asset related to the item. One of the system/fixed account dimensions.
>AssetId
Asset identifier
>{Integer}</AssetId>AssetLink
Asset reference
>{String}</AssetLink>RentalContractItemId
Rental contract item identifier
": "{Integer}",LineNumber
Line- or sequence number of the item
": "{Integer}",CreatedAt
Date of item creation
": "{Datetime}",RentalContractVersionId
Rental contract version identifier
": "{Integer}",Version
Rental contract item version
": "{Integer}",Revision
Rental contract item revision
": "{Integer}",RentalContractVersionLink
Rentlal contract version reference
": "{String}"RentalContractQuoteId
Rental contract quote identifier
": "{Integer}",Name
Quote name
": "{String}"IsActive
Indicates whether version is active one
": "{Boolean}",Status
Status with regard to the stage of the item
Possible domain values can be found here
": "{String}",Type
Item type: 1- Subscription, 2 - Rental
Possible domain values can be found here
": "{Integer}",Note
Note for contract item
": "{String}",InternalNote
Internal note for the contract item
": "{String}",CustomersReferenceNumber
Customers item reference number. Typically to the customers internal system.
": "{String}",RentalContractItemId
Rental contract item identifier
": "{Integer}"VATPercent
Value added tax percent
": "{Decimal}",RateChangeType
Change type of recurring rate (FIXED, MANUAL, AUTO). Defines if and how the recurring rate can be updated.
Possible domain values can be found here
": "{Integer}",CustomerId
Customer identifier
": "{Integer}",CustomerLink
Customer reference
": "{String}"ProductId
Product identifier
": "{Integer}",Name
Name of the product
": "{String}",Type
Type of product
Possible domain values can be found here
": "{String}",Description
Description of the product
": "{String}",ProductLink
Product reference
": "{String}"Quantity
Number of units ordered
": "{Integer}",DiscountPercent
The discount in percent for this item.
": "{Decimal}",RecurringRateId
Recurring rate identifier
": "{Integer}",Status
Status of recurring rate
Possible domain values can be found here
": "{String}",Currency
Three character code following the ISO 4217 standard
": "{String}",RateInterval
Interval of recurring rate
Possible domain values can be found here
": "{Integer}",Type
Type of recurring rate: 1 - Standard, 2 - Special
Possible domain values can be found here
": "{Integer}",NumberOfRateSteps
Number of rate steps
": "{Integer}",RecurringRateLink
Recurring rate reference
": "{String}"Currency
Three character code following the ISO 4217 standard
": "{String}",Rate
Value of step rate
": "{Decimal}"EffectiveDate
Start date for the recurring contract item
": "{Date}",ExpirationDate
End date for the recurring contract item
": "{Date}",TerminationDate
Termination date of item
": "{Date}"AverageRatePerDay
Average rate per day
": "{Decimal}",Seller
Reference to the seller of the item
": {EmployeeId
Employee identifier
": "{Integer}",FirstName
First name of employee
": "{String}",LastName
Last name of employee
": "{String}",EmployeeLink
Employee reference
": "{String}"Accounting
Accounting details for the item, including fixed/system dimensions. For all dimensions, see seperate resource.
": {VATCode
Code that determines VAT rules used for VAT calculations.
": "{String}",VATPercent
Value added tax percent
": "{Decimal}"GeneralLedgerAccountId
General ledger account identifier
": "{Integer}",GeneralLedgerAccountLink
General ledger account reference
": "{String}"Department
The department related to the item. One of the system/fixed account dimensions.
": {DepartmentId
Department identifier
": "{Integer}",DepartmentLink
Finance department reference
": "{String}"FinanceProject
The finance project related to the item. One of the system/fixed account dimensions.
": {FinanceProjectId
Finance project identifier
": "{Integer}",FinanceProjectLink
Finance project reference
": "{String}"Asset
The asset related to the item. One of the system/fixed account dimensions.
": {AssetId
Asset identifier
": "{Integer}",AssetLink
Asset reference
": "{String}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return:
Error 102738 HTTP 404 | Price list not found |
Error 100055 HTTP 403 | You have only admittance to your own objects |
Error 100001 HTTP 404 | Address not found |