API

Procurement APIs

POST procurement/change-requests/{purchaseOrderChangeRequestId}/changes/{changeId}/items

Add a new change item to the purhcase order change request

HTTP method POST
URI https://api.rambase.net/procurement/change-requests/{purchaseOrderChangeRequestId}/changes/{changeId}/items
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {purchaseOrderChangeRequestId} Purchase order change request identifier
Integer, minimum 100000
- URI parameter {changeId} Change identifier
Integer, minimum 1
Successful HTTP status code 201
API resource identifier 3093, 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
<PurchaseOrderChangeRequestItem>
2
     <LineNumber
LineNumber

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

Minimum value: 1

This field is optional.

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

The delivery date as requested by the buyer/purchaser

This field is optional.

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

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

This field is optional.

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

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

This field is optional.

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

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}</ProductStructureRevision>
7
     <ProductDescription
ProductDescription

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

This field is optional.

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

Required/mandatory field

Quantity of the purchase order change requeste item

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

This field is optional.

>
10
          <NetPrice
NetPrice

Final price per unit after deducting all discounts etc.

Minimum value: 0

This field is optional.

>
{Decimal}</NetPrice>
11
     </Price>
12
     <Product>
13
          <ProductId
ProductId

Required/mandatory field

Product identifier

Minimum value: 10000

>
{Integer}</ProductId>
14
     </Product>
15
</PurchaseOrderChangeRequestItem>
1
{
2
     "purchaseOrderChangeRequestItem": {
3
          "lineNumber
LineNumber

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

Minimum value: 1

This field is optional.

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

The delivery date as requested by the buyer/purchaser

This field is optional.

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

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

This field is optional.

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

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

This field is optional.

":
"{String}",
7
          "productStructureRevision
ProductStructureRevision

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}",
8
          "productDescription
ProductDescription

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

This field is optional.

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

Required/mandatory field

Quantity of the purchase order change requeste item

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

This field is optional.

":
{
11
               "netPrice
NetPrice

Final price per unit after deducting all discounts etc.

Minimum value: 0

This field is optional.

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

Required/mandatory field

Product identifier

Minimum value: 10000

":
"{Integer}"
15
          }
16
     }
17
}

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]

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
<PurchaseOrderChangeRequestItem>
2
     <PurchaseOrderChangeRequestItemId
PurchaseOrderChangeRequestItemId

Purchase order change request item identifier

>
{Integer}</PurchaseOrderChangeRequestItemId>
3
     <CreatedAt
CreatedAt

Date and time of creation

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

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

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

The delivery date as requested by the buyer/purchaser

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

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

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

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

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

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

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

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

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

Quantity of the purchase order change requeste item

>
{Decimal}</Quantity>
11
     <Price>
12
          <Currency
Currency

Three character code following the ISO 4217 standard

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

Final price per unit after deducting all discounts etc.

>
{Decimal}</NetPrice>
14
     </Price>
15
     <MeasurementUnit>
16
          <MeasurementUnitId
MeasurementUnitId

Measurement unit identifier

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

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

>
{String}</Unit>
18
          <MeasurementUnitLink
MeasurementUnitLink

Material unit reference

>
{String}</MeasurementUnitLink>
19
     </MeasurementUnit>
20
     <Product>
21
          <ProductId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

>
{String}</Type>
24
          <Manufacturer>
25
               <ManufacturerId
ManufacturerId

Manufacturer identifier

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

Shortname/code of the manufacturer

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

Manufacturer reference

>
{String}</ManufacturerLink>
28
          </Manufacturer>
29
          <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
30
     </Product>
31
     <ForwardedTo>
32
          <PurchaseOrderResponseItemId
PurchaseOrderResponseItemId

Item-/linenumber of purchase order response

>
{Integer}</PurchaseOrderResponseItemId>
33
          <PurchaseOrderResponse>
34
               <PurchaseOrderResponseId
PurchaseOrderResponseId

Purchase order response identifier

>
{Integer}</PurchaseOrderResponseId>
35
               <PurchaseOrderResponseLink
PurchaseOrderResponseLink

Purchase order response reference

>
{String}</PurchaseOrderResponseLink>
36
          </PurchaseOrderResponse>
37
          <PurchaseOrderResponseItemLink
PurchaseOrderResponseItemLink

Purchase order response item reference

>
{String}</PurchaseOrderResponseItemLink>
38
     </ForwardedTo>
39
</PurchaseOrderChangeRequestItem>
1
{
2
     "purchaseOrderChangeRequestItem": {
3
          "purchaseOrderChangeRequestItemId
PurchaseOrderChangeRequestItemId

Purchase order change request item identifier

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

Date and time of creation

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

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

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

The delivery date as requested by the buyer/purchaser

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

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

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

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

":
"{String}",
9
          "productStructureRevision
ProductStructureRevision

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

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

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

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

Quantity of the purchase order change requeste item

":
"{Decimal}",
12
          "price": {
13
               "currency
Currency

Three character code following the ISO 4217 standard

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

Final price per unit after deducting all discounts etc.

":
"{Decimal}"
15
          },
16
          "measurementUnit": {
17
               "measurementUnitId
MeasurementUnitId

Measurement unit identifier

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

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

":
"{String}",
19
               "measurementUnitLink
MeasurementUnitLink

Material unit reference

":
"{String}"
20
          },
21
          "product": {
22
               "productId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

":
"{String}",
25
               "manufacturer": {
26
                    "manufacturerId
ManufacturerId

Manufacturer identifier

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

Shortname/code of the manufacturer

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

Manufacturer reference

":
"{String}"
29
               },
30
               "productLink
ProductLink

Product reference

":
"{String}"
31
          },
32
          "forwardedTo": {
33
               "purchaseOrderResponseItemId
PurchaseOrderResponseItemId

Item-/linenumber of purchase order response

":
"{Integer}",
34
               "purchaseOrderResponse": {
35
                    "purchaseOrderResponseId
PurchaseOrderResponseId

Purchase order response identifier

":
"{Integer}",
36
                    "purchaseOrderResponseLink
PurchaseOrderResponseLink

Purchase order response reference

":
"{String}"
37
               },
38
               "purchaseOrderResponseItemLink
PurchaseOrderResponseItemLink

Purchase order response item reference

":
"{String}"
39
          }
40
     }
41
}

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 101013 HTTP 404 Sub-module not found
Error 102018 HTTP 403 You need permission {0}. Duties with this permission: {1}
Error 101420 HTTP 404 Setting definition not found
Error 103825 HTTP 400 Requested change line for cancellation has to be for the whole quantity of the current item