API

Logistics APIs

GET logistics/stock-entries/{stockEntryId}?costingMethod={costingMethod}

Stock entry details for provided identifier

HTTP method GET
URI https://api.rambase.net/logistics/stock-entries/{stockEntryId}?costingMethod={costingMethod}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {stockEntryId} Stock entry identifier
Integer, minimum 100000
Successful HTTP status code 200
API resource identifier 3633, version 9

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.

costingMethod String, optional Costing method to use for stock valuation. Default is costing method specified in product, but can be set to "SI" to see stock value for specific identification costing method.
$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.
$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.

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
<StockEntry>
2
     <StockEntryId
StockEntryId

Stock entry identifier

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

Date and time of creation

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

Status of stock entry

Possible domain values can be found here

>
{Integer}</Status>
5
     <EntryDate
EntryDate

Date of stock entry

>
{Date}</EntryDate>
6
     <GoodsReceptionItem>
7
          <GoodsReceptionItemId
GoodsReceptionItemId

Item-/line-number of the goods reception

>
{Integer}</GoodsReceptionItemId>
8
          <Product>
9
               <ProductId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

>
{String}</Type>
12
               <Description
Description

Description of the product

>
{String}</Description>
13
               <MeasurementUnit
MeasurementUnit

Measurement unit used for this product, both in sales and purchase.

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

>
14
                    <MeasurementUnitId
MeasurementUnitId

Measurement unit identifier

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

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

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

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

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

Material unit reference

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

>
{String}</MeasurementUnitLink>
17
               </MeasurementUnit>
18
               <Accounting>
19
                    <CostingMethod
CostingMethod

Costing method to use in accounting

Possible domain values can be found here

>
{String}</CostingMethod>
20
               </Accounting>
21
               <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
22
          </Product>
23
          <GoodsReception>
24
               <GoodsReceptionId
GoodsReceptionId

Goods reception identifier

>
{Integer}</GoodsReceptionId>
25
               <Supplier>
26
                    <SupplierId
SupplierId

RamBase supplier identifier

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

Name of supplier (name of company or surname/familyname/lastname of a person)

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

Supplier reference

>
{String}</SupplierLink>
29
               </Supplier>
30
               <Location>
31
                    <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
32
                    <Name
Name

Name of location

>
{String}</Name>
33
                    <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
34
                    <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
35
               </Location>
36
               <GoodsReceptionLink
GoodsReceptionLink

Goods reception reference

>
{String}</GoodsReceptionLink>
37
          </GoodsReception>
38
          <GoodsReceptionItemLink
GoodsReceptionItemLink

Goods reception item reference

>
{String}</GoodsReceptionItemLink>
39
     </GoodsReceptionItem>
40
     <StockValue>
41
          <CostingMethod
CostingMethod

Costing method to use for stock valuation.

Possible domain values can be found here

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

Three character code following the ISO 4217 standard

>
{String}</Currency>
43
          <Cost
Cost

Cost used in stock valuation

>
{Decimal}</Cost>
44
          <Quantity
Quantity

Quantity used for calculating stock value

>
{Decimal}</Quantity>
45
          <Total
Total

Total stock value

>
{Decimal}</Total>
46
     </StockValue>
47
     <StockValueConverted
StockValueConverted

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

>
48
          <Currency
Currency

Three character code following the ISO 4217 standard

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

>
{String}</Currency>
49
          <Cost
Cost

Cost used in stock valuation

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

>
{Decimal}</Cost>
50
          <ExchangeRate
ExchangeRate

The exchange rate used in convertion

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

>
{Decimal}</ExchangeRate>
51
          <Total
Total

Total stock value

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

>
{Decimal}</Total>
52
     </StockValueConverted>
53
     <FreightValue>
54
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
55
          <Freight
Freight

Freight used in stock valuation

>
{Decimal}</Freight>
56
          <Total
Total

Total freight value

>
{Decimal}</Total>
57
     </FreightValue>
58
     <FreightValueConverted
FreightValueConverted

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

>
59
          <Currency
Currency

Three character code following the ISO 4217 standard

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

