API

Rental APIs

GET rental/contracts/{rentalContractId}/items/{itemId}/calendars/{rentalCalendarId}/days/{dayId}

Get rental contract calendar day

HTTP method GET
URI https://api.rambase.net/rental/contracts/{rentalContractId}/items/{itemId}/calendars/{rentalCalendarId}/days/{dayId}
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
- URI parameter {rentalCalendarId} Rental calendar id
Integer, minimum 100000
- URI parameter {dayId} Rental calendar day id
Integer, minimum 1
Successful HTTP status code 200
API resource identifier 6030, version 16

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
$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.

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.

Format:
1
<RentalCalendarDay>
2
     <RentalCalendarDayId
RentalCalendarDayId

Rental calendar day id

>
{Integer}</RentalCalendarDayId>
3
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
4
     <Status
Status

Status of the rental calendar day

Possible domain values can be found here

>
{Integer}</Status>
5
     <Date
Date

Rental calendar date of day

>
{Date}</Date>
6
     <Quantity
Quantity

Rental calendar day quantity

>
{Integer}</Quantity>
7
     <DiscountPercent
DiscountPercent

Discount percent for calendar day

>
{Decimal}</DiscountPercent>
8
     <IsOnRent
IsOnRent

Is on-rent or is off-rent

>
{Boolean}</IsOnRent>
9
     <ChangeReason
ChangeReason

States the reason why the daily data were changed

>
{String}</ChangeReason>
10
     <RecurringRate
RecurringRate

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

>
11
          <RecurringRateId
RecurringRateId

Recurring rate identifier

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

>
{Integer}</RecurringRateId>
12
          <Status
Status

Status of recurring rate

Possible domain values can be found here

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

>
{Integer}</Status>
13
          <Currency
Currency

Three character code following the ISO 4217 standard

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

>
{String}</Currency>
14
          <RateInterval
RateInterval

Interval of recurring rate

Possible domain values can be found here

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

>
{Integer}</RateInterval>
15
          <Type
Type

Type of recurring rate: 1 - Standard, 2 - Special

Possible domain values can be found here

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

>
{Integer}</Type>
16
          <NumberOfRateSteps
NumberOfRateSteps

Number of rate steps

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

>
{Integer}</NumberOfRateSteps>
17
          <RecurringRateLink
RecurringRateLink

Recurring rate reference

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

>
{String}</RecurringRateLink>
18
     </RecurringRate>
19
     <CurrentRateStep
CurrentRateStep

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

>
20
          <Currency
Currency

Three character code following the ISO 4217 standard

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

>
{String}</Currency>
21
          <Rate
Rate

Value of step rate

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

>
{Decimal}</Rate>
22
     </CurrentRateStep>
23
     <BillingItem>
24
          <ObjectType
ObjectType

Reference to object type that was generated basing on calendar days data

>
{String}</ObjectType>
25
          <ObjectId
ObjectId

Reference to object id that was generated basing on calendar days data

>
{Integer}</ObjectId>
26
          <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
27
          <ItemId
ItemId

Reference to object line id that was generated basing on calendar days data

>
{Integer}</ItemId>
28
          <ItemLink
ItemLink

Document item reference

>
{String}</ItemLink>
29
     </BillingItem>
30
     <Totals>
31
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
32
          <Amount
Amount

Amount per day

>
{Decimal}</Amount>
33
          <DiscountAmount
DiscountAmount

Discount amount per day

>
{Decimal}</DiscountAmount>
34
          <NetAmount
NetAmount

Amount after discount per day

>
{Decimal}</NetAmount>
35
          <EstimatedRevenue
EstimatedRevenue

Estimated revenue per day

>
{Decimal}</EstimatedRevenue>
36
          <ForecastedRevenue
ForecastedRevenue

Forecasted revenue per day

>
{Decimal}</ForecastedRevenue>
37
          <EarnedRevenue
EarnedRevenue

Earned revenue per day

>
{Decimal}</EarnedRevenue>
38
          <AccruedRevenue
AccruedRevenue

Accrued revenue per day

>
{Decimal}</AccruedRevenue>
39
          <DeferredRevenue
DeferredRevenue

Deferred revenue per day

>
{Decimal}</DeferredRevenue>
40
          <InvoicedAmount
InvoicedAmount

Invoiced amount per day

>
{Decimal}</InvoicedAmount>
41
     </Totals>
42
     <TotalsConverted
TotalsConverted

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

>
43
          <Currency
Currency

Three character code following the ISO 4217 standard

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

>
{String}</Currency>
44
          <Amount
Amount

Amount per day in local currency

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

>
{Decimal}</Amount>
45
          <DiscountAmount
DiscountAmount

Discount amount per day in local currency

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

>
{Decimal}</DiscountAmount>
46
          <NetAmount
NetAmount

Net amount per day in local currency

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

>
{Decimal}</NetAmount>
47
          <EstimatedRevenue
EstimatedRevenue

Estimated revenue per day in local currency

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

>
{Decimal}</EstimatedRevenue>
48
          <ForecastedRevenue
ForecastedRevenue

Forecasted revenue per day in local currency

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

>
{Decimal}</ForecastedRevenue>
49
          <EarnedRevenue
EarnedRevenue

Earned revenue per day in local currency

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

