API

Procurement APIs

POST procurement/orders/{purchaseOrderId}/items

Creates a new item in provided purhcase order

HTTP method POST
URI https://api.rambase.net/procurement/orders/{purchaseOrderId}/items
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {purchaseOrderId} Purchase order identifier
Integer, minimum 100000
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 3009, 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
<PurchaseOrderItem>
2
     <RequestedDeliveryDate
RequestedDeliveryDate

Required/mandatory field

The delivery date as requested by the buyer/purchaser

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

Shceduled date of shipping goods or material to supplier for external work.

This field is optional.

>
{Date}</ScheduledShippingDateToSupplier>
4
     <SuppliersReferenceNumber
SuppliersReferenceNumber

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

This field is optional.

>
{String}</SuppliersReferenceNumber>
5
     <SuppliersProductName
SuppliersProductName

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

This field is optional.

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

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

This field is optional.

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

The requested revision of the product structure

This field is optional.

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

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

This field is optional.

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

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

This field is optional.

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

Required/mandatory field

Number of units purchased

Minimum value: 0

>
{Decimal}</Quantity>
11
     <HeatNumber
HeatNumber

A heat number is an identification coupon number that is stamped on a material plate after it is removed from the ladle and rolled at a steel mill.

This field is optional.

>
{String}</HeatNumber>
12
     <RequireSerialNumberAtGoodsReception
RequireSerialNumberAtGoodsReception

If all units of this product should have a serial number in stock, you should require serial number to be required at goods reception. This will ensure that serial number is specified before goods receptions with this product is registered.

Default value: False

This field is optional.

>
{Boolean}</RequireSerialNumberAtGoodsReception>
13
     <Price
Price

This field is optional.

>
14
          <NetPrice
NetPrice

Final price per unit after deducting all discounts etc.

Minimum value: 0

This field is optional.

>
{Decimal}</NetPrice>
15
          <Freight
Freight

Estimated freight for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

Minimum value: 0

This field is optional.

>
{Decimal}</Freight>
16
          <FreightPercent
FreightPercent

Estimated freight in percent of net price. Used for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

Minimum value: 0

Maximum value: 100

This field is optional.

>
{Decimal}</FreightPercent>
17
     </Price>
18
     <Product>
19
          <ProductId
ProductId

Required/mandatory field

Product identifier

Minimum value: 10000

>
{Integer}</ProductId>
20
     </Product>
21
     <ManufacturersProduct
ManufacturersProduct

This field is optional.

>
22
          <ManufacturersProductId
ManufacturersProductId

Manufacturer product identifier

Minimum value: 100000

This field is optional.

>
{Integer}</ManufacturersProductId>
23
     </ManufacturersProduct>
24
     <Accounting
Accounting

Accounting details for the item, including fixed/system dimensions. For all dimensions, see seperate resource.

This field is optional.

>
25
          <VATCodeDefinition
VATCodeDefinition

This field is optional.

>
26
               <VATCode
VATCode

Code that determines VAT rules used for VAT calculations.

This field is optional.

>
{String}</VATCode>
27
          </VATCodeDefinition>
28
     </Accounting>
