API

Rental APIs

GET system/reports/117375/result-set

List all active rental units with deitaled information about availabillity etc.

Report name Rental Units by Depot
Report identifier 117375
HTTP method GET
URI https://api.rambase.net/system/reports/117375/result-set
Supported formats Xml, Html, Json (ex. $format=json)
Maximum page size ($top) 80
Successful HTTP status code 200
API resource identifier 6915, version 6

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.

Format:
1
1

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.

AvailableFromDate Date Date from which the rental unit is available. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
BlockedForRental Boolean Indicates if a rental unit is blocked for rental.
CurrentLocationShortName String Unique abbreviation/short name of the location.
Description String Description of rental unit.
EndOfLifeDate Date Date to which the rental unit is available. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
HomeLocationShortName String Unique abbreviation/short name of the location.
ProductCollectionId Integer Product identifier.
ProductDescription String Description of the product.
ProductId Integer Product identifier.
ProductName String Name of the product.
RentalUnitId Integer Rental unit identifier.
SerialNumber String Serial number.
Total Decimal The total price in company currency from the goods reception, or Balance from the fixed asset if the rental unit is tied to a fixed asset.

Read more about filters and sorting on how to use sortable parameters

AvailableFromDate Date Date from which the rental unit is available
BlockedForRental Boolean Indicates if a rental unit is blocked for rental
CurrentLocationShortName String Unique abbreviation/short name of the location
Description String Description of rental unit
EndOfLifeDate Date Date to which the rental unit is available
HomeLocationShortName String Unique abbreviation/short name of the location
ProductCollectionId Integer Product identifier
ProductDescription String Description of the product
ProductId Integer Product identifier
ProductName String Name of the product
RentalUnitId Integer Rental unit identifier
SerialNumber String Serial number
Total Decimal The total price in company currency from the goods reception, or Balance from the fixed asset if the rental unit is tied to a fixed asset

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.

Format:
1
<Report>
2
     <Rows>
3
          <Row>
4
               <Status
Status

Status

Possible domain values can be found here

>
{String}</Status>
5
               <RentalUnitId
RentalUnitId

Rental unit identifier

>
{Integer}</RentalUnitId>
6
               <Description
Description

Description of rental unit

>
{String}</Description>
7
               <OperationalStatus
OperationalStatus

Assignment status of a given rental unit for current day

>
{String}</OperationalStatus>
8
               <Product
Product

Product of the unit

>
9
                    <ProductId
ProductId

Product identifier

>
{Integer}</ProductId>
10
                    <Name
Name

Name of the product

>
{String}</Name>
11
                    <Description
Description

Description of the product

>
{String}</Description>
12
                    <Type
Type

Type of product

Possible domain values can be found here

>
{String}</Type>
13
                    <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
14
               </Product>
15
               <Availability
Availability

Availability for selected period

>
16
                    <AvailableFromDate
AvailableFromDate

Date from which the rental unit is available

>
{Date}</AvailableFromDate>
17
                    <EndOfLifeDate
EndOfLifeDate

Date to which the rental unit is available

>
{Date}</EndOfLifeDate>
18
                    <BlockedForRental
BlockedForRental

Indicates if a rental unit is blocked for rental

>
{Boolean}</BlockedForRental>
19
               </Availability>
20
               <ProductCollection
ProductCollection

Reference to product collection

>
21
                    <ProductId
ProductId

Product identifier

>
{Integer}</ProductId>
22
                    <Name
Name

Name of the product

>
{String}</Name>
23
                    <Description
Description

Description of the product

>
{String}</Description>
24
                    <ProductCollectionLink
ProductCollectionLink

Product reference

>
{String}</ProductCollectionLink>
25
               </ProductCollection>
26
               <ProductUnit
ProductUnit

Product unit of the unit

>
27
                    <ProductUnitId
ProductUnitId

Product unit identifier

>
{Integer}</ProductUnitId>
28
                    <SerialNumber
SerialNumber

Serial number

>
{String}</SerialNumber>
29
                    <ProductUnitLink
ProductUnitLink

Product unit reference

>
{String}</ProductUnitLink>
30
               </ProductUnit>
31
               <CurrentLocation
CurrentLocation

Reference to current location of the unit

>
32
                    <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
33
                    <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
34
               </CurrentLocation>
35
               <HomeLocation
HomeLocation

Reference to home location of the rental unit

>
36
                    <LocationId
LocationId

Location identifier

This field is greyed out because it is an expandable field. You have to add $expand=Rows.Row.HomeLocation.LocationId in your request URI to get this field

>
{Integer}</LocationId>
37
                    <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
38
                    <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
39
               </HomeLocation>
40
               <Total
Total

Total ({SYSCUR})

>
{Decimal}</Total>
41
               <CurrentReceptionItem
CurrentReceptionItem

The current goods reception that the rental unit is located on. This will get a new value each time the rental unit is returned from rent.

>
42
                    <GoodsReceptionItemId
