API

Procurement APIs

POST procurement/quote-requests/{purchaseQuoteRequestId}/items

Creates a new item in provided purchase quote request.

HTTP method POST
URI https://api.rambase.net/procurement/quote-requests/{purchaseQuoteRequestId}/items
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {purchaseQuoteRequestId} Purchase quote request identifier
Integer, minimum 100000
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 2749, version 8

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
<PurchaseQuoteRequestItem>
2
     <RequestedDeliveryDate
RequestedDeliveryDate

The delivery date as requested by the buyer/purchaser

This field is optional.

>
{Date}</RequestedDeliveryDate>
3
     <SuppliersProductName
SuppliersProductName

Suppliers internal name of the product. Retrieved from the product.

This field is optional.

>
{String}</SuppliersProductName>
4
     <EquivalentProductName
EquivalentProductName

Name of product with equivalent behavior and attributes. Can be used for same purpose.

This field is optional.

>
{String}</EquivalentProductName>
5
     <RequestedProductStructureRevision
RequestedProductStructureRevision

The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure.

This field is optional.

>
{String}</RequestedProductStructureRevision>
6
     <Note
Note

Additional information regarding the item (free text). Might be visible to customers/suppliers.

This field is optional.

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

Required/mandatory field

Requested quantity for quote

Minimum value: 0

>
{Decimal}</Quantity>
8
     <Price
Price

This field is optional.

>
9
          <TargetPrice
TargetPrice

The requested target price for this item

This field is optional.

>
{Decimal}</TargetPrice>
10
     </Price>
11
     <Product>
12
          <ProductId
ProductId

Required/mandatory field

Product identifier

Minimum value: 10000

>
{Integer}</ProductId>
13
     </Product>
14
     <ManufacturersProduct
ManufacturersProduct

This field is optional.

>
15
          <ManufacturersProductId
ManufacturersProductId

Manufacturer product identifier

Minimum value: 100000

This field is optional.

>
{Integer}</ManufacturersProductId>
16
     </ManufacturersProduct>
17
</PurchaseQuoteRequestItem>
1
{
2
     "purchaseQuoteRequestItem": {
3
          "requestedDeliveryDate
RequestedDeliveryDate

The delivery date as requested by the buyer/purchaser

This field is optional.

":
"{Date}",
4
          "suppliersProductName
SuppliersProductName

Suppliers internal name of the product. Retrieved from the product.

This field is optional.

":
"{String}",
5
          "equivalentProductName
EquivalentProductName

Name of product with equivalent behavior and attributes. Can be used for same purpose.

This field is optional.

":
"{String}",
6
          "requestedProductStructureRevision
RequestedProductStructureRevision

The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure.

This field is optional.

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

Additional information regarding the item (free text). Might be visible to customers/suppliers.

This field is optional.

":
"{String}",
8
          "quantity
Quantity

Required/mandatory field

Requested quantity for quote

Minimum value: 0

":
"{Decimal}",
9
          "price
Price

This field is optional.

":
{
10
               "targetPrice
TargetPrice

The requested target price for this item

This field is optional.

":
"{Decimal}"
11
          },
12
          "product": {
13
               "productId
ProductId

Required/mandatory field

Product identifier

Minimum value: 10000

":
"{Integer}"
14
          },
15
          "manufacturersProduct
ManufacturersProduct

This field is optional.

":
{
16
               "manufacturersProductId
ManufacturersProductId

Manufacturer product identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
17
          }
18
     }
19
}

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
<PurchaseQuoteRequestItem>
2
     <PurchaseQuoteRequestItemId
PurchaseQuoteRequestItemId

Purchase quote request item identifier

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

Status of item

Possible domain values can be found here

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

Date and time of creation

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

Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc.

>
{Integer}</LineNumber>
6
     <RequestedDeliveryDate
RequestedDeliveryDate

The delivery date as requested by the buyer/purchaser

>
{Date}</RequestedDeliveryDate>
7
     <SuppliersProductName
SuppliersProductName

Suppliers internal name of the product. Retrieved from the product.

>
{String}</SuppliersProductName>
8
     <EquivalentProductName
EquivalentProductName

Name of product with equivalent behavior and attributes. Can be used for same purpose.

>
{String}</EquivalentProductName>
9
     <RequestedProductStructureRevision