29
</PurchaseOrderItem>
1
{
2
     "purchaseOrderItem": {
3
          "requestedDeliveryDate
RequestedDeliveryDate

Required/mandatory field

The delivery date as requested by the buyer/purchaser

":
"{Date}",
4
          "scheduledShippingDateToSupplier
ScheduledShippingDateToSupplier

Shceduled date of shipping goods or material to supplier for external work.

This field is optional.

":
"{Date}",
5
          "suppliersReferenceNumber
SuppliersReferenceNumber

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

This field is optional.

":
"{String}",
6
          "suppliersProductName
SuppliersProductName

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

This field is optional.

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

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

This field is optional.

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

The requested revision of the product structure

This field is optional.

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

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

This field is optional.

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

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

This field is optional.

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

Required/mandatory field

Number of units purchased

Minimum value: 0

":
"{Decimal}",
12
          "heatNumber
HeatNumber

A heat number is an identification coupon number that is stamped on a material plate after it is removed from the ladle and rolled at a steel mill.

This field is optional.

":
"{String}",
13
          "requireSerialNumberAtGoodsReception
RequireSerialNumberAtGoodsReception

If all units of this product should have a serial number in stock, you should require serial number to be required at goods reception. This will ensure that serial number is specified before goods receptions with this product is registered.

Default value: False

This field is optional.

":
"{Boolean}",
14
          "price
Price

This field is optional.

":
{
15
               "netPrice
NetPrice

Final price per unit after deducting all discounts etc.

Minimum value: 0

This field is optional.

":
"{Decimal}",
16
               "freight
Freight

Estimated freight for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

Minimum value: 0

This field is optional.

":
"{Decimal}",
17
               "freightPercent
FreightPercent

Estimated freight in percent of net price. Used for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

Minimum value: 0

Maximum value: 100

This field is optional.

":
"{Decimal}"
18
          },
19
          "product": {
20
               "productId
ProductId

Required/mandatory field

Product identifier

Minimum value: 10000

":
"{Integer}"
21
          },
22
          "manufacturersProduct
ManufacturersProduct

This field is optional.

":
{
23
               "manufacturersProductId
ManufacturersProductId

Manufacturer product identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
24
          },
25
          "accounting
Accounting

Accounting details for the item, including fixed/system dimensions. For all dimensions, see seperate resource.

This field is optional.

":
{
26
               "vATCodeDefinition
VATCodeDefinition

This field is optional.

":
{
27
                    "vATCode
VATCode

Code that determines VAT rules used for VAT calculations.

This field is optional.

":
"{String}"
28
               }
29
          }
30
     }
31
}

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
<PurchaseOrderItem>
2
     <PurchaseOrderItemId
PurchaseOrderItemId

Item-/line-number of the purchase order

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

Status code of the the purchase order 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
     <ScheduledShippingDateToSupplier
ScheduledShippingDateToSupplier

Shceduled date of shipping goods or material to supplier for external work.

>
{Date}</ScheduledShippingDateToSupplier>
8
     <SuppliersReferenceNumber
SuppliersReferenceNumber

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

>
{String}</SuppliersReferenceNumber>
9
     <SuppliersProductName
SuppliersProductName

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

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

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

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

The requested revision of the product structure

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

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

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

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

>
{String}</Note>
14
     <VATPercent
VATPercent

Value added tax percent

>
{Decimal}</VATPercent>
15
     <Quantity
Quantity

Number of units purchased

>
{Decimal}</Quantity>
16
     <HeatNumber
HeatNumber

A heat number is an identification coupon number that is stamped on a material plate after it is removed from the ladle and rolled at a steel mill.

>
{String}</HeatNumber>
17
     <RequireSerialNumberAtGoodsReception
RequireSerialNumberAtGoodsReception

If all units of this product should have a serial number in stock, you should require serial number to be required at goods reception. This will ensure that serial number is specified before goods receptions with this product is registered.

>
{Boolean}</RequireSerialNumberAtGoodsReception>
18
     <RemainingQuantity
RemainingQuantity

Remaining number of units to be forwarded

>
{Decimal}</RemainingQuantity>
19
     <AvailableQuantity
AvailableQuantity

Quantity available/free for use. Not assigned to anything.

>
{Decimal}</AvailableQuantity>
20
     <ReservedQuantity
ReservedQuantity

Quantity reserved from beeing assigned to other objects. Ex. quantity reserved to be used as spare parts, reserved for exhibitions and similar. The reserved quantity cannot be assigned to anything until the reservedquantity is released.

>
{Decimal}</ReservedQuantity>
21
     <ProductUnitMarkingSpecification
ProductUnitMarkingSpecification

Describes how to mark the product unit

>
22
          <EarliestConsumptionDate
EarliestConsumptionDate

The earliest date that these items can be used or consumed based upon the stock assignment with the earliest production date if it is linked to a production work order, or if it is linked to a sales order, the earliest requested date on the linked sales orders.

>
{Date}</EarliestConsumptionDate>
23
          <EarliestConsumptionDays