GoodsReceptionItemId

Item-/line-number of the goods reception

This field is greyed out because it is an expandable field. You have to add $expand=Rows.Row.CurrentReceptionItem.GoodsReceptionItemId in your request URI to get this field

>
{Integer}</GoodsReceptionItemId>
43
                    <GoodsReception
GoodsReception

Goods reception reference

>
44
                         <GoodsReceptionId
GoodsReceptionId

Goods reception identifier

>
{Integer}</GoodsReceptionId>
45
                         <GoodsReceptionLink
GoodsReceptionLink

Goods reception identifier

>
{String}</GoodsReceptionLink>
46
                    </GoodsReception>
47
                    <GoodsReceptionItemLink
GoodsReceptionItemLink

Goods reception item reference

>
{String}</GoodsReceptionItemLink>
48
               </CurrentReceptionItem>
49
               <StockLocation
StockLocation

Reference to stock location

>
50
                    <StockLocationId
StockLocationId

Stock location identifier

>
{Integer}</StockLocationId>
51
                    <Name
Name

Name of stock location

>
{String}</Name>
52
                    <StockLocationLink
StockLocationLink

Stock location reference

>
{String}</StockLocationLink>
53
               </StockLocation>
54
               <RentalContractItem
RentalContractItem

Rental contract item

>
55
                    <RentalContract
RentalContract

Rental contract

>
56
                         <RentalContractId
RentalContractId

Rental contract identifier

>
{Integer}</RentalContractId>
57
                    </RentalContract>
58
                    <RentalContractItemId
RentalContractItemId

Rental contract item identifier

>
{Integer}</RentalContractItemId>
59
                    <RentalContractItmLink
RentalContractItmLink

Rental contract reference

>
{String}</RentalContractItmLink>
60
               </RentalContractItem>
61
               <Inspect>
62
                    <TargetApplication
TargetApplication

Application reference when inspecting a line in a report.

>
{String}</TargetApplication>
63
               </Inspect>
64
          </Row>
65
     </Rows>
66
     <ColumnParameters
ColumnParameters

This field is greyed out because it is an expandable field. You have to add $expand=ColumnParameters in your request URI to get this field

>
67
          <ColumnParameter
ColumnParameter

This field is greyed out because it is an expandable field. You have to add $expand=ColumnParameters in your request URI to get this field

>
68
               <Key
Key

Key that is used in description to lookup value from COS. The key is referenced by encapsulating it in curly braces.

This field is greyed out because it is an expandable field. You have to add $expand=ColumnParameters in your request URI to get this field

>
{String}</Key>
69
               <Value
Value

The value of the column parameter from COS that will be shown in the column headers referencing the column parameter key.

This field is greyed out because it is an expandable field. You have to add $expand=ColumnParameters in your request URI to get this field

>
{String}</Value>
70
          </ColumnParameter>
71
     </ColumnParameters>
72
     <Paging
Paging

Detailed paging information for this list.

>
73
          <PageSize
PageSize

Number of elements in the list, as defined in $top. Default is 10.

>
{Integer}</PageSize>
74
          <Position
Position

Position of the first element in the list

>
{Integer}</Position>
75
          <Page
Page

Page index

>
{Integer}</Page>
76
          <FirstPageKey
FirstPageKey

Page key to use for navigating to the first page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</FirstPageKey>
77
          <FirstPage
FirstPage

Link to the first page in the list. $pageKey is set to FirstPageKey.

>
{String}</FirstPage>
78
          <PreviousPageKey
PreviousPageKey

Page key to use for navigating to previous page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</PreviousPageKey>
79
          <PreviousPage
PreviousPage

Link to the previous page in the list. $pageKey is set to PreviousPageKey.

>
{String}</PreviousPage>
80
          <NextPageKey
NextPageKey

Page key to use for navigating to next page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</NextPageKey>
81
          <NextPage
NextPage

Link to the next page in the list. $pageKey is set to NextPageKey.

>
{String}</NextPage>
82
          <LastPageKey
LastPageKey

Page key to use for navigating to last page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</LastPageKey>
83
          <LastPage
LastPage

Link to the last page in the list. $pageKey is set to LastPageKey.

>
{String}</LastPage>
84
          <Size
Size

Total number of records in the list. Use $inlinecount=allpages in the request uri to include this

>
{Integer}</Size>
85
     </Paging>
