API

Rental APIs

POST rental/contracts

Creation of new rental contract

HTTP method POST
URI https://api.rambase.net/rental/contracts
Supported formats Xml, Html, Json (ex. $format=json)
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 5759, version 10

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
<RentalContract>
2
     <Name
Name

Required/mandatory field

Short description for the rental contract

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

Detailed description for the recurring rental contract

This field is optional.

>
{String}</Description>
4
     <Currency
Currency

Required/mandatory field

Three character code following the ISO 4217 standard

Applicable domain values can be found here

>
{String}</Currency>
5
     <RentalType
RentalType

Type of contract: Subscription, Rent-to-Rent, Rent-to-Purchase, Customer owned, Re-rent

Applicable domain values can be found here

This field is optional.

>
{Integer}</RentalType>
6
     <InvoiceFrequency
InvoiceFrequency

Sets frequency at which invoice can be issued.

Applicable domain values can be found here

This field is optional.

>
{Integer}</InvoiceFrequency>
7
     <CreateAccountAdjustmentPlan
CreateAccountAdjustmentPlan

The control bit of a mechanism of automatic creation of periods adustments

Default value: False

This field is optional.

>
{Boolean}</CreateAccountAdjustmentPlan>
8
     <BaseDate
BaseDate

A date from which invoices will start to be generated from

This field is optional.

>
{Date}</BaseDate>
9
     <IsAutomaticallyIssued
IsAutomaticallyIssued

"True" if invoices in this rental contract should be released automatically

Default value: False

This field is optional.

>
{Boolean}</IsAutomaticallyIssued>
10
     <AdvanceInvoicing
AdvanceInvoicing

This field is optional.

>
11
          <IsInvoicedInAdvance
IsInvoicedInAdvance

True if rental contract is invoiced in advance

Default value: False

This field is optional.

>
{Boolean}</IsInvoicedInAdvance>
12
          <BaseDateAdvanceDays
BaseDateAdvanceDays

Number of days to advance invoicing from base date

Minimum value: 0

This field is optional.

>
{Integer}</BaseDateAdvanceDays>
13
     </AdvanceInvoicing>
14
     <Period>
15
          <EffectiveDate
EffectiveDate

Required/mandatory field

Start date for the recurring contract

>
{Date}</EffectiveDate>
16
          <ExpirationDate
ExpirationDate

Required/mandatory field

End date of the recurring contract

>
{Date}</ExpirationDate>
17
     </Period>
18
     <Customer>
19
          <CustomerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

>
{Integer}</CustomerId>
20
     </Customer>
21
     <Responsible
Responsible

PID reference of sales assistant for the contract

This field is optional.

>
22
          <UserId
UserId

User identifier

Minimum value: 100

This field is optional.

>
{Integer}</UserId>
23
     </Responsible>
24
     <InvoiceAddress
InvoiceAddress

This field is optional.

>
25
          <AddressId
AddressId

Reference to customer's invoice address

Minimum value: 1

This field is optional.

>
{Integer}</AddressId>
26
     </InvoiceAddress>
27
     <ShippingAddress
ShippingAddress

This field is optional.

>
28
          <AddressId
AddressId

Reference to customer's shipping address

Minimum value: 1

This field is optional.

>
{Integer}</AddressId>
29
     </ShippingAddress>
30
     <Payment
Payment

This field is optional.

>
31
          <PaymentTerms
PaymentTerms

Payment terms for rental contract

Applicable domain values can be found here

This field is optional.

>
{String}</PaymentTerms>
32
     </Payment>
33
     <VATDetails
VATDetails

This field is optional.

>
34
          <VATHandling
VATHandling

Specifies how value added tax (VAT) should be calculated. Either always include VAT, always exclude VAT or use standard/default VAT rules.

Applicable domain values can be found here

This field is optional.

>
{String}</VATHandling>
35
     </VATDetails>