RequestedProductStructureRevision

The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure.

>
{String}</RequestedProductStructureRevision>
10
     <ProductDescription
ProductDescription

Description of the item. If not specified, the description is by default copied from the product.

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

Additional information regarding the item (free text). Might be visible to customers/suppliers.

>
{String}</Note>
12
     <Quantity
Quantity

Requested quantity for quote

>
{Decimal}</Quantity>
13
     <RemainingQuantity
RemainingQuantity

Remaining number of units to be forwarded

>
{Decimal}</RemainingQuantity>
14
     <Price>
15
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
16
          <TargetPrice
TargetPrice

The requested target price for this item

>
{Decimal}</TargetPrice>
17
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
18
          <TargetPrice
TargetPrice

The requested target price for this item

>
{Decimal}</TargetPrice>
19
     </Price>
20
     <Totals>
21
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
22
          <TargetAmount
TargetAmount

The total item amount. Calculated by multiplying target price with quantity.

>
{Decimal}</TargetAmount>
23
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
24
          <TargetAmount
TargetAmount

The total item amount. Calculated by multiplying target price with quantity.

>
{Decimal}</TargetAmount>
25
     </Totals>
26
     <MeasurementUnit>
27
          <MeasurementUnitId
MeasurementUnitId

Measurement unit identifier

>
{Integer}</MeasurementUnitId>
28
          <Unit
Unit

Measurement unit (ex. mm, km, dl, kg)

>
{String}</Unit>
29
          <Precision
Precision

The precision/accuracy of the measurement (number of decimals)

>
{Integer}</Precision>
30
          <MeasurementUnitLink
MeasurementUnitLink

Material unit reference

>
{String}</MeasurementUnitLink>
31
     </MeasurementUnit>
32
     <Product>
33
          <ProductId
ProductId

Product identifier

>
{Integer}</ProductId>
34
          <Name
Name

Name of the product

>
{String}</Name>
35
          <Type
Type

Type of product

Possible domain values can be found here

>
{String}</Type>
36
          <CustomField1
CustomField1

Custom field for grouping, sorting, categorizing and other purposes.

>
{String}</CustomField1>
37
          <CustomField2
CustomField2

Custom field for grouping, sorting, categorizing and other purposes.

>
{String}</CustomField2>
38
          <ProductClassification>
39
               <ProductClassificationId
ProductClassificationId

Product classification identifier

>
{String}</ProductClassificationId>
40
               <ProductClassificationLink
ProductClassificationLink

Product classification reference

>
{String}</ProductClassificationLink>
41
          </ProductClassification>
42
          <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
43
     </Product>
44
     <Manufacturer>
45
          <ManufacturerId
ManufacturerId

Manufacturer identifier

>
{Integer}</ManufacturerId>
46
          <ShortName
ShortName

Shortname/code of the manufacturer

>
{String}</ShortName>
47
          <ManufacturerLink
ManufacturerLink

Manufacturer reference

>
{String}</ManufacturerLink>
48
          <ManufacturersProductId
ManufacturersProductId

Manufacturer product identifier

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

Manufacturers name of the product. Also known as Manufacturer Part Number (MPN).

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

Manufacturers product reference

>
{String}</ManufacturersProductLink>
51
     </Manufacturer>
52
     <SalesCase>
53
          <Database
Database

Database of the object

>
{String}</Database>
54
          <ItemId
ItemId

Item-number of the object

>
{Integer}</ItemId>
55
          <ItemType
ItemType

Type of item

>
{String}</ItemType>
56
          <Status
Status

Status of the sales item

>
{Integer}</Status>
57
          <Quantity
Quantity

Quantity of the sales item

>
{Decimal}</Quantity>
58
          <Seller
Seller

Reference to the seller of the item

>
59
               <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
60
               <FirstName
FirstName

First name of employee

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

Last name of employee

>
{String}</LastName>
62
               <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
63
          </Seller>
64
          <Object>
65
               <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
66
               <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
67
               <RegistrationDate
RegistrationDate

Date of registration

>
{Date}</RegistrationDate>
68
               <Assignee
Assignee

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

>
69
                    <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
73
               </Assignee>
74
               <Customer>
75
                    <CustomerId
CustomerId

Customer identifier

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

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

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