>
{String}</Currency>
60
          <Cost
Cost

Freight used in stock valuation

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

>
{Decimal}</Cost>
61
          <ExchangeRate
ExchangeRate

The exchange rate used in convertion

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

>
{Decimal}</ExchangeRate>
62
          <Total
Total

Total freight value

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

>
{Decimal}</Total>
63
     </FreightValueConverted>
64
</StockEntry>
1
{
2
     "stockEntry": {
3
          "stockEntryId
StockEntryId

Stock entry identifier

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

Date and time of creation

":
"{Datetime}",
5
          "status
Status

Status of stock entry

Possible domain values can be found here

":
"{Integer}",
6
          "entryDate
EntryDate

Date of stock entry

":
"{Date}",
7
          "goodsReceptionItem": {
8
               "goodsReceptionItemId
GoodsReceptionItemId

Item-/line-number of the goods reception

":
"{Integer}",
9
               "product": {
10
                    "productId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

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

Description of the product

":
"{String}",
14
                    "measurementUnit
MeasurementUnit

Measurement unit used for this product, both in sales and purchase.

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

":
{
15
                         "measurementUnitId
MeasurementUnitId

Measurement unit identifier

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

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

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

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

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

Material unit reference

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

":
"{String}"
18
                    },
19
                    "accounting": {
20
                         "costingMethod
CostingMethod

Costing method to use in accounting

Possible domain values can be found here

":
"{String}"
21
                    },
22
                    "productLink
ProductLink

Product reference

":
"{String}"
23
               },
24
               "goodsReception": {
25
                    "goodsReceptionId
GoodsReceptionId

Goods reception identifier

":
"{Integer}",
26
                    "supplier": {
27
                         "supplierId
SupplierId

RamBase supplier identifier

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

Name of supplier (name of company or surname/familyname/lastname of a person)

":
"{String}",
29
                         "supplierLink
SupplierLink

Supplier reference

":
"{String}"
30
                    },
31
                    "location": {
32
                         "locationId
LocationId

Location identifier

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

Name of location

":
"{String}",
34
                         "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
35
                         "locationLink
LocationLink

Location reference

":
"{String}"
36
                    },
37
                    "goodsReceptionLink
GoodsReceptionLink

Goods reception reference

":
"{String}"
38
               },
39
               "goodsReceptionItemLink
GoodsReceptionItemLink

Goods reception item reference

":
"{String}"
40
          },
41
          "stockValue": {
42
               "costingMethod
CostingMethod

Costing method to use for stock valuation.

Possible domain values can be found here

":
"{String}",
43
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
44
               "cost
Cost

Cost used in stock valuation

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

Quantity used for calculating stock value

":
"{Decimal}",
46
               "total
Total

Total stock value

":
"{Decimal}"
47
          },
48
          "stockValueConverted
StockValueConverted

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

":
{
49
               "currency
Currency

Three character code following the ISO 4217 standard

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

":
"{String}",
50
               "cost
Cost

Cost used in stock valuation

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

":
"{Decimal}",
51
               "exchangeRate
ExchangeRate

The exchange rate used in convertion

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

":
"{Decimal}",
52
               "total
Total

Total stock value

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

":
"{Decimal}"
53
          },
54
          "freightValue": {
55
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
56
               "freight
Freight

Freight used in stock valuation

":
"{Decimal}",
57
               "total
Total

Total freight value

":
"{Decimal}"
58
          },
59
          "freightValueConverted
FreightValueConverted

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

":
{
60
               "currency
Currency

Three character code following the ISO 4217 standard

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

":
"{String}",
61
               "cost
Cost

Freight used in stock valuation

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

":
"{Decimal}",
62
               "exchangeRate
ExchangeRate

The exchange rate used in convertion

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

":
"{Decimal}",
63
               "total
Total

Total freight value

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

":
"{Decimal}"
64
          }
65
     }
66
}

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 101304 HTTP 404 Carrier not found
Error 100053 HTTP 403 You have only admittance to your own suppliers
Error 101420 HTTP 404 Setting definition not found