API

Procurement APIs

POST procurement/quotes

Creates a new purchase quote

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

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
<PurchaseQuote>
2
     <SuppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

This field is optional.

>
{String}</SuppliersReference>
3
     <SuppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

This field is optional.

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

Three character code following the ISO 4217 standard

Applicable domain values can be found here

This field is optional.

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

True if purchase quote is ship and debit

Default value: False

This field is optional.

>
{Boolean}</IsShipAndDebit>
6
     <Note
Note

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

This field is optional.

>
{String}</Note>
7
     <Validity
Validity

This field is optional.

>
8
          <EffectiveDate
EffectiveDate

The date the purchase quote takes effect. The quote will be effective from and including this date.

This field is optional.

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

The date the purchase quote expires. The quote will be active to and including this date.

This field is optional.

>
{Date}</ExpirationDate>
10
     </Validity>
11
     <Supplier>
12
          <SupplierId
SupplierId

Required/mandatory field

RamBase supplier identifier

Minimum value: 10000

>
{Integer}</SupplierId>
13
     </Supplier>
14
     <Shipment
Shipment

This field is optional.

>
15
          <DeliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Applicable domain values can be found here

This field is optional.

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

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

This field is optional.

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

This field is optional.

>
18
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

Minimum value: 100000

This field is optional.

>
{Integer}</ShippingServiceId>
19
          </ShippingService>
20
     </Shipment>
21
     <Payment
Payment

This field is optional.

>
22
          <PaymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the supplier.

Applicable domain values can be found here

This field is optional.

>
{String}</PaymentTerms>
23
     </Payment>
24
</PurchaseQuote>
1
{
2
     "purchaseQuote": {
3
          "suppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

This field is optional.

":
"{String}",
4
          "suppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

This field is optional.

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

Three character code following the ISO 4217 standard

Applicable domain values can be found here

This field is optional.

":
"{String}",
6
          "isShipAndDebit
IsShipAndDebit

True if purchase quote is ship and debit

Default value: False

This field is optional.

":
"{Boolean}",
7
          "note
Note

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

This field is optional.

":
"{String}",
8
          "validity
Validity

This field is optional.

":
{
9
               "effectiveDate
EffectiveDate

The date the purchase quote takes effect. The quote will be effective from and including this date.

This field is optional.

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

The date the purchase quote expires. The quote will be active to and including this date.

This field is optional.

":
"{Date}"
11
          },
12
          "supplier": {
13
               "supplierId
SupplierId

Required/mandatory field

RamBase supplier identifier

Minimum value: 10000

":
"{Integer}"
14
          },
15
          "shipment
Shipment

This field is optional.

":
{
16
               "deliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Applicable domain values can be found here

This field is optional.

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

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

This field is optional.

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

This field is optional.

":
{
19
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
20
               }
21
          },
22
          "payment
Payment

This field is optional.

":
{
23
               "paymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the supplier.

Applicable domain values can be found here

This field is optional.

":
"{String}"
24
          }
25
     }
26
}

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
<PurchaseQuote>
2
     <PurchaseQuoteId
PurchaseQuoteId

Purchase quote identifier

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

Status of purchase quote

Possible domain values can be found here

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

Date and time of creation

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

Suppliers/sellers reference. Typically a person.

>
{String}</SuppliersReference>
6
     <SuppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

>
{String}</SuppliersReferenceNumber>
7
     <RegistrationDate
RegistrationDate

Date of registration

>
{Date}</RegistrationDate>
8
     <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

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

True if purchase quote is ship and debit

>
{Boolean}</IsShipAndDebit>
10
     <Note
Note

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

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

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

>
12
          <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
16
     </Assignee>
17
     <Validity>
18
          <EffectiveDate
EffectiveDate

The date the purchase quote takes effect. The quote will be effective from and including this date.

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

The date the purchase quote expires. The quote will be active to and including this date.

>
{Date}</ExpirationDate>
20
     </Validity>
21
     <Supplier>
22
          <SupplierId
SupplierId

RamBase supplier identifier

>
{Integer}</SupplierId>
23
          <Name
Name

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

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

Firstname/givenname if the supplier is a person

>
25
               <DefaultInvoiceAddress>
26
                    <Attention
Attention

Attention note.

>
{String}</Attention>
27
                    <AddressLine1
AddressLine1

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