EarliestConsumptionDays

The deviation between Earliest consumption date and Confirmed delivery date, or Requested delivery date if no delivery date is confirmed by the supplier.

>
{Integer}</EarliestConsumptionDays>
24
          <LatestConsumptionDate
LatestConsumptionDate

The earliest date that these items can be used or consumed based upon the stock assignment with the latest production date if it is linked to a production work order, or if it is linked to a sales order, the latest requested date on the linked sales orders.

>
{Date}</LatestConsumptionDate>
25
          <LatestConsumptionDays
LatestConsumptionDays

The deviation between Latest consumption date and Confirmed delivery date, or Requested delivery date if no delivery date is confirmed by the supplier.

>
{Integer}</LatestConsumptionDays>
26
          <PercentUnassigned
PercentUnassigned

Remaining production available in percent

>
{Decimal}</PercentUnassigned>
27
     </ProductUnitMarkingSpecification>
28
     <PurchaseGroup>
29
          <PurchaseGroupId
PurchaseGroupId

Purchase group identifier

>
{Integer}</PurchaseGroupId>
30
          <PurchaseGroupLink
PurchaseGroupLink

Material unit reference

>
{String}</PurchaseGroupLink>
31
     </PurchaseGroup>
32
     <Price>
33
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
34
          <NetPrice
NetPrice

Final price per unit after deducting all discounts etc.

>
{Decimal}</NetPrice>
35
          <Freight
Freight

Estimated freight for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

>
{Decimal}</Freight>
36
          <FreightPercent
FreightPercent

Estimated freight in percent of net price. Used for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

>
{Decimal}</FreightPercent>
37
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
38
          <NetPrice
NetPrice

Final price per unit after deducting all discounts.

>
{Decimal}</NetPrice>
39
     </Price>
40
     <Totals>
41
          <Currency
Currency

Three character code following the ISO 4217 standard

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

Final item amount after deducting all discounts etc.

>
{Decimal}</NetAmount>
43
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
44
          <NetAmount
NetAmount

Total net amount in company currency.

>
{Decimal}</NetAmount>
45
          <EmployeeId
EmployeeId

Employee identifier

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

First name of employee

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

Last name of employee

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

Employee reference

>
{String}</EmployeeLink>
49
     </Totals>
50
     <MeasurementUnit>
51
          <MeasurementUnitId
MeasurementUnitId

Material unit reference

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

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

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

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

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

Material unit reference

>
{String}</MeasurementUnitLink>
55
     </MeasurementUnit>
56
     <Product>
57
          <ProductId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

>
{String}</Type>
60
          <CountryOfOriginCode
CountryOfOriginCode

Two-character code (ISO 3166) identifying the default country where the product is produced. This value is inherrited from the assigned goods reception(s). If not country of origin is specified for the goods reception(s), country of origin is retrieved from the product. If assigned to multiple goods receptions with different origin, the field will be empty.

>
{String}</CountryOfOriginCode>
61
          <CustomField1
CustomField1

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

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

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

>
{String}</CustomField2>
63
          <Dimensions>
64
               <Weight
Weight

The weight of the product in kilograms.

>
{Decimal}</Weight>
65
          </Dimensions>
66
          <ProductClassification>
67
               <ProductClassificationId
ProductClassificationId

Product classification identifier

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

Product classification reference

>
{String}</ProductClassificationLink>
69
          </ProductClassification>
70
          <Stock>
71
               <IsNonStock
IsNonStock

True if this is a non-physical product which are no using assignments from the assignment archive

>
{Boolean}</IsNonStock>
72
               <AutoCreateProductUnitAtGoodsReception
AutoCreateProductUnitAtGoodsReception

When activated, product units are automatically generated when goods are registered to stock.

>
{Boolean}</AutoCreateProductUnitAtGoodsReception>
73
          </Stock>
74
          <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
75
     </Product>
76
     <Manufacturer>
77
          <ManufacturerId
ManufacturerId

Manufacturer identifier

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

Shortname/code of the manufacturer

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

Manufacturer reference

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

