API

Production APIs

GET production/work-orders/{productionWorkOrderId}/stock-material-allocations/produced-materials

Gets tree of dependent production work orders for the given one

HTTP method GET
URI https://api.rambase.net/production/work-orders/{productionWorkOrderId}/stock-material-allocations/produced-materials
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {productionWorkOrderId} Production work order identifier
Integer, minimum 100000
Maximum page size ($top) 200
Custom fields Custom fields supported
Successful HTTP status code 200
API resource identifier 5842, version 11

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
$expand String, optional Use to include output fields that are not returned by default in the response. Accepts a comma-separated list of expandable field names. See the Expand and Select 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.
$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.
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$showCustomFields Boolean, optional Set to "true" to include custom fields. Default value is false.
$top String, optional Specifies number of rows to return in each page. Maximum limit is specific for each API resource. Default value is 10.
$pageKey String, optional Use to navigate to first, previous, next or last page in list. Add $expand=PagingDetails to add the different keys to the response.
$filter String, optional Use to filter the result list, see the Filtering and sorting page for more information.
$orderby String, optional Use to order the result list, see the Filtering and sorting page for more information.
$inlinecount String, optional Set to "allpages" to include total number of rows in the response. Possible values are: "allpages", "none"

Read more about filters and sorting on how to use filter parameters and named filters.

Status Integer Status of production work order.

Read more about filters and sorting on how to use sortable parameters

Status Integer Status of production work order

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
<ProducedMaterials>
2
     <ProducedMaterial>
3
          <Level
Level

Tree level of the current node

>
{Integer}</Level>
4
          <ProductionWorkOrder>
5
               <ProductionWorkOrderId
ProductionWorkOrderId

Production work order identifier

>
{Integer}</ProductionWorkOrderId>
6
               <Status
Status

Status of production work order

Possible domain values can be found here

>
{Integer}</Status>
7
               <LatestStartAt
LatestStartAt

Latest possibile date of starting production

>
{Datetime}</LatestStartAt>
8
               <ScheduledStartDate
ScheduledStartDate

Scheduled/planned date of production start

>
{Date}</ScheduledStartDate>
9
               <ScheduledCompletionDate
ScheduledCompletionDate

Scheduled/planned date of production completion

>
{Date}</ScheduledCompletionDate>
10
               <ConfirmedCompletionDate
ConfirmedCompletionDate

The confirmed date of completion for the production work order

>
{Date}</ConfirmedCompletionDate>
11
               <ManufacturedProductName
ManufacturedProductName

Name of production work order item

>
{String}</ManufacturedProductName>
12
               <RemainingQuantity
RemainingQuantity

Remaining number of units to produce

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

Product revision used for this production work order

>
{String}</ProductRevision>
14
               <HasMaterialShortage
HasMaterialShortage

True if production has supply shortage (negative metarial trend)

>
{Boolean}</HasMaterialShortage>
15
               <MaterialDelayedDays
MaterialDelayedDays

Number of days that material for the PWO is delayed.

>
{Integer}</MaterialDelayedDays>
16
               <CostOverrun
CostOverrun

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.CostOverrun in your request URI to get this field

>
17
                    <HasCostOverrun
HasCostOverrun

Flag to indicate if product structure's operation has got cost deviation

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.CostOverrun in your request URI to get this field

>
{Boolean}</HasCostOverrun>
18
               </CostOverrun>
19
               <TimeOverrun
TimeOverrun

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.TimeOverrun in your request URI to get this field

>
20
                    <HasTimeOverrun
HasTimeOverrun

Flag to indicate if product structure's operation has got worklog deviation

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.TimeOverrun in your request URI to get this field

>
{Boolean}</HasTimeOverrun>
21
               </TimeOverrun>
22
               <Product>
23
                    <ProductId
ProductId

Product identifier

>
{Integer}</ProductId>
24
                    <Description
Description

Description of the product

>
{String}</Description>
25
                    <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
26
               </Product>
27
               <ProductionWorkOrderLink
ProductionWorkOrderLink

Production work order reference

>
{String}</ProductionWorkOrderLink>
28
          </ProductionWorkOrder>
29
          <GoodsReceptionItems>