>
{String}</Country>
34
               </DefaultInvoiceAddress>
35
          </Firstname>
36
          <SupplierLink
SupplierLink

Supplier reference

>
{String}</SupplierLink>
37
     </Supplier>
38
     <Totals>
39
          <Currency
Currency

Three character code following the ISO 4217 standard

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

The total amount in object currency, including VAT

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

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

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

The exchange rate used in convertion

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

The total amount in company currency, including VAT.

>
{Decimal}</TotalAmount>
44
     </Totals>
45
     <Shipment>
46
          <DeliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Possible domain values can be found here

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

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

>
{String}</DeliveryTermPlace>
48
          <ShippingService>
49
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

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

Name of shipping service

>
{String}</Name>
51
               <Carrier>
52
                    <CarrierId
CarrierId

Carrier identifier

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

Carrier reference

>
{String}</CarrierLink>
54
               </Carrier>
55
               <ShippingServiceLink
ShippingServiceLink

Shipping service reference

>
{String}</ShippingServiceLink>
56
          </ShippingService>
57
     </Shipment>
58
     <Payment>
59
          <PaymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the supplier.

Possible domain values can be found here

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

Notification identifier

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

Status of the notification

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

Date and time of creation

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

The message from the notification definition, expanded with parameters.

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

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

>
{String}</TranslatedMessage>
65
          <NotificationType>
66
               <NotificationTypeId
NotificationTypeId

Notification type identifier

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

Category of notification type (warning, information etc)

Possible domain values can be found here

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

Notification type reference

>
{String}</NotificationTypeLink>
69
          </NotificationType>
70
          <NotificationLink
NotificationLink

Notification reference

>
{String}</NotificationLink>
71
     </Payment>
72
</PurchaseQuote>
1
{
2
     "purchaseQuote": {
3
          "purchaseQuoteId
PurchaseQuoteId

Purchase quote identifier

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

Status of purchase quote

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
6
          "suppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

":
"{String}",
7
          "suppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

":
"{String}",
8
          "registrationDate
RegistrationDate

Date of registration

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

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
10
          "isShipAndDebit
IsShipAndDebit

True if purchase quote is ship and debit

":
"{Boolean}",
11
          "note
Note

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

":
"{String}",
12
          "assignee
Assignee

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

":
{
13
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
17
          },
18
          "validity": {
19
               "effectiveDate
EffectiveDate

The date the purchase quote takes effect. The quote will be effective from and including this date.

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

The date the purchase quote expires. The quote will be active to and including this date.

":
"{Date}"
21
          },
22
          "supplier": {
23
               "supplierId
SupplierId

RamBase supplier identifier

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

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

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

Firstname/givenname if the supplier is a person

":
{
26
                    "defaultInvoiceAddress": {
27
                         "attention
Attention

Attention note.

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

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

Region/province/state

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

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

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

English name of country.

":
"{String}"
35
                    }
36
               },
37
               "supplierLink
SupplierLink

Supplier reference

":
"{String}"
38
          },
39
          "totals": {
40
               "currency
Currency

Three character code following the ISO 4217 standard

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

The total amount in object currency, including VAT

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

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

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

The exchange rate used in convertion

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

The total amount in company currency, including VAT.

":
"{Decimal}"
45
          },
46
          "shipment": {
47
               "deliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Possible domain values can be found here

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

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

":
"{String}",
49
               "shippingService": {
50
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

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

Name of shipping service

":
"{String}",
52
                    "carrier": {
53
                         "carrierId
CarrierId

Carrier identifier

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

Carrier reference

":
"{String}"
55
                    },
56
                    "shippingServiceLink
ShippingServiceLink

Shipping service reference

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

Terms of payment. Defaut value is retrieved from the supplier.

Possible domain values can be found here

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

Notification identifier

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

Status of the notification

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

Date and time of creation

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

The message from the notification definition, expanded with parameters.

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

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

":
"{String}",
66
               "notificationType": {
67
                    "notificationTypeId
NotificationTypeId

Notification type identifier

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

Category of notification type (warning, information etc)

Possible domain values can be found here

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

Notification type reference

":
"{String}"
70
               },
71
               "notificationLink
NotificationLink

Notification reference

":
"{String}"
72
          }
73
     }
74
}

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 100210 HTTP 404 Receivable 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}