Manufacturer product identifier

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

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

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

Manufacturers product reference

>
{String}</ManufacturersProductLink>
83
     </Manufacturer>
84
     <Accounting
Accounting

Accounting details for the item, including fixed/system dimensions. For all dimensions, see seperate resource.

>
85
          <VATCodeDefinition>
86
               <VATCode
VATCode

Code that determines VAT rules used for VAT calculations.

>
{String}</VATCode>
87
          </VATCodeDefinition>
88
          <GeneralLedgerAccount>
89
               <GeneralLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

>
{Integer}</GeneralLedgerAccountId>
90
               <GeneralLedgerAccountLink
GeneralLedgerAccountLink

General ledger account reference

>
{String}</GeneralLedgerAccountLink>
91
          </GeneralLedgerAccount>
92
          <Department
Department

The department related to the item. One of the system/fixed account dimensions.

>
93
               <DepartmentId
DepartmentId

Department identifier

>
{Integer}</DepartmentId>
94
               <DepartmentLink
DepartmentLink

Finance department reference

>
{String}</DepartmentLink>
95
          </Department>
96
          <FinanceProject
FinanceProject

The finance project related to the item. One of the system/fixed account dimensions.

>
97
               <FinanceProjectId
FinanceProjectId

Finance project identifier

>
{Integer}</FinanceProjectId>
98
               <FinanceProjectLink
FinanceProjectLink

Finance project reference

>
{String}</FinanceProjectLink>
99
          </FinanceProject>
100
          <Asset
Asset

The asset related to the item. One of the system/fixed account dimensions.

>
101
               <AssetId
AssetId

Asset identifier

>
{Integer}</AssetId>
102
               <AssetLink
AssetLink

Asset reference

>
{String}</AssetLink>
103
          </Asset>
104
     </Accounting>
105
     <ForwardedFrom
ForwardedFrom

The preceding/previous/source item.

>
106
          <ForwardedFromItem>
107
               <ItemId
ItemId

Identifier of the object

>
{Integer}</ItemId>
108
               <Object>
109
                    <ObjectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

>
{String}</ObjectLink>
112
               </Object>
113
               <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

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

API reference to the item

>
{String}</ItemLink>
115
          </ForwardedFromItem>
116
          <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>
117
          <ForwardedToItems>
118
               <Item
Item

Item this item was forwarded to.

>
119
                    <ItemId
ItemId

Identifier of the object

>
{Integer}</ItemId>
120
                    <Object>
121
                         <ObjectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

>
{String}</ObjectLink>
124
                    </Object>
125
                    <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

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

API reference to the item

>
{String}</ItemLink>
127
               </Item>
128
          </ForwardedToItems>
129
          <NotificationId
NotificationId

Notification identifier

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

Status of the notification

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

Date and time of creation

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

The message from the notification definition, expanded with parameters.

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

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

>
{String}</TranslatedMessage>
134
          <NotificationType>
135
               <NotificationTypeId
NotificationTypeId

Notification type identifier

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

Category of notification type (warning, information etc)

Possible domain values can be found here

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

Notification type reference

>
{String}</NotificationTypeLink>
138
          </NotificationType>
139
          <NotificationLink
NotificationLink

Notification reference

>
{String}</NotificationLink>
140
          <ProjectOrderItemId
ProjectOrderItemId

Project order item identifier

>
{Integer}</ProjectOrderItemId>
141
          <ProjectOrder>
142
               <ProjectOrderId
ProjectOrderId

Project order identifier

>
{Integer}</ProjectOrderId>
143
          </ProjectOrder>
144
          <InitialOrderQuantity
InitialOrderQuantity

Original total quantity of purchase order

>
{Decimal}</InitialOrderQuantity>
145
          <InitialOrderAmount
InitialOrderAmount

Original total amount of purchase order

>
{Decimal}</InitialOrderAmount>
146
          <RemainingOrderQuantity
RemainingOrderQuantity

Net quantity of purchase order

>
{Decimal}</RemainingOrderQuantity>
147
          <RemainingOrderAmount
RemainingOrderAmount

