API

Sales APIs

POST sales/quote-requests

Creates a new sales quote request

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

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
<SalesQuoteRequest>
2
     <CustomersReference
CustomersReference

Customers reference. Typically a person.

This field is optional.

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

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

This field is optional.

>
{String}</CustomersReferenceNumber>
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
     <Note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

This field is optional.

>
{String}</Note>
6
     <Customer>
7
          <CustomerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

>
{Integer}</CustomerId>
8
     </Customer>
9
     <ShippingAddress
ShippingAddress

This field is optional.

>
10
          <AddressId
AddressId

Address identifier

Minimum value: 1

This field is optional.

>
{Integer}</AddressId>
11
     </ShippingAddress>
12
     <Shipment
Shipment

This field is optional.

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

Applicable domain values can be found here

This field is optional.

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

Named place related to delivery terms (Incoterms)

This field is optional.

>
{String}</DeliveryTermPlace>
15
          <ShippingService
ShippingService

This field is optional.

>
16
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

This field is optional.

>
{Integer}</ShippingServiceId>
17
          </ShippingService>
18
     </Shipment>
19
     <Payment
Payment

This field is optional.

>
20
          <PaymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the customer. The due date of the sales order and sales invoice is calculated based on this field.

Applicable domain values can be found here

This field is optional.

>
{String}</PaymentTerms>
21
     </Payment>