36
</RentalContract>
1
{
2
     "rentalContract": {
3
          "name
Name

Required/mandatory field

Short description for the rental contract

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

Detailed description for the recurring rental contract

This field is optional.

":
"{String}",
5
          "currency
Currency

Required/mandatory field

Three character code following the ISO 4217 standard

Applicable domain values can be found here

":
"{String}",
6
          "rentalType
RentalType

Type of contract: Subscription, Rent-to-Rent, Rent-to-Purchase, Customer owned, Re-rent

Applicable domain values can be found here

This field is optional.

":
"{Integer}",
7
          "invoiceFrequency
InvoiceFrequency

Sets frequency at which invoice can be issued.

Applicable domain values can be found here

This field is optional.

":
"{Integer}",
8
          "createAccountAdjustmentPlan
CreateAccountAdjustmentPlan

The control bit of a mechanism of automatic creation of periods adustments

Default value: False

This field is optional.

":
"{Boolean}",
9
          "baseDate
BaseDate

A date from which invoices will start to be generated from

This field is optional.

":
"{Date}",
10
          "isAutomaticallyIssued
IsAutomaticallyIssued

"True" if invoices in this rental contract should be released automatically

Default value: False

This field is optional.

":
"{Boolean}",
11
          "advanceInvoicing
AdvanceInvoicing

This field is optional.

":
{
12
               "isInvoicedInAdvance
IsInvoicedInAdvance

True if rental contract is invoiced in advance

Default value: False

This field is optional.

":
"{Boolean}",
13
               "baseDateAdvanceDays
BaseDateAdvanceDays

Number of days to advance invoicing from base date

Minimum value: 0

This field is optional.

":
"{Integer}"
14
          },
15
          "period": {
16
               "effectiveDate
EffectiveDate

Required/mandatory field

Start date for the recurring contract

":
"{Date}",
17
               "expirationDate
ExpirationDate

Required/mandatory field

End date of the recurring contract

":
"{Date}"
18
          },
19
          "customer": {
20
               "customerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

":
"{Integer}"
21
          },
22
          "responsible
Responsible

PID reference of sales assistant for the contract

This field is optional.

":
{
23
               "userId
UserId

User identifier

Minimum value: 100

This field is optional.

":
"{Integer}"
24
          },
25
          "invoiceAddress
InvoiceAddress

This field is optional.

":
{
26
               "addressId
AddressId

Reference to customer's invoice address

Minimum value: 1

This field is optional.

":
"{Integer}"
27
          },
28
          "shippingAddress
ShippingAddress

This field is optional.

":
{
29
               "addressId
AddressId

Reference to customer's shipping address

Minimum value: 1

This field is optional.

":
"{Integer}"
30
          },
31
          "payment
Payment

This field is optional.

":
{
32
               "paymentTerms
PaymentTerms

Payment terms for rental contract

Applicable domain values can be found here

This field is optional.

":
"{String}"
33
          },
34
          "vATDetails
VATDetails

This field is optional.

":
{
35
               "vATHandling
VATHandling

Specifies how value added tax (VAT) should be calculated. Either always include VAT, always exclude VAT or use standard/default VAT rules.

Applicable domain values can be found here

This field is optional.

":
"{String}"
36
          }
37
     }
38
}

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.

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

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<RentalContract>
2
     <RentalContractId
RentalContractId

Rental contract identifier

>
{Integer}</RentalContractId>
3
     <Status
Status

Rental contract status

Possible domain values can be found here

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

Date and time of creation

>
{Datetime}</CreatedAt>
5
     <Name
Name

Short description for the rental contract

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

Detailed description for the recurring rental contract

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

Internal note for the contract

>
{String}</InternalNote>
8
     <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

>
{String}</Currency>
9
     <CustomersReference
CustomersReference

Customers reference. Typically a person.

>
{String}</CustomersReference>
10
     <CustomersReferenceNumber
CustomersReferenceNumber

Customers reference number. E.g. the internal sales order id the customer use in their own system.

>
{String}</CustomersReferenceNumber>
11
     <DiscountPercentage
DiscountPercentage

This field originates from the Rental discount field on the customer. If changing this field it will not alter discount on existing items.

>
{Decimal}</DiscountPercentage>
12
     <RentalType
RentalType

Type of contract: Subscription, Rent-to-Rent, Rent-to-Purchase, Customer owned, Re-rent

Possible domain values can be found here

>
{Integer}</RentalType>
13
     <InvoiceFrequency
InvoiceFrequency

Sets frequency at which invoice can be issued.

Possible domain values can be found here

