API

Sales APIs

POST sales/recurring-invoice-plans

Resource for creating new recurring invoice plan

HTTP method POST
URI https://api.rambase.net/sales/recurring-invoice-plans
Supported formats Xml, Html, Json (ex. $format=json)
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 4390, version 19

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
<RecurringInvoicePlan>
2
     <Title
Title

A short description of the recurring invoice plan

This field is optional.

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

A more detailed description of the recurring invoice plan

This field is optional.

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

Three character code following the ISO 4217 standard

Applicable domain values can be found here

Input must match the following regular expression pattern: ^[A-Z]{3}$

This field is optional.

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

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

Default value: False

This field is optional.

>
{Boolean}</IsAutomaticallyIssued>
6
     <BaseDate
BaseDate

A date from which invoices will start to be generated from

This field is optional.

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

Sets frequency at which invoice can be issued.

Applicable domain values can be found here

Minimum value: 0

Default value: 3

This field is optional.

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

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

Default value: False

This field is optional.

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

This field is optional.

>
10
          <IsInvoicedInAdvance
IsInvoicedInAdvance

True if plan is invoiced in advance

Default value: False

This field is optional.

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

Number of days to advance invoicing from base date

Minimum value: 0

Maximum value: 30

This field is optional.

>
{Integer}</BaseDateAdvanceDays>
12
     </AdvanceInvoicing>
13
     <Customer>
14
          <CustomerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

>
{Integer}</CustomerId>
15
     </Customer>
16
     <ShippingAddress
ShippingAddress

This field is optional.

>
17
          <AddressId
AddressId

Reference to customer's shipping address

Minimum value: 1

This field is optional.

>
{Integer}</AddressId>
18
     </ShippingAddress>
19
     <Payment
Payment

This field is optional.

>
20
          <PaymentTerms
PaymentTerms

Specifies how much time the buyer has to make payment

Applicable domain values can be found here

This field is optional.

>
{String}</PaymentTerms>
21
     </Payment>
22
     <VATDetails
VATDetails

This field is optional.

>
23
          <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>
24
     </VATDetails>
25
     <Location
Location

This field is optional.

>
26
          <LocationId
LocationId

Location identifier

Minimum value: 10000

This field is optional.

>
{Integer}</LocationId>
27
     </Location>
28
</RecurringInvoicePlan>
1
{
2
     "recurringInvoicePlan": {
3
          "title
Title

A short description of the recurring invoice plan

This field is optional.

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

A more detailed description of the recurring invoice plan

This field is optional.

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

Three character code following the ISO 4217 standard

Applicable domain values can be found here

Input must match the following regular expression pattern: ^[A-Z]{3}$

This field is optional.

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

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

Default value: False

This field is optional.

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

A date from which invoices will start to be generated from

This field is optional.

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

Sets frequency at which invoice can be issued.

Applicable domain values can be found here

Minimum value: 0

Default value: 3

This field is optional.

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

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

Default value: False

This field is optional.

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

This field is optional.

":
{
11
               "isInvoicedInAdvance
IsInvoicedInAdvance

True if plan is invoiced in advance

Default value: False

This field is optional.

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

Number of days to advance invoicing from base date

Minimum value: 0

Maximum value: 30

This field is optional.

":
"{Integer}"
13
          },
14
          "customer": {
15
               "customerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

":
"{Integer}"
16
          },
17
          "shippingAddress
ShippingAddress

This field is optional.

":
{
18
               "addressId
AddressId

Reference to customer's shipping address

Minimum value: 1

This field is optional.

":
"{Integer}"
19
          },
20
          "payment
Payment

This field is optional.

":
{
21
               "paymentTerms
PaymentTerms

Specifies how much time the buyer has to make payment

Applicable domain values can be found here

This field is optional.

":
"{String}"
22
          },
23
          "vATDetails
VATDetails

This field is optional.

":
{
24
               "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}"
25
          },
26
          "location
Location

This field is optional.

":
{
27
               "locationId
LocationId

Location identifier

Minimum value: 10000

This field is optional.

":
"{Integer}"
28
          }
29
     }
30
}

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
<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
          <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

Accumulated value of all amounts from recurring invoice periods

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

Value of accrued amount from recurring invoice period

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

Accumulated value of invoiced amounts from recurring invoice periods

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

Accumulated value of forecasted amounts

>
{Decimal}</ForecastAmount>
65
     </Payment>
66
     <VATDetails>
67
          <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>
68
     </VATDetails>
69
     <Location>
70
          <LocationId
LocationId

Location identifier

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

Location reference

>
{String}</LocationLink>
72
     </Location>
73
     <RecurringInvoicePlanLink
RecurringInvoicePlanLink

Recurring invoice plan reference

>
{String}</RecurringInvoicePlanLink>
74
</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
               "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

Accumulated value of all amounts from recurring invoice periods

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

Value of accrued amount from recurring invoice period

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

Accumulated value of invoiced amounts from recurring invoice periods

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

Accumulated value of forecasted amounts

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

Location identifier

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

Location reference

":
"{String}"
73
          },
74
          "recurringInvoicePlanLink
RecurringInvoicePlanLink

Recurring invoice plan reference

":
"{String}"
75
     }
76
}

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 100104 HTTP 404 Address not found
Error 100001 HTTP 404 Address not found
Error 106086 HTTP 400 Base date of recurring invoice plan is required
Error 102048 HTTP 400 Customer is not activated