API

Sales APIs

GET sales/recurring-invoice-plans/{recurringInvoicePlanId}

Get recurring invoice plan details

HTTP method GET
URI https://api.rambase.net/sales/recurring-invoice-plans/{recurringInvoicePlanId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {recurringInvoicePlanId} Recurring invoice plan identifier
Integer, minimum 100000
Custom fields Custom fields supported
Successful HTTP status code 200
API resource identifier 4355, version 37

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

Format:
1
<RecurringInvoicePlan>
2
     <RecurringInvoicePlanId
RecurringInvoicePlanId

Recurring invoice plan identifier

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

Recurring invoice plan status. 4 = active, 9 = closed

Possible domain values can be found here

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

Date and time of creation

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

A short description of the recurring invoice plan

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

A more detailed description of the recurring invoice plan

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

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

"True" if invoices in this recurring invoice plan should be release automatically

>
{Boolean}</IsAutomaticallyIssued>
9
     <CreateAccountAdjustmentPlan
CreateAccountAdjustmentPlan

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

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

A date from which invoices will start to be generated from

>
{Date}</BaseDate>
11
     <InvoiceFrequency
InvoiceFrequency

Sets frequency at which invoice can be issued.

Possible domain values can be found here

>
{Integer}</InvoiceFrequency>
12
     <CustomersReference
CustomersReference

Customers reference. Typically a person.

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

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

>
{String}</CustomersReferenceNumber>
14
     <AdvanceInvoicing>
15
          <IsInvoicedInAdvance
IsInvoicedInAdvance

True if plan is invoiced in advance

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

Number of days to advance invoicing from base date

>
{Integer}</BaseDateAdvanceDays>
17
     </AdvanceInvoicing>
18
     <Responsible
Responsible

PID reference to the owner of the recurring invoice plan

>
19
          <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
23
     </Responsible>
24
     <Customer>
25
          <CustomerId
CustomerId

Customer identifier

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

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

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

Secondary name of a company or firstname of a person

>
{String}</FirstName>
28
          <IsCompany
IsCompany

Indicator if a customer is private entity or a company

>
{Boolean}</IsCompany>
29
          <CustomerLink
CustomerLink

Customer reference

>
{String}</CustomerLink>
30
     </Customer>
31
     <InvoiceAddress>
32
          <AddressId
AddressId

Reference to customer's invoice address

>
{Integer}</AddressId>
33
          <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>
34
          <FirstName
FirstName

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

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

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

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

Address reference

>
{String}</AddressLink>
43
     </InvoiceAddress>
44
     <ShippingAddress>
45
          <AddressId
AddressId

Reference to customer's shipping address

>
{Integer}</AddressId>
46
          <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>
47
          <FirstName
FirstName

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

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

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

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

External address identifier. Normally defined by the customer.

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

Address reference

>
{String}</AddressLink>
57
     </ShippingAddress>
58
     <Payment>
59
          <PaymentTerms
PaymentTerms

Specifies how much time the buyer has to make payment

Possible domain values can be found here

>
{String}</PaymentTerms>
60
     </Payment>
61
     <Totals
Totals

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

>
62
          <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

>
{String}</Currency>
63
          <EstimatedAmount
EstimatedAmount

Accumulated value of all amounts from recurring invoice periods

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

>
{Decimal}</EstimatedAmount>
64
          <AccruedAmount
AccruedAmount

Value of accrued amount from recurring invoice period

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

>
{Decimal}</AccruedAmount>
65
          <InvoicedAmount
InvoicedAmount

Accumulated value of invoiced amounts from recurring invoice periods

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

>
{Decimal}</InvoicedAmount>
66
          <ForecastAmount
ForecastAmount

Accumulated value of forecasted amounts

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

>
{Decimal}</ForecastAmount>
67
     </Totals>
68
     <VATDetails>
69
          <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>
70
     </VATDetails>
71
     <Location>
72
          <LocationId
LocationId

Location identifier

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

Location reference

>
{String}</LocationLink>
74
     </Location>
75
     <RecurringInvoicePlanLink
RecurringInvoicePlanLink

Recurring invoice plan reference

>
{String}</RecurringInvoicePlanLink>
76
</RecurringInvoicePlan>
1
{
2
     "recurringInvoicePlan": {
3
          "recurringInvoicePlanId
RecurringInvoicePlanId

Recurring invoice plan identifier

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

Recurring invoice plan status. 4 = active, 9 = closed

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
6
          "title
Title

A short description of the recurring invoice plan

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

A more detailed description of the recurring invoice plan

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

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
9
          "isAutomaticallyIssued
IsAutomaticallyIssued

"True" if invoices in this recurring invoice plan should be release automatically

":
"{Boolean}",
10
          "createAccountAdjustmentPlan
CreateAccountAdjustmentPlan

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

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

A date from which invoices will start to be generated from

":
"{Date}",
12
          "invoiceFrequency
InvoiceFrequency

Sets frequency at which invoice can be issued.

Possible domain values can be found here

":
"{Integer}",
13
          "customersReference
CustomersReference

Customers reference. Typically a person.

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

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

":
"{String}",
15
          "advanceInvoicing": {
16
               "isInvoicedInAdvance
IsInvoicedInAdvance

True if plan is invoiced in advance

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

Number of days to advance invoicing from base date

":
"{Integer}"
18
          },
19
          "responsible
Responsible

PID reference to the owner of the recurring invoice plan

":
{
20
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
24
          },
25
          "customer": {
26
               "customerId
CustomerId

Customer identifier

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

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

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

Secondary name of a company or firstname of a person

":
"{String}",
29
               "isCompany
IsCompany

Indicator if a customer is private entity or a company

":
"{Boolean}",
30
               "customerLink
CustomerLink

Customer reference

":
"{String}"
31
          },
32
          "invoiceAddress": {
33
               "addressId
AddressId

Reference to customer's invoice address

":
"{Integer}",
34
               "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}",
35
               "firstName
FirstName

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

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

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

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

Address reference

":
"{String}"
44
          },
45
          "shippingAddress": {
46
               "addressId
AddressId

Reference to customer's shipping address

":
"{Integer}",
47
               "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}",
48
               "firstName
FirstName

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

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

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

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

External address identifier. Normally defined by the customer.

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

Address reference

":
"{String}"
58
          },
59
          "payment": {
60
               "paymentTerms
PaymentTerms

Specifies how much time the buyer has to make payment

Possible domain values can be found here

":
"{String}"
61
          },
62
          "totals
Totals

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

":
{
63
               "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

":
"{String}",
64
               "estimatedAmount
EstimatedAmount

Accumulated value of all amounts from recurring invoice periods

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

":
"{Decimal}",
65
               "accruedAmount
AccruedAmount

Value of accrued amount from recurring invoice period

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

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

Accumulated value of invoiced amounts from recurring invoice periods

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

":
"{Decimal}",
67
               "forecastAmount
ForecastAmount

Accumulated value of forecasted amounts

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

":
"{Decimal}"
68
          },
69
          "vATDetails": {
70
               "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}"
71
          },
72
          "location": {
73
               "locationId
LocationId

Location identifier

":
"{Integer}",
74
               "locationLink
LocationLink

Location reference

":
"{String}"
75
          },
76
          "recurringInvoicePlanLink
RecurringInvoicePlanLink

Recurring invoice plan reference

":
"{String}"
77
     }
78
}

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