30
               <GoodsReceptionItem>
31
                    <GoodsReceptionItemId
GoodsReceptionItemId

Item-/line-number of the goods reception

>
{Integer}</GoodsReceptionItemId>
32
                    <Status
Status

Status code of the the goods reception item

Possible domain values can be found here

>
{Integer}</Status>
33
                    <ProductStructureRevision
ProductStructureRevision

The requested revision of the product structure

>
{String}</ProductStructureRevision>
34
                    <RemainingQuantity
RemainingQuantity

Remaining number of units to be forwarded

>
{Decimal}</RemainingQuantity>
35
                    <Product>
36
                         <ProductId
ProductId

Product identifier

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

Name of the product

>
{String}</Name>
38
                         <Description
Description

Description of the product

>
{String}</Description>
39
                         <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
40
                    </Product>
41
                    <GoodsReception>
42
                         <GoodsReceptionId
GoodsReceptionId

Goods reception identifier

>
{Integer}</GoodsReceptionId>
43
                         <GoodsReceptionLink
GoodsReceptionLink

Goods reception reference

>
{String}</GoodsReceptionLink>
44
                    </GoodsReception>
45
                    <GoodsReceptionItemLink
GoodsReceptionItemLink

Goods reception item reference

>
{String}</GoodsReceptionItemLink>
46
               </GoodsReceptionItem>
47
          </GoodsReceptionItems>
48
          <ParentProductionWorkOrder>
49
               <ProductionWorkOrderId
ProductionWorkOrderId

Production work order identifier

>
{Integer}</ProductionWorkOrderId>
50
          </ParentProductionWorkOrder>
51
     </ProducedMaterial>
52
     <Paging
Paging

Detailed paging information for this list.

>
53
          <PageSize
PageSize

Number of elements in the list, as defined in $top. Default is 10.

>
{Integer}</PageSize>
54
          <Position
Position

Position of the first element in the list

>
{Integer}</Position>
55
          <Page
Page

Page index

>
{Integer}</Page>
56
          <FirstPageKey
FirstPageKey

Page key to use for navigating to the first page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</FirstPageKey>
57
          <FirstPage
FirstPage

Link to the first page in the list. $pageKey is set to FirstPageKey.

>
{String}</FirstPage>
58
          <PreviousPageKey
PreviousPageKey

Page key to use for navigating to previous page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</PreviousPageKey>
59
          <PreviousPage
PreviousPage

Link to the previous page in the list. $pageKey is set to PreviousPageKey.

>
{String}</PreviousPage>
60
          <NextPageKey
NextPageKey

Page key to use for navigating to next page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</NextPageKey>
61
          <NextPage
NextPage

Link to the next page in the list. $pageKey is set to NextPageKey.

>
{String}</NextPage>
62
          <LastPageKey
LastPageKey

Page key to use for navigating to last page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</LastPageKey>
63
          <LastPage
LastPage

Link to the last page in the list. $pageKey is set to LastPageKey.

>
{String}</LastPage>
64
          <Size
Size

Total number of records in the list. Use $inlinecount=allpages in the request uri to include this

>
{Integer}</Size>
65
     </Paging>