>
{Integer}</InvoiceFrequency>
14
     <CreateAccountAdjustmentPlan
CreateAccountAdjustmentPlan

The control bit of a mechanism of automatic creation of periods adustments

>
{Boolean}</CreateAccountAdjustmentPlan>
15
     <DeactivateExpirationDateExtending
DeactivateExpirationDateExtending

Allows to deactivate the automatic extension of expiration dates setting for the contract

>
{Boolean}</DeactivateExpirationDateExtending>
16
     <BaseDate
BaseDate

A date from which invoices will start to be generated from

>
{Date}</BaseDate>
17
     <IsAutomaticallyIssued
IsAutomaticallyIssued

"True" if invoices in this rental contract should be released automatically

>
{Boolean}</IsAutomaticallyIssued>
18
     <ShippingAddressAttention
ShippingAddressAttention

Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.

>
{String}</ShippingAddressAttention>
19
     <ShippingAddressPhone
ShippingAddressPhone

Phone number of the shipping address. When changing shipping address, the ShippingAddressPhone will be overridden by the phone number of the new shipping address.

>
{String}</ShippingAddressPhone>
20
     <ShippingAddressEmail
ShippingAddressEmail

Email address of the shipping address. When changing shipping address, the ShippingAddressEmail will be overridden by the email of the new shipping address.

>
{String}</ShippingAddressEmail>
21
     <InvoiceAddressAttention
InvoiceAddressAttention

Attention of the invoice address. When changing invoice address, the InvoiceAddressAttention will be overridden by the attention of the new invoice address.

>
{String}</InvoiceAddressAttention>
22
     <DefaultRateChangeType
DefaultRateChangeType

Default setting of change rate type for all new rental contract items

Possible domain values can be found here

>
23
          <LocationId
LocationId

Location identifier

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

Unique abbreviation/short name of the location

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

Location reference

>
{Integer}</LocationLink>
26
          <LocationId
LocationId

Location identifier

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

Unique abbreviation/short name of the location

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

Location reference

>
{Integer}</LocationLink>
29
     </DefaultRateChangeType>
30
     <AdvanceInvoicing>
31
          <IsInvoicedInAdvance
IsInvoicedInAdvance

True if rental contract is invoiced in advance

>
{Boolean}</IsInvoicedInAdvance>
32
          <BaseDateAdvanceDays
BaseDateAdvanceDays

Number of days to advance invoicing from base date

>
{Integer}</BaseDateAdvanceDays>
33
     </AdvanceInvoicing>
34
     <Period>
35
          <EffectiveDate
EffectiveDate

Start date for the recurring contract

>
{Date}</EffectiveDate>
36
          <ExpirationDate
ExpirationDate

End date of the recurring contract

>
{Date}</ExpirationDate>
37
          <RegistrationDate
RegistrationDate

The date of registration of the contract

>
{Date}</RegistrationDate>
38
          <TerminationDate
TerminationDate

The date of termination of the contract

>
{Date}</TerminationDate>
39
          <ClosingDate
ClosingDate

The date after the final invoicing, and all logistics handled. The contract is sealed and cannot be changed

>
{Date}</ClosingDate>
40
     </Period>
41
     <Customer>
42
          <CustomerId
CustomerId

Customer identifier

>
{Integer}</CustomerId>
43
          <Name
Name