Customer reference

>
{String}</CustomerLink>
78
               </Customer>
79
               <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
80
          </Object>
81
          <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

>
{String}</RamBaseKey>
82
          <ItemLink
ItemLink

API reference to the item

>
{String}</ItemLink>
83
          <OpenForwardedQuantity
OpenForwardedQuantity

When items are forwarded they end up in one or more open items. Open items in this context means items that are not registered (status 0 or 1). OpenForwardedQuantity will be the sum of ForwardedQuantity of all items this item has been forwarded to.

>
{Decimal}</OpenForwardedQuantity>
84
          <ForwardedToItems>
85
               <Item
Item

Item this item was forwarded to.

>
86
                    <ItemId
ItemId

Identifier of the object

>
{Integer}</ItemId>
87
                    <Object>
88
                         <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
89
                         <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
90
                         <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
91
                    </Object>
92
                    <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

>
{String}</RamBaseKey>
93
                    <ItemLink
ItemLink

API reference to the item

>
{String}</ItemLink>
94
               </Item>
95
          </ForwardedToItems>
96
          <NotificationId
NotificationId

Notification identifier

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

Status of the notification

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

Date and time of creation

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

The message from the notification definition, expanded with parameters.

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

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

>
{String}</TranslatedMessage>
101
          <NotificationType>
102
               <NotificationTypeId
NotificationTypeId

Notification type identifier

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

Category of notification type (warning, information etc)

Possible domain values can be found here

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

Notification type reference

>
{String}</NotificationTypeLink>
105
          </NotificationType>
106
          <NotificationLink
NotificationLink

Notification reference

>
{String}</NotificationLink>
107
     </SalesCase>