>
{Decimal}</EarnedRevenue>
50
          <AccruedRevenue
AccruedRevenue

Accrued revenue per day in local currency

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

>
{Decimal}</AccruedRevenue>
51
          <DeferredRevenue
DeferredRevenue

Deferred revenue per day in local currency

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

>
{Decimal}</DeferredRevenue>
52
          <InvoicedAmount
InvoicedAmount

Invoiced amount per day in local currency

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

>
{Decimal}</InvoicedAmount>
53
     </TotalsConverted>
54
     <RentalCalendarDayLink
RentalCalendarDayLink

Rental calendar day reference

>
{String}</RentalCalendarDayLink>
55
</RentalCalendarDay>
1
{
2
     "rentalCalendarDay": {
3
          "rentalCalendarDayId
RentalCalendarDayId

Rental calendar day id

":
"{Integer}",
4
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
5
          "status
Status

Status of the rental calendar day

Possible domain values can be found here

":
"{Integer}",
6
          "date
Date

Rental calendar date of day

":
"{Date}",
7
          "quantity
Quantity

Rental calendar day quantity

":
"{Integer}",
8
          "discountPercent
DiscountPercent

Discount percent for calendar day

":
"{Decimal}",
9
          "isOnRent
IsOnRent

Is on-rent or is off-rent

":
"{Boolean}",
10
          "changeReason
ChangeReason

States the reason why the daily data were changed

":
"{String}",
11
          "recurringRate
RecurringRate

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

":
{
12
               "recurringRateId
RecurringRateId

Recurring rate identifier

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

":
"{Integer}",
13
               "status
Status

Status of recurring rate

Possible domain values can be found here

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

":
"{Integer}",
14
               "currency
Currency

Three character code following the ISO 4217 standard

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

":
"{String}",
15
               "rateInterval
RateInterval

Interval of recurring rate

Possible domain values can be found here

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

":
"{Integer}",
16
               "type
Type

Type of recurring rate: 1 - Standard, 2 - Special

Possible domain values can be found here

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

":
"{Integer}",
17
               "numberOfRateSteps
NumberOfRateSteps

Number of rate steps

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

":
"{Integer}",
18
               "recurringRateLink
RecurringRateLink

Recurring rate reference

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

":
"{String}"
19
          },
20
          "currentRateStep
CurrentRateStep

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

":
{
21
               "currency
Currency

Three character code following the ISO 4217 standard

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

":
"{String}",
22
               "rate
Rate

Value of step rate

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

":
"{Decimal}"
23
          },
24
          "billingItem": {
25
               "objectType
ObjectType

Reference to object type that was generated basing on calendar days data

":
"{String}",
26
               "objectId
ObjectId

Reference to object id that was generated basing on calendar days data

":
"{Integer}",
27
               "objectLink
ObjectLink

API reference to the object

":
"{String}",
28
               "itemId
ItemId

Reference to object line id that was generated basing on calendar days data

":
"{Integer}",
29
               "itemLink
ItemLink

Document item reference

":
"{String}"
30
          },
31
          "totals": {
32
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
33
               "amount
Amount

Amount per day

":
"{Decimal}",
34
               "discountAmount
DiscountAmount

Discount amount per day

":
"{Decimal}",
35
               "netAmount
NetAmount

Amount after discount per day

":
"{Decimal}",
36
               "estimatedRevenue
EstimatedRevenue

Estimated revenue per day

":
"{Decimal}",
37
               "forecastedRevenue
ForecastedRevenue

Forecasted revenue per day

":
"{Decimal}",
38
               "earnedRevenue
EarnedRevenue

Earned revenue per day

":
"{Decimal}",
39
               "accruedRevenue
AccruedRevenue

Accrued revenue per day

":
"{Decimal}",
40
               "deferredRevenue
DeferredRevenue

Deferred revenue per day

":
"{Decimal}",
41
               "invoicedAmount
InvoicedAmount

Invoiced amount per day

":
"{Decimal}"
42
          },
43
          "totalsConverted
TotalsConverted

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

":
{
44
               "currency
Currency

Three character code following the ISO 4217 standard

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

":
"{String}",
45
               "amount
Amount

Amount per day in local currency

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

":
"{Decimal}",
46
               "discountAmount
DiscountAmount

Discount amount per day in local currency

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

":
"{Decimal}",
47
               "netAmount
NetAmount

Net amount per day in local currency

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

":
"{Decimal}",
48
               "estimatedRevenue
EstimatedRevenue

Estimated revenue per day in local currency

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

":
"{Decimal}",
49
               "forecastedRevenue
ForecastedRevenue

Forecasted revenue per day in local currency

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

":
"{Decimal}",
50
               "earnedRevenue
EarnedRevenue

Earned revenue per day in local currency

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

":
"{Decimal}",
51
               "accruedRevenue
AccruedRevenue

Accrued revenue per day in local currency

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

":
"{Decimal}",
52
               "deferredRevenue
DeferredRevenue

Deferred revenue per day in local currency

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

":
"{Decimal}",
53
               "invoicedAmount
InvoicedAmount

Invoiced amount per day in local currency

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

":
"{Decimal}"
54
          },
55
          "rentalCalendarDayLink
RentalCalendarDayLink

Rental calendar day reference

":
"{String}"
56
     }
57
}

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 105970 HTTP 400 End date is required