22
</SalesQuoteRequest>
1
{
2
     "salesQuoteRequest": {
3
          "customersReference
CustomersReference

Customers reference. Typically a person.

This field is optional.

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

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

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
          "note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

This field is optional.

":
"{String}",
7
          "customer": {
8
               "customerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

":
"{Integer}"
9
          },
10
          "shippingAddress
ShippingAddress

This field is optional.

":
{
11
               "addressId
AddressId

Address identifier

Minimum value: 1

This field is optional.

":
"{Integer}"
12
          },
13
          "shipment
Shipment

This field is optional.

":
{
14
               "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.

Applicable domain values can be found here

This field is optional.

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

Named place related to delivery terms (Incoterms)

This field is optional.

":
"{String}",
16
               "shippingService
ShippingService

This field is optional.

":
{
17
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

This field is optional.

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

This field is optional.

":
{
21
               "paymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the customer. The due date of the sales order and sales invoice is calculated based on this field.

Applicable domain values can be found here

This field is optional.

":
"{String}"
22
          }
23
     }
24
}

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
<SalesQuoteRequest>
2
     <SalesQuoteRequestId
SalesQuoteRequestId

Sales quote request identifier

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

Status of sales quote request

Possible domain values can be found here

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

Date and time of creation

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

Date of registration

>
{Date}</RegistrationDate>
6
     <SellersReferenceNumber
SellersReferenceNumber

Sellers reference number.

>
{String}</SellersReferenceNumber>
7
     <CustomersReference
CustomersReference

Customers reference. Typically a person.

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

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

>
{String}</CustomersReferenceNumber>
9
     <GrossMargin
GrossMargin

Gross margin of sale, calculated as an average of gross margin of all items at the time items are created and when the document is registered. Will not be recalculated if gross margin in items change afterwards

>
{Decimal}</GrossMargin>
10
     <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

>
{String}</Currency>
11
     <Note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

>
{String}</Note>
12
     <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>
13
     <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>
14
     <Assignee
Assignee

The user who has been assigned to work with this object.

>
15
          <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
19
     </Assignee>
20
     <Customer>
21
          <CustomerId
CustomerId

Customer identifier

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

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

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

Secondary name of a company or firstname of a person

>
{String}</Firstname>
24
          <Sales>
25
               <SalesDistrict
SalesDistrict

A geographic district for which an individual salesperson or sales team holds responsibility

Possible domain values can be found here

>
{String}</SalesDistrict>
26
               <MarketSegment
MarketSegment

Market segment of the customer

Possible domain values can be found here

>
27
                    <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
28
                    <LastName
LastName

Last name of employee

>
{String}</LastName>
29
                    <FirstName
FirstName

First name of employee

>
{String}</FirstName>
30
                    <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
31
                    <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
32
                    <LastName
LastName

Last name of employee

>
{String}</LastName>
33
                    <FirstName
FirstName

First name of employee

>
{String}</FirstName>
34
                    <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
35
               </MarketSegment>
36
          </Sales>
37
          <CustomerLegalEntity>
38
               <CustomerLegalEntityId
CustomerLegalEntityId

Customer legal entity identifier

>
{Integer}</CustomerLegalEntityId>
39
               <CustomerLegalEntityLink
CustomerLegalEntityLink

Reference to customer legal entity

>
{String}</CustomerLegalEntityLink>
40
          </CustomerLegalEntity>
41
          <CustomerLink
CustomerLink

Customer reference

>
{String}</CustomerLink>
42
     </Customer>
43
     <ShippingAddress>
44
          <AddressId
AddressId

Address identifier

>
{Integer}</AddressId>
45
          <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>
46
          <Firstname
Firstname

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

>
{String}</Firstname>
47
          <AddressLine1
AddressLine1

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

>
{String}</Country>
54
     </ShippingAddress>
55
     <InvoiceAddress>
56
          <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>
57
          <Firstname
Firstname

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

>
{String}</Firstname>
58
          <AddressLine1
AddressLine1

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

>
{String}</Country>
65
     </InvoiceAddress>
66
     <Totals>
67
          <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

The total amount in object currency, including VAT

>
{Decimal}</TotalAmount>
69
          <Currency
Currency

Currency used in conversion. Default is company accounting currency. Three character code following the ISO 4217 standard.

>
{String}</Currency>
70
          <ExchangeRate
ExchangeRate

The exchange rate used in convertion

>
{Decimal}</ExchangeRate>
71
          <TotalAmount
TotalAmount

The total amount in company currency, including VAT.

>
{Decimal}</TotalAmount>
72
     </Totals>
73
     <Shipment>
74
          <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>
75
          <DeliveryTermPlace
DeliveryTermPlace

Named place related to delivery terms (Incoterms)

>
{String}</DeliveryTermPlace>
76
          <ShippingService>
77
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

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

Name of shipping service

>
{String}</Name>
79
               <Carrier>
80
                    <CarrierId
CarrierId

Carrier identifier

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

Carrier reference

>
{String}</CarrierLink>
82
               </Carrier>
83
               <ShippingServiceLink
ShippingServiceLink

Shipping service reference

>
{String}</ShippingServiceLink>
84
          </ShippingService>
85
     </Shipment>
86
     <Payment>
87
          <PaymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the customer. The due date of the sales order and sales invoice is calculated based on this field.

Possible domain values can be found here

>
{String}</PaymentTerms>
88
          <NotificationId
NotificationId

Notification identifier

>
{Integer}</NotificationId>
89
          <Status
Status

Status of the notification

Possible domain values can be found here

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

Date and time of creation

>
{Datetime}</CreatedAt>
91
          <Message
Message

The message from the notification definition, expanded with parameters.

>
{String}</Message>
92
          <TranslatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

>
{String}</TranslatedMessage>
93
          <NotificationType>
94
               <NotificationTypeId
NotificationTypeId

Notification type identifier

>
{String}</NotificationTypeId>
95
               <Category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

>
{String}</Category>
96
               <NotificationTypeLink
NotificationTypeLink

Notification type reference

>
{String}</NotificationTypeLink>
97
          </NotificationType>
98
          <NotificationLink
NotificationLink

Notification reference

>
{String}</NotificationLink>
99
     </Payment>
100
</SalesQuoteRequest>
1
{
2
     "salesQuoteRequest": {
3
          "salesQuoteRequestId
SalesQuoteRequestId

Sales quote request identifier

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

Status of sales quote request

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
6
          "registrationDate
RegistrationDate

Date of registration

":
"{Date}",
7
          "sellersReferenceNumber
SellersReferenceNumber

Sellers reference number.

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

Customers reference. Typically a person.

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

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

":
"{String}",
10
          "grossMargin
GrossMargin

Gross margin of sale, calculated as an average of gross margin of all items at the time items are created and when the document is registered. Will not be recalculated if gross margin in items change afterwards

":
"{Decimal}",
11
          "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
12
          "note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

":
"{String}",
13
          "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}",
14
          "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}",
15
          "assignee
Assignee

The user who has been assigned to work with this object.

":
{
16
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
20
          },
21
          "customer": {
22
               "customerId
CustomerId

Customer identifier

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

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

":
"{String}",
24
               "firstname
Firstname

Secondary name of a company or firstname of a person

":
"{String}",
25
               "sales": {
26
                    "salesDistrict
SalesDistrict

A geographic district for which an individual salesperson or sales team holds responsibility

Possible domain values can be found here

":
"{String}",
27
                    "marketSegment
MarketSegment

Market segment of the customer

Possible domain values can be found here

":
{
28
                         "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
29
                         "lastName
LastName

Last name of employee

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

First name of employee

":
"{String}",
31
                         "employeeLink
EmployeeLink

Employee reference

":
"{String}",
32
                         "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
33
                         "lastName
LastName

Last name of employee

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

First name of employee

":
"{String}",
35
                         "employeeLink
EmployeeLink

Employee reference

":
"{String}"
36
                    }
37
               },
38
               "customerLegalEntity": {
39
                    "customerLegalEntityId
CustomerLegalEntityId

Customer legal entity identifier

":
"{Integer}",
40
                    "customerLegalEntityLink
CustomerLegalEntityLink

Reference to customer legal entity

":
"{String}"
41
               },
42
               "customerLink
CustomerLink

Customer reference

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

Address identifier

":
"{Integer}",
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}",
47
               "firstname
Firstname

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

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

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

":
"{String}"
55
          },
56
          "invoiceAddress": {
57
               "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}",
58
               "firstname
Firstname

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

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

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

":
"{String}"
66
          },
67
          "totals": {
68
               "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

The total amount in object currency, including VAT

":
"{Decimal}",
70
               "currency
Currency

Currency used in conversion. Default is company accounting currency. Three character code following the ISO 4217 standard.

":
"{String}",
71
               "exchangeRate
ExchangeRate

The exchange rate used in convertion

":
"{Decimal}",
72
               "totalAmount
TotalAmount

The total amount in company currency, including VAT.

":
"{Decimal}"
73
          },
74
          "shipment": {
75
               "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}",
76
               "deliveryTermPlace
DeliveryTermPlace

Named place related to delivery terms (Incoterms)

":
"{String}",
77
               "shippingService": {
78
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

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

Name of shipping service

":
"{String}",
80
                    "carrier": {
81
                         "carrierId
CarrierId

Carrier identifier

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

Carrier reference

":
"{String}"
83
                    },
84
                    "shippingServiceLink
ShippingServiceLink

Shipping service reference

":
"{String}"
85
               }
86
          },
87
          "payment": {
88
               "paymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the customer. The due date of the sales order and sales invoice is calculated based on this field.

Possible domain values can be found here

":
"{String}",
89
               "notificationId
NotificationId

Notification identifier

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

Status of the notification

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
92
               "message
Message

The message from the notification definition, expanded with parameters.

":
"{String}",
93
               "translatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

":
"{String}",
94
               "notificationType": {
95
                    "notificationTypeId
NotificationTypeId

Notification type identifier

":
"{String}",
96
                    "category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

":
"{String}",
97
                    "notificationTypeLink
NotificationTypeLink

Notification type reference

":
"{String}"
98
               },
99
               "notificationLink
NotificationLink

Notification reference

":
"{String}"
100
          }
101
     }
102
}

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 100202 HTTP 404 Payable journal entry not found
Error 102750 HTTP 400 Number of parameter values does not match the number of parameters in the formula
Error 102749 HTTP 400 Missing parameter value for parameter {0}
Error 102747 HTTP 400 Error in formula: {0}
Error 105186 HTTP 400 Postings are not allowed on control accounts.
Error 101490 HTTP 400 Illegal Account {0}: This account has been blocked for {1}-documents
Error 101491 HTTP 400 Illegal Account {0}: Check the account's FromPeriod and ToPeriod
Error 101517 HTTP 400 Illegal Account {0}: This account require ICTDB.
Error 102482 HTTP 400 Department is required for general ledger account {0}
Error 102483 HTTP 400 Finance project is required for general ledger account {0}
Error 102484 HTTP 400 Asset is required for general ledger account {0}
Error 102485 HTTP 400 Dimension {0} ({1}) is required for general ledger account {2}
Error 101313 HTTP 400 Department number is not valid: {0}
Error 101320 HTTP 400 The project number is not valid: {0}
Error 101500 HTTP 400 Project {0} could not be used : Check project FromPeriod and ToPeriod.
Error 101501 HTTP 400 Asset is not allowed on general ledger account {0}
Error 101326 HTTP 400 The asset number is not valid : {0}
Error 102486 HTTP 400 Invalid value for dimension {0}