Total net amount of purchase order

>
{Decimal}</RemainingOrderAmount>
148
          <ConfirmedQuantity
ConfirmedQuantity

Total confirmed quantity

>
{Decimal}</ConfirmedQuantity>
149
          <ConfirmedAmount
ConfirmedAmount

Total confirmed amount

>
{Decimal}</ConfirmedAmount>
150
          <ReceivedQuantity
ReceivedQuantity

Total received quantity

>
{Decimal}</ReceivedQuantity>
151
          <ReceivedAmount
ReceivedAmount

Total received amount

>
{Decimal}</ReceivedAmount>
152
          <InvoicedQuantity
InvoicedQuantity

Total invoiced quantity

>
{Decimal}</InvoicedQuantity>
153
          <InvoicedAmount
InvoicedAmount

Total invoiced amount

>
{Decimal}</InvoicedAmount>
154
          <CanceledQuantity
CanceledQuantity

Total canceled quantity

>
{Decimal}</CanceledQuantity>
155
          <CanceledAmount
CanceledAmount

Total canceled amount

>
{Decimal}</CanceledAmount>
156
          <ClosedWithoutInvoiceQuantity
ClosedWithoutInvoiceQuantity

Total no invoice quantity

>
{Decimal}</ClosedWithoutInvoiceQuantity>
157
          <ClosedWithoutInvoiceAmount
ClosedWithoutInvoiceAmount

Total no invoice amount

>
{Decimal}</ClosedWithoutInvoiceAmount>
158
     </ForwardedFrom>