86
</Report>
1
{
2
     "report": {
3
          "rows": [
4
               {
5
                    "status
Status

Status

Possible domain values can be found here

":
"{String}",
6
                    "rentalUnitId
RentalUnitId

Rental unit identifier

":
"{Integer}",
7
                    "description
Description

Description of rental unit

":
"{String}",
8
                    "operationalStatus
OperationalStatus

Assignment status of a given rental unit for current day

":
"{String}",
9
                    "product
Product

Product of the unit

":
{
10
                         "productId
ProductId

Product identifier

":
"{Integer}",
11
                         "name
Name

Name of the product

":
"{String}",
12
                         "description
Description

Description of the product

":
"{String}",
13
                         "type
Type

Type of product

Possible domain values can be found here

":
"{String}",
14
                         "productLink
ProductLink

Product reference

":
"{String}"
15
                    },
16
                    "availability
Availability

Availability for selected period

":
{
17
                         "availableFromDate
AvailableFromDate

Date from which the rental unit is available

":
"{Date}",
18
                         "endOfLifeDate
EndOfLifeDate

Date to which the rental unit is available

":
"{Date}",
19
                         "blockedForRental
BlockedForRental

Indicates if a rental unit is blocked for rental

":
"{Boolean}"
20
                    },
21
                    "productCollection
ProductCollection

Reference to product collection

":
{
22
                         "productId
ProductId

Product identifier

":
"{Integer}",
23
                         "name
Name

Name of the product

":
"{String}",
24
                         "description
Description

Description of the product

":
"{String}",
25
                         "productCollectionLink
ProductCollectionLink

Product reference

":
"{String}"
26
                    },
27
                    "productUnit
ProductUnit

Product unit of the unit

":
{
28
                         "productUnitId
ProductUnitId

Product unit identifier

":
"{Integer}",
29
                         "serialNumber
SerialNumber

Serial number

":
"{String}",
30
                         "productUnitLink
ProductUnitLink

Product unit reference

":
"{String}"
31
                    },
32
                    "currentLocation
CurrentLocation

Reference to current location of the unit

":
{
33
                         "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
34
                         "locationLink
LocationLink

Location reference

":
"{String}"
35
                    },
36
                    "homeLocation
HomeLocation

Reference to home location of the rental unit

":
{
37
                         "locationId
LocationId

Location identifier

This field is greyed out because it is an expandable field. You have to add $expand=Rows.Row.HomeLocation.LocationId in your request URI to get this field

":
"{Integer}",
38
                         "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
39
                         "locationLink
LocationLink

Location reference

":
"{String}"
40
                    },
41
                    "total
Total

Total ({SYSCUR})

":
"{Decimal}",
42
                    "currentReceptionItem
CurrentReceptionItem

The current goods reception that the rental unit is located on. This will get a new value each time the rental unit is returned from rent.

":
{
43
                         "goodsReceptionItemId
GoodsReceptionItemId

Item-/line-number of the goods reception

This field is greyed out because it is an expandable field. You have to add $expand=Rows.Row.CurrentReceptionItem.GoodsReceptionItemId in your request URI to get this field

":
"{Integer}",
44
                         "goodsReception
GoodsReception

Goods reception reference

":
{
45
                              "goodsReceptionId
GoodsReceptionId

Goods reception identifier

":
"{Integer}",
46
                              "goodsReceptionLink
GoodsReceptionLink

Goods reception identifier

":
"{String}"
47
                         },
48
                         "goodsReceptionItemLink
GoodsReceptionItemLink

Goods reception item reference

":
"{String}"
49
                    },
50
                    "stockLocation
StockLocation

Reference to stock location

":
{
51
                         "stockLocationId
StockLocationId

Stock location identifier

":
"{Integer}",
52
                         "name
Name

Name of stock location

":
"{String}",
53
                         "stockLocationLink
StockLocationLink

Stock location reference

":
"{String}"
54
                    },
55
                    "rentalContractItem
RentalContractItem

Rental contract item

":
{
56
                         "rentalContract
RentalContract

Rental contract

":
{
57
                              "rentalContractId
RentalContractId

Rental contract identifier

":
"{Integer}"
58
                         },
59
                         "rentalContractItemId
RentalContractItemId

Rental contract item identifier

":
"{Integer}",
60
                         "rentalContractItmLink
RentalContractItmLink

Rental contract reference

":
"{String}"
61
                    },
62
                    "inspect": {
63
                         "targetApplication
TargetApplication

Application reference when inspecting a line in a report.

":
"{String}"
64
                    }
65
               }
66
          ],
67
          "columnParameters
ColumnParameters

This field is greyed out because it is an expandable field. You have to add $expand=ColumnParameters in your request URI to get this field

":
[
68
               {
69
                    "key
Key

Key that is used in description to lookup value from COS. The key is referenced by encapsulating it in curly braces.

This field is greyed out because it is an expandable field. You have to add $expand=ColumnParameters in your request URI to get this field

":
"{String}",
70
                    "value
Value

The value of the column parameter from COS that will be shown in the column headers referencing the column parameter key.

This field is greyed out because it is an expandable field. You have to add $expand=ColumnParameters in your request URI to get this field

":
"{String}"
71
               }
72
          ]
73
     }
74
}

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 104920 HTTP 400 Log text is required
Error 104921 HTTP 400 Invalid log category
Error 101281 HTTP 400 Too many {0} parameters. Maximum is {1}.
Error 100175 HTTP 400 To date must be equal to, or later than from date.
Error 105710 HTTP 400 Invalid output type