Name of customer (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
44
          <FirstName
FirstName

Secondary name of a company or firstname of a person

>
{String}</FirstName>
45
          <CustomerLink
CustomerLink

Customer reference

>
{String}</CustomerLink>
46
     </Customer>
47
     <InvoiceAddress>
48
          <AddressId
AddressId

Reference to customer's invoice address

>
{Integer}</AddressId>
49
          <Name
Name

Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.

>
{String}</Name>
50
          <FirstName
FirstName

Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.

>
{String}</FirstName>
51
          <AddressLine1
AddressLine1

First address line

>
{String}</AddressLine1>
52
          <AddressLine2
AddressLine2

Second address line

>
{String}</AddressLine2>
53
          <PostalCode
PostalCode

Postalcode/Postcode/ZIP

>
{String}</PostalCode>
54
          <City
City

City/town/village

>
{String}</City>
55
          <Region
Region

Region/province/state

>
{String}</Region>
56
          <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

>
{String}</CountryCode>
57
          <Country
Country

English name of country.

>
{String}</Country>
58
          <AddressLink
AddressLink

Address reference

>
{String}</AddressLink>
59
     </InvoiceAddress>
60
     <ShippingAddress>
61
          <AddressId
AddressId

Reference to customer's shipping address

>
{Integer}</AddressId>
62
          <Name
Name

Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.

>
{String}</Name>
63
          <FirstName
FirstName

Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.

>
{String}</FirstName>
64
          <AddressLine1
AddressLine1

First address line

>
{String}</AddressLine1>
65
          <AddressLine2
AddressLine2

Second address line

>
{String}</AddressLine2>
66
          <PostalCode
PostalCode

Postalcode/Postcode/ZIP

>
{String}</PostalCode>
67
          <City
City

City/town/village

>
{String}</City>
68
          <Region
Region

Region/province/state

>
{String}</Region>
69
          <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

>
{String}</CountryCode>
70
          <Country
Country

English name of country.

>
{String}</Country>
71
          <ExternalReference
ExternalReference

External address identifier. Normally defined by the customer.

>
{String}</ExternalReference>
72
          <AddressLink
AddressLink

Address reference

>
{String}</AddressLink>
73
     </ShippingAddress>
74
     <Responsible
Responsible

PID reference of sales assistant for the contract

>
75
          <UserId
UserId

User identifier

>
{Integer}</UserId>
76
          <Name
Name

Name of the user

>
{String}</Name>
77
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
78
          <UserLink
UserLink

User reference

>
{String}</UserLink>
79
     </Responsible>
80
     <Assignee
Assignee

PID reference of sales assistant for the contract

>
81
          <UserId
UserId

User identifier

>
{Integer}</UserId>
82
          <Name
Name

Name of the user

>
{String}</Name>
83
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
84
          <UserLink
UserLink

User reference

>
{String}</UserLink>
85
     </Assignee>
86
     <AccountManager
AccountManager

PID reference of sales assistant for the contract

>
87
          <UserId
UserId

User identifier

>
{Integer}</UserId>
88
          <Name
Name

Name of the user

>
{String}</Name>
89
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
90
          <UserLink
UserLink

User reference

>
{String}</UserLink>
91
     </AccountManager>
92
     <Payment>
93
          <PaymentTerms
PaymentTerms

Payment terms for rental contract

Possible domain values can be found here

>
{String}</PaymentTerms>
94
     </Payment>
95
     <VATDetails>
96
          <VATHandling
VATHandling

Specifies how value added tax (VAT) should be calculated. Either always include VAT, always exclude VAT or use standard/default VAT rules.

Possible domain values can be found here

>
{String}</VATHandling>
97
     </VATDetails>
98
     <Location>
99
          <LocationId
LocationId

Location identifier

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

Unique abbreviation/short name of the location

>
{String}</ShortName>
101
          <Address>
102
               <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

>
{String}</CountryCode>
103
          </Address>
104
          <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
105
     </Location>
106
     <Shipment>
107
          <DeliveryTerms
DeliveryTerms

Delivery terms when shipping the goods. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce). The delivery terms is by default retrieved from the customer.

Possible domain values can be found here

>
{String}</DeliveryTerms>
108
          <DeliveryTermPlace
DeliveryTermPlace

Named place related to delivery terms (Incoterms)

>
{String}</DeliveryTermPlace>
109
          <ShippingService>
110
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

>
{Integer}</ShippingServiceId>
111
               <Name
Name

Name of shipping service

>
{String}</Name>
112
               <Carrier>
113
                    <CarrierId
CarrierId

Carrier identifier

>
{Integer}</CarrierId>
114
                    <CarrierLink
CarrierLink

Carrier reference

>
{String}</CarrierLink>
115
               </Carrier>
116
               <ShippingServiceLink
ShippingServiceLink

Shipping service reference

>
{String}</ShippingServiceLink>
117
          </ShippingService>
118
     </Shipment>
119
     <Totals>
120
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
121
          <TotalAmount
TotalAmount

Total amount estimated per rental contract

>
{Decimal}</TotalAmount>
122
          <DiscountAmount
DiscountAmount