108
</PurchaseQuoteRequestItem>
1
{
2
     "purchaseQuoteRequestItem": {
3
          "purchaseQuoteRequestItemId
PurchaseQuoteRequestItemId

Purchase quote request item identifier

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

Status of item

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
6
          "lineNumber
LineNumber

Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc.

":
"{Integer}",
7
          "requestedDeliveryDate
RequestedDeliveryDate

The delivery date as requested by the buyer/purchaser

":
"{Date}",
8
          "suppliersProductName
SuppliersProductName

Suppliers internal name of the product. Retrieved from the product.

":
"{String}",
9
          "equivalentProductName
EquivalentProductName

Name of product with equivalent behavior and attributes. Can be used for same purpose.

":
"{String}",
10
          "requestedProductStructureRevision
RequestedProductStructureRevision

The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure.

":
"{String}",
11
          "productDescription
ProductDescription

Description of the item. If not specified, the description is by default copied from the product.

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

Additional information regarding the item (free text). Might be visible to customers/suppliers.

":
"{String}",
13
          "quantity
Quantity

Requested quantity for quote

":
"{Decimal}",
14
          "remainingQuantity
RemainingQuantity

Remaining number of units to be forwarded

":
"{Decimal}",
15
          "price": {
16
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
17
               "targetPrice
TargetPrice

The requested target price for this item

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

Three character code following the ISO 4217 standard

":
"{String}",
19
               "targetPrice
TargetPrice

The requested target price for this item

":
"{Decimal}"
20
          },
21
          "totals": {
22
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
23
               "targetAmount
TargetAmount

The total item amount. Calculated by multiplying target price with quantity.

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

Three character code following the ISO 4217 standard

":
"{String}",
25
               "targetAmount
TargetAmount

The total item amount. Calculated by multiplying target price with quantity.

":
"{Decimal}"
26
          },
27
          "measurementUnit": {
28
               "measurementUnitId
MeasurementUnitId

Measurement unit identifier

":
"{Integer}",
29
               "unit
Unit

Measurement unit (ex. mm, km, dl, kg)

":
"{String}",
30
               "precision
Precision

The precision/accuracy of the measurement (number of decimals)

":
"{Integer}",
31
               "measurementUnitLink
MeasurementUnitLink

Material unit reference

":
"{String}"
32
          },
33
          "product": {
34
               "productId
ProductId

Product identifier

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

Name of the product

":
"{String}",
36
               "type
Type

Type of product

Possible domain values can be found here

":
"{String}",
37
               "customField1
CustomField1

Custom field for grouping, sorting, categorizing and other purposes.

":
"{String}",
38
               "customField2
CustomField2

Custom field for grouping, sorting, categorizing and other purposes.

":
"{String}",
39
               "productClassification": {
40
                    "productClassificationId
ProductClassificationId

Product classification identifier

":
"{String}",
41
                    "productClassificationLink
ProductClassificationLink

Product classification reference

":
"{String}"
42
               },
43
               "productLink
ProductLink

Product reference

":
"{String}"
44
          },
45
          "manufacturer": {
46
               "manufacturerId
ManufacturerId

Manufacturer identifier

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

Shortname/code of the manufacturer

":
"{String}",
48
               "manufacturerLink
ManufacturerLink

Manufacturer reference

":
"{String}",
49
               "manufacturersProductId
ManufacturersProductId

Manufacturer product identifier

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

Manufacturers name of the product. Also known as Manufacturer Part Number (MPN).

":
"{String}",
51
               "manufacturersProductLink
ManufacturersProductLink

Manufacturers product reference

":
"{String}"
52
          },
53
          "salesCase": {
54
               "database
Database

Database of the object

":
"{String}",
55
               "itemId
ItemId

Item-number of the object

":
"{Integer}",
56
               "itemType
ItemType

Type of item

":
"{String}",
57
               "status
Status

Status of the sales item

":
"{Integer}",
58
               "quantity
Quantity

Quantity of the sales item

":
"{Decimal}",
59
               "seller
Seller

Reference to the seller of the item

":
{
60
                    "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
61
                    "firstName
FirstName

First name of employee

":
"{String}",
62
                    "lastName
LastName

Last name of employee

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

Employee reference

":
"{String}"
64
               },
65
               "object": {
66
                    "objectType
ObjectType

Type of object

":
"{String}",
67
                    "objectId
ObjectId

Identifier of the object

":
"{Integer}",
68
                    "registrationDate
RegistrationDate

Date of registration

":
"{Date}",
69
                    "assignee
Assignee

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

":
{
70
                         "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
74
                    },
75
                    "customer": {
76
                         "customerId
CustomerId

Customer identifier

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

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

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

Customer reference

":
"{String}"
79
                    },
80
                    "objectLink
ObjectLink

API reference to the object

":
"{String}"
81
               },
82
               "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

":
"{String}",
83
               "itemLink
ItemLink

API reference to the item

":
"{String}",
84
               "openForwardedQuantity
OpenForwardedQuantity

When items are forwarded they end up in one or more open items. Open items in this context means items that are not registered (status 0 or 1). OpenForwardedQuantity will be the sum of ForwardedQuantity of all items this item has been forwarded to.

":
"{Decimal}",
85
               "forwardedToItems": [
86
                    {
87
                         "itemId
ItemId

Identifier of the object

":
"{Integer}",
88
                         "object": {
89
                              "objectId
ObjectId

Identifier of the object

":
"{Integer}",
90
                              "objectType
ObjectType

Type of object

":
"{String}",
91
                              "objectLink
ObjectLink

API reference to the object

":
"{String}"
92
                         },
93
                         "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

":
"{String}",
94
                         "itemLink
ItemLink

API reference to the item

":
"{String}"
95
                    }
96
               ],
97
               "notificationId
NotificationId

Notification identifier

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

Status of the notification

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

Date and time of creation

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

The message from the notification definition, expanded with parameters.

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

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

":
"{String}",
102
               "notificationType": {
103
                    "notificationTypeId
NotificationTypeId

Notification type identifier

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

Category of notification type (warning, information etc)

Possible domain values can be found here

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

Notification type reference

":
"{String}"
106
               },
107
               "notificationLink
NotificationLink

Notification reference

":
"{String}"
108
          }
109
     }
110
}

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 102633 HTTP 404 Product structure cost element not found
Error 102746 HTTP 400 The parameter value can not be more than {0}
Error 102747 HTTP 400 Error in formula: {0}
Error 107762 HTTP 400 Only product structures can auto create work orders for sub production
Error 107763 HTTP 400 Only product structures can be set up for line production
Error 107764 HTTP 400 Only product structures can be externally manufactured
Error 101047 HTTP 400 The purchase quote item has too low available quantity
Error 101400 HTTP 400 Supplier credit claim has been created from shipping advice
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}