API

Procurement APIs

GET procurement/change-requests/{purchaseOrderChangeRequestId}/changes/{changeId}

Details of provided change in purchase order change request

HTTP method GET
URI https://api.rambase.net/procurement/change-requests/{purchaseOrderChangeRequestId}/changes/{changeId}
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 200
API resource identifier 3089, version 18

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
1

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.

$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]
$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
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$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.
$select String, optional Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information.

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. Fields colored in grey is expandable fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<Change>
2
     <ChangeId
ChangeId

Change identifier

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

Status of the change

Possible domain values can be found here

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

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

>
{String}</Note>
5
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
6
     <SuppliersReferenceNumber
SuppliersReferenceNumber

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

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

True if this change has one or more items. The items describes the requested changes to current item, and if no items has been added, the change will not be sent to supplier.

>
{Boolean}</HasItems>
8
     <CurrentQuantity
CurrentQuantity

The remaining quantity of the purchase order or purchase order response item at the time this change request was created.

>
{Decimal}</CurrentQuantity>
9
     <CancelledQuantity
CancelledQuantity

The total cancelled quantity in this purchase order change request. Cannot be higher than the current quantity.

>
{Decimal}</CancelledQuantity>
10
     <CurrentItem>
11
          <ItemId
ItemId

Item-number of the object

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

Type of item

>
{String}</ItemType>
13
          <LineNumber
LineNumber

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

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

The delivery date as requested by the buyer/purchaser

>
{Date}</RequestedDeliveryDate>
15
          <ConfirmedDeliveryDate
ConfirmedDeliveryDate

Confirmed delivery date

>
{Date}</ConfirmedDeliveryDate>
16
          <SuppliersReferenceNumber
SuppliersReferenceNumber

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

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

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

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

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

>
{String}</EquivalentProductName>
19
          <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>
20
          <ProductDescription
ProductDescription

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

>
{String}</ProductDescription>
21
          <Price>
22
               <Currency
Currency

Three character code following the ISO 4217 standard

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

Final price per unit after deducting all discounts etc.

>
{Decimal}</NetPrice>
24
          </Price>
25
          <Product>
26
               <ProductId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

>
{String}</Type>
29
               <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
30
          </Product>
31
          <Object>
32
               <ObjectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

>
{String}</ObjectLink>
35
          </Object>
36
          <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

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

API reference to the item

>
{String}</ItemLink>
38
     </CurrentItem>
39
     <InitialPurchaseOrderItem>
40
          <PurchaseOrderItemId
PurchaseOrderItemId

Item-/line-number of the purchase order

>
{Integer}</PurchaseOrderItemId>
41
          <PurchaseOrder>
42
               <PurchaseOrderId
PurchaseOrderId

Purchase order identifier

>
{Integer}</PurchaseOrderId>
43
               <PurchaseOrderLink
PurchaseOrderLink

Purchase order reference

>
{String}</PurchaseOrderLink>
44
          </PurchaseOrder>
45
          <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

>
{String}</RamBaseKey>
46
          <PurchaseOrderItemLink
PurchaseOrderItemLink

Purchase order item reference

>
{String}</PurchaseOrderItemLink>
47
     </InitialPurchaseOrderItem>
48
     <ForwardedTo>
49
          <PurchaseOrderResponseId
PurchaseOrderResponseId

Purchase order response identifier

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

Purchase order response reference

>
{String}</PurchaseOrderResponseLink>
51
     </ForwardedTo>
52
</Change>
1
{
2
     "change": {
3
          "changeId
ChangeId

Change identifier

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

Status of the change

Possible domain values can be found here

":
"{Integer}",
5
          "note
Note

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

":
"{String}",
6
          "createdAt
CreatedAt

Date and time of creation

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

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

":
"{String}",
8
          "hasItems
HasItems

True if this change has one or more items. The items describes the requested changes to current item, and if no items has been added, the change will not be sent to supplier.

":
"{Boolean}",
9
          "currentQuantity
CurrentQuantity

The remaining quantity of the purchase order or purchase order response item at the time this change request was created.

":
"{Decimal}",
10
          "cancelledQuantity
CancelledQuantity

The total cancelled quantity in this purchase order change request. Cannot be higher than the current quantity.

":
"{Decimal}",
11
          "currentItem": {
12
               "itemId
ItemId

Item-number of the object

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

Type of item

":
"{String}",
14
               "lineNumber
LineNumber

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

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

The delivery date as requested by the buyer/purchaser

":
"{Date}",
16
               "confirmedDeliveryDate
ConfirmedDeliveryDate

Confirmed delivery date

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

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

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

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

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

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

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

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

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

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

":
"{String}",
22
               "price": {
23
                    "currency
Currency

Three character code following the ISO 4217 standard

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

Final price per unit after deducting all discounts etc.

":
"{Decimal}"
25
               },
26
               "product": {
27
                    "productId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

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

Product reference

":
"{String}"
31
               },
32
               "object": {
33
                    "objectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

":
"{String}"
36
               },
37
               "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

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

API reference to the item

":
"{String}"
39
          },
40
          "initialPurchaseOrderItem": {
41
               "purchaseOrderItemId
PurchaseOrderItemId

Item-/line-number of the purchase order

":
"{Integer}",
42
               "purchaseOrder": {
43
                    "purchaseOrderId
PurchaseOrderId

Purchase order identifier

":
"{Integer}",
44
                    "purchaseOrderLink
PurchaseOrderLink

Purchase order reference

":
"{String}"
45
               },
46
               "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

":
"{String}",
47
               "purchaseOrderItemLink
PurchaseOrderItemLink

Purchase order item reference

":
"{String}"
48
          },
49
          "forwardedTo": {
50
               "purchaseOrderResponseId
PurchaseOrderResponseId

Purchase order response identifier

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

Purchase order response reference

":
"{String}"
52
          }
53
     }
54
}

Possible error codes the response might return:

Error 102738 HTTP 404 Price list not found
Error 100055 HTTP 403 You have only admittance to your own objects
Error 101233 HTTP 404 Purchase order response item not found.