Accumulated value of total discount

>
{Decimal}</DiscountAmount>
123
          <TotalNetAmount
TotalNetAmount

Accumulated sum of total amounts after the discounts

>
{Decimal}</TotalNetAmount>
124
          <AccruedRevenue
AccruedRevenue

Accumulated value of accrued amounts

>
{Decimal}</AccruedRevenue>
125
          <InvoicedAmount
InvoicedAmount

Accumulated value of invoiced amounts

>
{Decimal}</InvoicedAmount>
126
          <ForecastedRevenue
ForecastedRevenue

Accumulated value of forecasted amounts

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

Accumulated value of earned revenue of all contract items

>
{Decimal}</EarnedRevenue>
128
          <CountOfQuotes
CountOfQuotes

Count of items in stage quote

>
{Integer}</CountOfQuotes>
129
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
130
          <TotalAmount
TotalAmount

Total amount estimated per rental contract

>
{Decimal}</TotalAmount>
131
          <DiscountAmount
DiscountAmount

Accumulated value of total discount

>
{Decimal}</DiscountAmount>
132
          <TotalNetAmount
TotalNetAmount

Accumulated sum of total amounts after the discounts

>
{Decimal}</TotalNetAmount>
133
          <AccruedRevenue
AccruedRevenue

Accumulated value of accrued amounts

>
{Decimal}</AccruedRevenue>
134
          <InvoicedAmount
InvoicedAmount

Accumulated value of invoiced amounts

>
{Decimal}</InvoicedAmount>
135
          <ForecastedRevenue
ForecastedRevenue

Accumulated value of forecasted amounts

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

Accumulated value of earned revenue of all contract items

>
{Decimal}</EarnedRevenue>
137
     </Totals>
