API

Procurement APIs

GET procurement/orders/{purchaseOrderId}/items/{itemId}/document-transactions/{documentTransactionId}

Get purchase order document transaction details

HTTP method GET
URI https://api.rambase.net/procurement/orders/{purchaseOrderId}/items/{itemId}/document-transactions/{documentTransactionId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {purchaseOrderId} Purchase order identifier
Integer, minimum 100000
- URI parameter {itemId} Item-/line-number of the purchase order
Integer, minimum 1
- URI parameter {documentTransactionId} Document transaction identifier
Integer, minimum 1
Successful HTTP status code 200
API resource identifier 5000, version 13

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
<DocumentTransaction>
2
     <DocumentTransactionId
DocumentTransactionId

Document transaction identifier

>
{Integer}</DocumentTransactionId>
3
     <TriggeredAt
TriggeredAt

Date and time of creation

>
{Datetime}</TriggeredAt>
4
     <TriggeredBy
TriggeredBy

Who triggered the transaction

>
5
          <UserId
UserId

User identifier

>
{Integer}</UserId>
6
          <FirstName
FirstName

First name of the user

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

Name of the user

>
{String}</Name>
8
          <UserLink
UserLink

User reference

>
{String}</UserLink>
9
     </TriggeredBy>
10
     <Change>
11
          <Type
Type

Type of the transaction

Possible domain values can be found here

>
{Integer}</Type>
12
          <Currency
Currency

Three character code following the ISO 4217 standard

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

Purchase order quantity

>
{Decimal}</OrderedQuantity>
14
          <OrderedAmount
OrderedAmount

Purchase order amount

>
{Decimal}</OrderedAmount>
15
          <ConfirmedQuantity
ConfirmedQuantity

Confirmed quantity

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

Confirmed amount

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

Received quantity

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

Received amount

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

Invoiced quantity

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

Invoice amount

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

Canceled quantity

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

Canceled amount

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

Closed without invoice quantity

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

Closed without invoice amount

>
{Decimal}</ClosedWithoutInvoiceAmount>
25
     </Change>
26
     <DocumentReference>
27
          <ObjectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

>
{String}</ObjectLink>
30
          <ItemId
ItemId

Item-number of the object

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

Type of item

>
{String}</ItemType>
32
          <ItemLink
ItemLink

API reference to the item

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

Internal RamBase identifier of the object/item

>
{String}</RamBaseKey>
34
     </DocumentReference>
35
</DocumentTransaction>
1
{
2
     "documentTransaction": {
3
          "documentTransactionId
DocumentTransactionId

Document transaction identifier

":
"{Integer}",
4
          "triggeredAt
TriggeredAt

Date and time of creation

":
"{Datetime}",
5
          "triggeredBy
TriggeredBy

Who triggered the transaction

":
{
6
               "userId
UserId

User identifier

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

First name of the user

":
"{String}",
8
               "name
Name

Name of the user

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

User reference

":
"{String}"
10
          },
11
          "change": {
12
               "type
Type

Type of the transaction

Possible domain values can be found here

":
"{Integer}",
13
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
14
               "orderedQuantity
OrderedQuantity

Purchase order quantity

":
"{Decimal}",
15
               "orderedAmount
OrderedAmount

Purchase order amount

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

Confirmed quantity

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

Confirmed amount

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

Received quantity

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

Received amount

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

Invoiced quantity

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

Invoice amount

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

Canceled quantity

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

Canceled amount

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

Closed without invoice quantity

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

Closed without invoice amount

":
"{Decimal}"
26
          },
27
          "documentReference": {
28
               "objectId
ObjectId

Identifier of the object

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

Type of object

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

API reference to the object

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

Item-number of the object

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

Type of item

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

API reference to the item

":
"{String}",
34
               "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

":
"{String}"
35
          }
36
     }
37
}

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 101814 HTTP 404 Employee not found
Error 106352 HTTP 404 Purchase order assignment movement not found