66
</ProducedMaterials>
1
{
2
     "producedMaterials": [
3
          {
4
               "level
Level

Tree level of the current node

":
"{Integer}",
5
               "productionWorkOrder": {
6
                    "productionWorkOrderId
ProductionWorkOrderId

Production work order identifier

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

Status of production work order

Possible domain values can be found here

":
"{Integer}",
8
                    "latestStartAt
LatestStartAt

Latest possibile date of starting production

":
"{Datetime}",
9
                    "scheduledStartDate
ScheduledStartDate

Scheduled/planned date of production start

":
"{Date}",
10
                    "scheduledCompletionDate
ScheduledCompletionDate

Scheduled/planned date of production completion

":
"{Date}",
11
                    "confirmedCompletionDate
ConfirmedCompletionDate

The confirmed date of completion for the production work order

":
"{Date}",
12
                    "manufacturedProductName
ManufacturedProductName

Name of production work order item

":
"{String}",
13
                    "remainingQuantity
RemainingQuantity

Remaining number of units to produce

":
"{Decimal}",
14
                    "productRevision
ProductRevision

Product revision used for this production work order

":
"{String}",
15
                    "hasMaterialShortage
HasMaterialShortage

True if production has supply shortage (negative metarial trend)

":
"{Boolean}",
16
                    "materialDelayedDays
MaterialDelayedDays

Number of days that material for the PWO is delayed.

":
"{Integer}",
17
                    "costOverrun
CostOverrun

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.CostOverrun in your request URI to get this field

":
{
18
                         "hasCostOverrun
HasCostOverrun

Flag to indicate if product structure's operation has got cost deviation

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.CostOverrun in your request URI to get this field

":
"{Boolean}"
19
                    },
20
                    "timeOverrun
TimeOverrun

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.TimeOverrun in your request URI to get this field

":
{
21
                         "hasTimeOverrun
HasTimeOverrun

Flag to indicate if product structure's operation has got worklog deviation

This field is greyed out because it is an expandable field. You have to add $expand=ProducedMaterial.ProductionWorkOrder.TimeOverrun in your request URI to get this field

":
"{Boolean}"
22
                    },
23
                    "product": {
24
                         "productId
ProductId

Product identifier

":
"{Integer}",
25
                         "description
Description

Description of the product

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

Product reference

":
"{String}"
27
                    },
28
                    "productionWorkOrderLink
ProductionWorkOrderLink

Production work order reference

":
"{String}"
29
               },
30
               "goodsReceptionItems": [
31
                    {
32
                         "goodsReceptionItemId
GoodsReceptionItemId

Item-/line-number of the goods reception

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

Status code of the the goods reception item

Possible domain values can be found here

":
"{Integer}",
34
                         "productStructureRevision
ProductStructureRevision

The requested revision of the product structure

":
"{String}",
35
                         "remainingQuantity
RemainingQuantity

Remaining number of units to be forwarded

":
"{Decimal}",
36
                         "product": {
37
                              "productId
ProductId

Product identifier

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

Name of the product

":
"{String}",
39
                              "description
Description

Description of the product

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

Product reference

":
"{String}"
41
                         },
42
                         "goodsReception": {
43
                              "goodsReceptionId
GoodsReceptionId

Goods reception identifier

":
"{Integer}",
44
                              "goodsReceptionLink
GoodsReceptionLink

Goods reception reference

":
"{String}"
45
                         },
46
                         "goodsReceptionItemLink
GoodsReceptionItemLink

Goods reception item reference

":
"{String}"
47
                    }
48
               ],
49
               "parentProductionWorkOrder": {
50
                    "productionWorkOrderId
ProductionWorkOrderId

Production work order identifier

":
"{Integer}"
51
               }
52
          }
53
     ],
54
     "paging
Paging

Detailed paging information for this list.

":
{
55
          "pageSize
PageSize

Number of elements in the list, as defined in $top. Default is 10.

":
"{Integer}",
56
          "position
Position

Position of the first element in the list

":
"{Integer}",
57
          "page
Page

Page index

":
"{Integer}",
58
          "firstPageKey
FirstPageKey

Page key to use for navigating to the first page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
59
          "firstPage
FirstPage

Link to the first page in the list. $pageKey is set to FirstPageKey.

":
"{String}",
60
          "previousPageKey
PreviousPageKey

Page key to use for navigating to previous page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
61
          "previousPage
PreviousPage

Link to the previous page in the list. $pageKey is set to PreviousPageKey.

":
"{String}",
62
          "nextPageKey
NextPageKey

Page key to use for navigating to next page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
63
          "nextPage
NextPage

Link to the next page in the list. $pageKey is set to NextPageKey.

":
"{String}",
64
          "lastPageKey
LastPageKey

Page key to use for navigating to last page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
65
          "lastPage
LastPage

Link to the last page in the list. $pageKey is set to LastPageKey.

":
"{String}",
66
          "size
Size

Total number of records in the list. Use $inlinecount=allpages in the request uri to include this

":
"{Integer}"
67
     }
68
}

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 101746 HTTP 404 Product structure not found. Id: {0}
Error 101420 HTTP 404 Setting definition not found