138
</RentalContract>
1
{
2
     "rentalContract": {
3
          "rentalContractId
RentalContractId

Rental contract identifier

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

Rental contract status

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
6
          "name
Name

Short description for the rental contract

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

Detailed description for the recurring rental contract

":
"{String}",
8
          "internalNote
InternalNote

Internal note for the contract

":
"{String}",
9
          "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
10
          "customersReference
CustomersReference

Customers reference. Typically a person.

":
"{String}",
11
          "customersReferenceNumber
CustomersReferenceNumber

Customers reference number. E.g. the internal sales order id the customer use in their own system.

":
"{String}",
12
          "discountPercentage
DiscountPercentage

This field originates from the Rental discount field on the customer. If changing this field it will not alter discount on existing items.

":
"{Decimal}",
13
          "rentalType
RentalType

Type of contract: Subscription, Rent-to-Rent, Rent-to-Purchase, Customer owned, Re-rent

Possible domain values can be found here

":
"{Integer}",
14
          "invoiceFrequency
InvoiceFrequency

Sets frequency at which invoice can be issued.

Possible domain values can be found here

":
"{Integer}",
15
          "createAccountAdjustmentPlan
CreateAccountAdjustmentPlan

The control bit of a mechanism of automatic creation of periods adustments

":
"{Boolean}",
16
          "deactivateExpirationDateExtending
DeactivateExpirationDateExtending

Allows to deactivate the automatic extension of expiration dates setting for the contract

":
"{Boolean}",
17
          "baseDate
BaseDate

A date from which invoices will start to be generated from

":
"{Date}",
18
          "isAutomaticallyIssued
IsAutomaticallyIssued

"True" if invoices in this rental contract should be released automatically

":
"{Boolean}",
19
          "shippingAddressAttention
ShippingAddressAttention

Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.

":
"{String}",
20
          "shippingAddressPhone
ShippingAddressPhone

Phone number of the shipping address. When changing shipping address, the ShippingAddressPhone will be overridden by the phone number of the new shipping address.

":
"{String}",
21
          "shippingAddressEmail
ShippingAddressEmail

Email address of the shipping address. When changing shipping address, the ShippingAddressEmail will be overridden by the email of the new shipping address.

":
"{String}",
22
          "invoiceAddressAttention
InvoiceAddressAttention

Attention of the invoice address. When changing invoice address, the InvoiceAddressAttention will be overridden by the attention of the new invoice address.

":
"{String}",
23
          "defaultRateChangeType
DefaultRateChangeType

Default setting of change rate type for all new rental contract items

Possible domain values can be found here

":
{
24
               "locationId
LocationId

Location identifier

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

Unique abbreviation/short name of the location

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

Location reference

":
"{Integer}",
27
               "locationId
LocationId

Location identifier

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

Unique abbreviation/short name of the location

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

Location reference

":
"{Integer}"
30
          },
31
          "advanceInvoicing": {
32
               "isInvoicedInAdvance
IsInvoicedInAdvance

True if rental contract is invoiced in advance

":
"{Boolean}",
33
               "baseDateAdvanceDays
BaseDateAdvanceDays

Number of days to advance invoicing from base date

":
"{Integer}"
34
          },
35
          "period": {
36
               "effectiveDate
EffectiveDate

Start date for the recurring contract

":
"{Date}",
37
               "expirationDate
ExpirationDate

End date of the recurring contract

":
"{Date}",
38
               "registrationDate
RegistrationDate

The date of registration of the contract

":
"{Date}",
39
               "terminationDate
TerminationDate

The date of termination of the contract

":
"{Date}",
40
               "closingDate
ClosingDate

The date after the final invoicing, and all logistics handled. The contract is sealed and cannot be changed

":
"{Date}"
41
          },
42
          "customer": {
43
               "customerId
CustomerId

Customer identifier

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

Name of customer (name of company or surname/familyname/lastname of a person)

":
"{String}",
45
               "firstName
FirstName

Secondary name of a company or firstname of a person

":
"{String}",
46
               "customerLink
CustomerLink

Customer reference

":
"{String}"
47
          },
48
          "invoiceAddress": {
49
               "addressId
AddressId

Reference to customer's invoice address

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

Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.

":
"{String}",
51
               "firstName
FirstName

Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.

":
"{String}",
52
               "addressLine1
AddressLine1

First address line

":
"{String}",
53
               "addressLine2
AddressLine2

Second address line

":
"{String}",
54
               "postalCode
PostalCode

Postalcode/Postcode/ZIP

":
"{String}",
55
               "city
City

City/town/village

":
"{String}",
56
               "region
Region

Region/province/state

":
"{String}",
57
               "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

":
"{String}",
58
               "country
Country

English name of country.

":
"{String}",
59
               "addressLink
AddressLink

Address reference

":
"{String}"
60
          },
61
          "shippingAddress": {
62
               "addressId
AddressId

Reference to customer's shipping address

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

Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.

":
"{String}",
64
               "firstName
FirstName

Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.

":
"{String}",
65
               "addressLine1
AddressLine1

First address line

":
"{String}",
66
               "addressLine2
AddressLine2

Second address line

":
"{String}",
67
               "postalCode
PostalCode

Postalcode/Postcode/ZIP

":
"{String}",
68
               "city
City

City/town/village

":
"{String}",
69
               "region
Region

Region/province/state

":
"{String}",
70
               "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

":
"{String}",
71
               "country
Country

English name of country.

":
"{String}",
72
               "externalReference
ExternalReference

External address identifier. Normally defined by the customer.

":
"{String}",
73
               "addressLink
AddressLink

Address reference

":
"{String}"
74
          },
75
          "responsible
Responsible

PID reference of sales assistant for the contract

":
{
76
               "userId
UserId

User identifier

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

Name of the user

":
"{String}",
78
               "firstName
FirstName

First name of the user

":
"{String}",
79
               "userLink
UserLink

User reference

":
"{String}"
80
          },
81
          "assignee
Assignee

PID reference of sales assistant for the contract

":
{
82
               "userId
UserId

User identifier

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

Name of the user

":
"{String}",
84
               "firstName
FirstName

First name of the user

":
"{String}",
85
               "userLink
UserLink

User reference

":
"{String}"
86
          },
87
          "accountManager
AccountManager

PID reference of sales assistant for the contract

":
{
88
               "userId
UserId

User identifier

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

Name of the user

":
"{String}",
90
               "firstName
FirstName

First name of the user

":
"{String}",
91
               "userLink
UserLink

User reference

":
"{String}"
92
          },
93
          "payment": {
94
               "paymentTerms
PaymentTerms

Payment terms for rental contract

Possible domain values can be found here

":
"{String}"
95
          },
96
          "vATDetails": {
97
               "vATHandling
VATHandling

Specifies how value added tax (VAT) should be calculated. Either always include VAT, always exclude VAT or use standard/default VAT rules.

Possible domain values can be found here

":
"{String}"
98
          },
99
          "location": {
100
               "locationId
LocationId

Location identifier

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

Unique abbreviation/short name of the location

":
"{String}",
102
               "address": {
103
                    "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

":
"{String}"
104
               },
105
               "locationLink
LocationLink

Location reference

":
"{String}"
106
          },
107
          "shipment": {
108
               "deliveryTerms
DeliveryTerms

Delivery terms when shipping the goods. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce). The delivery terms is by default retrieved from the customer.

Possible domain values can be found here

":
"{String}",
109
               "deliveryTermPlace
DeliveryTermPlace

Named place related to delivery terms (Incoterms)

":
"{String}",
110
               "shippingService": {
111
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

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

Name of shipping service

":
"{String}",
113
                    "carrier": {
114
                         "carrierId
CarrierId

Carrier identifier

":
"{Integer}",
115
                         "carrierLink
CarrierLink

Carrier reference

":
"{String}"
116
                    },
117
                    "shippingServiceLink
ShippingServiceLink

Shipping service reference

":
"{String}"
118
               }
119
          },
120
          "totals": {
121
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
122
               "totalAmount
TotalAmount

Total amount estimated per rental contract

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

Accumulated value of total discount

":
"{Decimal}",
124
               "totalNetAmount
TotalNetAmount

Accumulated sum of total amounts after the discounts

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

Accumulated value of accrued amounts

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

Accumulated value of invoiced amounts

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

Accumulated value of forecasted amounts

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

Accumulated value of earned revenue of all contract items

":
"{Decimal}",
129
               "countOfQuotes
CountOfQuotes

Count of items in stage quote

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

Three character code following the ISO 4217 standard

":
"{String}",
131
               "totalAmount
TotalAmount

Total amount estimated per rental contract

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

Accumulated value of total discount

":
"{Decimal}",
133
               "totalNetAmount
TotalNetAmount

Accumulated sum of total amounts after the discounts

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

Accumulated value of accrued amounts

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

Accumulated value of invoiced amounts

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

Accumulated value of forecasted amounts

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

Accumulated value of earned revenue of all contract items

":
"{Decimal}"
138
          }
139
     }