159
</PurchaseOrderItem>
1
{
2
     "purchaseOrderItem": {
3
          "purchaseOrderItemId
PurchaseOrderItemId

Item-/line-number of the purchase order

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

Status code of the the purchase order 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
          "scheduledShippingDateToSupplier
ScheduledShippingDateToSupplier

Shceduled date of shipping goods or material to supplier for external work.

":
"{Date}",
9
          "suppliersReferenceNumber
SuppliersReferenceNumber

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

":
"{String}",
10
          "suppliersProductName
SuppliersProductName

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

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

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

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

The requested revision of the product structure

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

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

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

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

":
"{String}",
15
          "vATPercent
VATPercent

Value added tax percent

":
"{Decimal}",
16
          "quantity
Quantity

Number of units purchased

":
"{Decimal}",
17
          "heatNumber
HeatNumber

A heat number is an identification coupon number that is stamped on a material plate after it is removed from the ladle and rolled at a steel mill.

":
"{String}",
18
          "requireSerialNumberAtGoodsReception
RequireSerialNumberAtGoodsReception

If all units of this product should have a serial number in stock, you should require serial number to be required at goods reception. This will ensure that serial number is specified before goods receptions with this product is registered.

":
"{Boolean}",
19
          "remainingQuantity
RemainingQuantity

Remaining number of units to be forwarded

":
"{Decimal}",
20
          "availableQuantity
AvailableQuantity

Quantity available/free for use. Not assigned to anything.

":
"{Decimal}",
21
          "reservedQuantity
ReservedQuantity

Quantity reserved from beeing assigned to other objects. Ex. quantity reserved to be used as spare parts, reserved for exhibitions and similar. The reserved quantity cannot be assigned to anything until the reservedquantity is released.

":
"{Decimal}",
22
          "productUnitMarkingSpecification
ProductUnitMarkingSpecification

Describes how to mark the product unit

":
{
23
               "earliestConsumptionDate
EarliestConsumptionDate

The earliest date that these items can be used or consumed based upon the stock assignment with the earliest production date if it is linked to a production work order, or if it is linked to a sales order, the earliest requested date on the linked sales orders.

":
"{Date}",
24
               "earliestConsumptionDays
EarliestConsumptionDays

The deviation between Earliest consumption date and Confirmed delivery date, or Requested delivery date if no delivery date is confirmed by the supplier.

":
"{Integer}",
25
               "latestConsumptionDate
LatestConsumptionDate

The earliest date that these items can be used or consumed based upon the stock assignment with the latest production date if it is linked to a production work order, or if it is linked to a sales order, the latest requested date on the linked sales orders.

":
"{Date}",
26
               "latestConsumptionDays
LatestConsumptionDays

The deviation between Latest consumption date and Confirmed delivery date, or Requested delivery date if no delivery date is confirmed by the supplier.

":
"{Integer}",
27
               "percentUnassigned
PercentUnassigned

Remaining production available in percent

":
"{Decimal}"
28
          },
29
          "purchaseGroup": {
30
               "purchaseGroupId
PurchaseGroupId

Purchase group identifier

":
"{Integer}",
31
               "purchaseGroupLink
PurchaseGroupLink

Material unit reference

":
"{String}"
32
          },
33
          "price": {
34
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
35
               "netPrice
NetPrice

Final price per unit after deducting all discounts etc.

":
"{Decimal}",
36
               "freight
Freight

Estimated freight for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

":
"{Decimal}",
37
               "freightPercent
FreightPercent

Estimated freight in percent of net price. Used for including expected freight cost in the gross margin calculation in sales orders, sales invoices etc.

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

Three character code following the ISO 4217 standard

":
"{String}",
39
               "netPrice
NetPrice

Final price per unit after deducting all discounts.

":
"{Decimal}"
40
          },
41
          "totals": {
42
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
43
               "netAmount
NetAmount

Final item amount after deducting all discounts etc.

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

Three character code following the ISO 4217 standard

":
"{String}",
45
               "netAmount
NetAmount

Total net amount in company currency.

":
"{Decimal}",
46
               "employeeId
EmployeeId

Employee identifier

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

First name of employee

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

Last name of employee

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

Employee reference

":
"{String}"
50
          },
51
          "measurementUnit": {
52
               "measurementUnitId
MeasurementUnitId

Material unit reference

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

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

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

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

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

Material unit reference

":
"{String}"
56
          },
57
          "product": {
58
               "productId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

":
"{String}",
61
               "countryOfOriginCode
CountryOfOriginCode

Two-character code (ISO 3166) identifying the default country where the product is produced. This value is inherrited from the assigned goods reception(s). If not country of origin is specified for the goods reception(s), country of origin is retrieved from the product. If assigned to multiple goods receptions with different origin, the field will be empty.

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

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

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

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

":
"{String}",
64
               "dimensions": {
65
                    "weight
Weight

The weight of the product in kilograms.

":
"{Decimal}"
66
               },
67
               "productClassification": {
68
                    "productClassificationId
ProductClassificationId

Product classification identifier

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

Product classification reference

":
"{String}"
70
               },
71
               "stock": {
72
                    "isNonStock
IsNonStock

True if this is a non-physical product which are no using assignments from the assignment archive

":
"{Boolean}",
73
                    "autoCreateProductUnitAtGoodsReception
AutoCreateProductUnitAtGoodsReception

When activated, product units are automatically generated when goods are registered to stock.

":
"{Boolean}"
74
               },
75
               "productLink
ProductLink

Product reference

":
"{String}"
76
          },
77
          "manufacturer": {
78
               "manufacturerId
ManufacturerId

Manufacturer identifier

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

Shortname/code of the manufacturer

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

Manufacturer reference

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

Manufacturer product identifier

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

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

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

Manufacturers product reference

":
"{String}"
84
          },
85
          "accounting
Accounting

Accounting details for the item, including fixed/system dimensions. For all dimensions, see seperate resource.

":
{
86
               "vATCodeDefinition": {
87
                    "vATCode
VATCode

Code that determines VAT rules used for VAT calculations.

":
"{String}"
88
               },
89
               "generalLedgerAccount": {
90
                    "generalLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

":
"{Integer}",
91
                    "generalLedgerAccountLink
GeneralLedgerAccountLink

General ledger account reference

":
"{String}"
92
               },
93
               "department
Department

The department related to the item. One of the system/fixed account dimensions.

":
{
94
                    "departmentId
DepartmentId

Department identifier

":
"{Integer}",
95
                    "departmentLink
DepartmentLink

Finance department reference

":
"{String}"
96
               },
97
               "financeProject
FinanceProject

The finance project related to the item. One of the system/fixed account dimensions.

":
{
98
                    "financeProjectId
FinanceProjectId

Finance project identifier

":
"{Integer}",
99
                    "financeProjectLink
FinanceProjectLink

Finance project reference

":
"{String}"
100
               },
101
               "asset
Asset

The asset related to the item. One of the system/fixed account dimensions.

":
{
102
                    "assetId
AssetId

Asset identifier

":
"{Integer}",
103
                    "assetLink
AssetLink

Asset reference

":
"{String}"
104
               }
105
          },
106
          "forwardedFrom
ForwardedFrom

The preceding/previous/source item.

":
{
107
               "forwardedFromItem": {
108
                    "itemId
ItemId

Identifier of the object

":
"{Integer}",
109
                    "object": {
110
                         "objectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

":
"{String}"
113
                    },
114
                    "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

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

API reference to the item

":
"{String}"
116
               },
117
               "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}",
118
               "forwardedToItems": [
119
                    {
120
                         "itemId
ItemId

Identifier of the object

":
"{Integer}",
121
                         "object": {
122
                              "objectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

":
"{String}"
125
                         },
126
                         "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

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

API reference to the item

":
"{String}"
128
                    }
129
               ],
130
               "notificationId
NotificationId

Notification identifier

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

Status of the notification

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

Date and time of creation

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

The message from the notification definition, expanded with parameters.

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

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

":
"{String}",
135
               "notificationType": {
136
                    "notificationTypeId
NotificationTypeId

Notification type identifier

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

Category of notification type (warning, information etc)

Possible domain values can be found here

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

Notification type reference

":
"{String}"
139
               },
140
               "notificationLink
NotificationLink

Notification reference

":
"{String}",
141
               "projectOrderItemId
ProjectOrderItemId

Project order item identifier

":
"{Integer}",
142
               "projectOrder": {
143
                    "projectOrderId
ProjectOrderId

Project order identifier

":
"{Integer}"
144
               },
145
               "initialOrderQuantity
InitialOrderQuantity

Original total quantity of purchase order

":
"{Decimal}",
146
               "initialOrderAmount
InitialOrderAmount

Original total amount of purchase order

":
"{Decimal}",
147
               "remainingOrderQuantity
RemainingOrderQuantity

Net quantity of purchase order

":
"{Decimal}",
148
               "remainingOrderAmount
RemainingOrderAmount

Total net amount of purchase order

":
"{Decimal}",
149
               "confirmedQuantity
ConfirmedQuantity

Total confirmed quantity

":
"{Decimal}",
150
               "confirmedAmount
ConfirmedAmount

Total confirmed amount

":
"{Decimal}",
151
               "receivedQuantity
ReceivedQuantity

Total received quantity

":
"{Decimal}",
152
               "receivedAmount
ReceivedAmount

Total received amount

":
"{Decimal}",
153
               "invoicedQuantity
InvoicedQuantity

Total invoiced quantity

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

Total invoiced amount

":
"{Decimal}",
155
               "canceledQuantity
CanceledQuantity

Total canceled quantity

":
"{Decimal}",
156
               "canceledAmount
CanceledAmount

Total canceled amount

":
"{Decimal}",
157
               "closedWithoutInvoiceQuantity
ClosedWithoutInvoiceQuantity

Total no invoice quantity

":
"{Decimal}",
158
               "closedWithoutInvoiceAmount
ClosedWithoutInvoiceAmount

Total no invoice amount

":
"{Decimal}"
159
          }
160
     }
161
}

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 101402 HTTP 404 Customer on purchase quote mismatch with this account
Error 100563 HTTP 400 Currency {0} is not supported by the system
Error 105970 HTTP 400 End date is required
Error 102747 HTTP 400 Error in formula: {0}
Error 101050 HTTP 400 Purchase Quote Item quantity needs to be increased
Error 101045 HTTP 400 The purchase quote item needs to be activated
Error 101401 HTTP 400 The Ship and debit purchase quote must be in the same database as the stock assignment
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}