Rental APIs
List of rental contract items valid for specific version
HTTP method | GET |
URI | https://api.rambase.net/rental/contracts/{rentalContractId}/versions/{versionId}/items |
Supported formats | Xml, Html, Json (ex. $format=json) |
- URI parameter {rentalContractId} |
Rental contract identifier
Integer, minimum 100000 |
- URI parameter {versionId} |
Rental contract version identifier
Integer, minimum 1 |
Maximum page size ($top) | 80 |
Successful HTTP status code | 200 |
API resource identifier | 6024, version 7 |
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 |
$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. |
$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. |
$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. |
$format String, optional | Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json" |
$top String, optional | Specifies number of rows to return in each page. Maximum limit is specific for each API resource. Default value is 10. |
$pageKey String, optional | Use to navigate to first, previous, next or last page in list. Add $expand=PagingDetails to add the different keys to the response. |
$filter String, optional | Use to filter the result list, see the Filtering and sorting page for more information. |
$orderby String, optional | Use to order the result list, see the Filtering and sorting page for more information. |
$inlinecount String, optional | Set to "allpages" to include total number of rows in the response. Possible values are: "allpages", "none" |
Read more about filters and sorting on how to use filter parameters and named filters.
OrderItems() Named filter | Order items |
QuoteItems() Named filter | Quote items |
RentalItems() Named filter | Rental items |
SubscriptionItems() Named filter | Subscription items |
CreatedAt Datetime | Date of item creation. Available macros: now(), startOfDay(), endOfDay(), currentDate(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
CustomersReferenceNumber String | Customers item reference number. Typically to the customers internal system. |
EffectiveDate Date | Start date for the recurring contract item. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
ExpirationDate Date | End date for the recurring contract item. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
InitialRentalContractItemId Integer | Original item identifier. |
IsActive Boolean | Indicates whether version is active one. |
LineNumber Integer | Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc. |
ProductDescription String | Description of the product. |
ProductId Integer | Product identifier. |
ProductName String | Name of the product. |
Quantity Decimal | Number of units ordered. |
QuoteNumber Integer | Quote number. |
RentalContractItemId Integer | Rental contract item identifier. |
RentalContractQuoteId Integer | Rental contract quote identifier. |
RentalContractVersionId Integer | Rental contract version identifier. |
Revision Integer | Rental contract item revision. |
Stage Integer | Contract item stage. |
Status Integer | Status of the sales quote item. |
Type Integer | Item type: 1- Subscription, 2 - Rental. |
Read more about filters and sorting on how to use sortable parameters
CreatedAt Datetime | Date of item creation |
CustomersReferenceNumber String | Customers item reference number. Typically to the customers internal system. |
EffectiveDate Date | Start date for the recurring contract item |
ExpirationDate Date | End date for the recurring contract item |
InitialRentalContractItemId Integer | Original item identifier |
IsActive Boolean | Indicates whether version is active one |
LineNumber Integer | Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc. |
ProductDescription String | Description of the product |
ProductId Integer | Product identifier |
ProductName String | Name of the product |
Quantity Decimal | Number of units ordered |
QuoteNumber Integer | Quote number |
RentalContractItemId Integer | Rental contract item identifier |
RentalContractQuoteId Integer | Rental contract quote identifier |
RentalContractVersionId Integer | Rental contract version identifier |
Revision Integer | Rental contract item revision |
Stage Integer | Contract item stage |
Status Integer | Status of the sales quote item |
Type Integer | Item type: 1- Subscription, 2 - Rental |
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>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>Paging
Detailed paging information for this list.
>PageSize
Number of elements in the list, as defined in $top. Default is 10.
>{Integer}</PageSize>Position
Position of the first element in the list
>{Integer}</Position>Page
Page index
>{Integer}</Page>FirstPage
Link to the first page in the list. $pageKey is set to FirstPageKey.
>{String}</FirstPage>PreviousPage
Link to the previous page in the list. $pageKey is set to PreviousPageKey.
>{String}</PreviousPage>NextPage
Link to the next page in the list. $pageKey is set to NextPageKey.
>{String}</NextPage>LastPage
Link to the last page in the list. $pageKey is set to LastPageKey.
>{String}</LastPage>Size
Total number of records in the list. Use $inlinecount=allpages in the request uri to include this
>{Integer}</Size>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}"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}"Paging
Detailed paging information for this list.
": {PageSize
Number of elements in the list, as defined in $top. Default is 10.
": "{Integer}",Position
Position of the first element in the list
": "{Integer}",Page
Page index
": "{Integer}",FirstPage
Link to the first page in the list. $pageKey is set to FirstPageKey.
": "{String}",PreviousPage
Link to the previous page in the list. $pageKey is set to PreviousPageKey.
": "{String}",NextPage
Link to the next page in the list. $pageKey is set to NextPageKey.
": "{String}",LastPage
Link to the last page in the list. $pageKey is set to LastPageKey.
": "{String}",Size
Total number of records in the list. Use $inlinecount=allpages in the request uri to include this
": "{Integer}"
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 108262 HTTP 404 | Recurring rate not found |
Error 105969 HTTP 400 | Start date is required |
Error 105970 HTTP 400 | End date is required |