140
}

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 101015 HTTP 404 Permission not found
Error 101420 HTTP 404 Setting definition not found
Error 109544 HTTP 400 The country of rental item's check-out location ({0}) does not match rental contract's default check-out location country ({1})
Error 100345 HTTP 400 Location is required
Error 101294 HTTP 400 Location is not active (status 4)
Error 109725 HTTP 400 The new main location must follow the same country as there are some items already defined for the contract
Error 108514 HTTP 400 Invalid invoice frequency
Error 102035 HTTP 400 Effective date is required
Error 108421 HTTP 400 The effective date cannot be later than the expiration date
Error 108635 HTTP 400 Effective date cannot be later then effective date of any contract item
Error 108735 HTTP 400 Expiration date of a contract cannot be earlier then expiration date of any of its quotes
Error 108674 HTTP 400 Termination date cannot be earlier then the effective date
Error 108675 HTTP 400 Termination date cannot be later then the expiration date
Error 108672 HTTP 400 Closing date cannot be earlier then the effective date
Error 108969 HTTP 400 The selected default check-out location ({0}) is not active
Error 108970 HTTP 400 The selected default check-out location ({0}) is not a rental depot capable location
Error 109723 HTTP 400 The country of selected default check-out location ({0}) is different than contract's main location country ({1})
Error 108971 HTTP 400 The selected default check-in location ({0}) is not active
Error 108972 HTTP 400 The selected default check-in location ({0}) is not a rental depot capable location
Error 109724 HTTP 400 The country of selected default check-in location ({0}) is different than contract's main location country ({1})
Error 109335 HTTP 400 Selected payment term is not supported on rental contract
Error 108670 HTTP 400 Discount percentage must be a number between 0 and 100
Error 109623 HTTP 400 VAT handling can't be changed since there has been made invoice(s) from this contract