API

Procurement APIs

GET procurement/order-suggestions

List of purchase suggestions

HTTP method GET
URI https://api.rambase.net/procurement/order-suggestions
Supported formats Xml, Html, Json (ex. $format=json)
Maximum page size ($top) 80
Custom fields Custom fields supported
Successful HTTP status code 200
API resource identifier 3386, version 28

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.

Active() Named filter Active order suggestions (status lt 9)
MissingPurchaseInfo() Named filter Purchase order suggestions without supplier or purchase price
Currency String Three character code following the ISO 4217 standard.
CustomField1 String Custom field for grouping, sorting, categorizing and other purposes.
CustomField2 String Custom field for grouping, sorting, categorizing and other purposes.
DeadlineDate Date Deadline for purchasing product from supplier. Calculated by subtracting leadtime from requested delivery date. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
GrossPrice Decimal Gross price for the purchase order suggestion.
IsManufacturedExternally Boolean True if product structure is manufactured externally, and not by ourself.
LeadTime Integer Lead time for product and suggested supplier.
LocationId String Location identifier.
ManufacturerProductName String Manufacturers name of the product. Also known as Manufacturer Part Number (MPN).
ManufacturerShortName String Shortname/code of the manufacturer.
ManufacturingAreaId Integer Manufacturing area identifier.
PlanningCategory String Planning category.
ProductDescription String Description of the item. If not specified, the description is by default copied from the product.
ProductId Integer Product identifier.
ProductName String Name of the product.
ProductType String Type of product.
PurchaseGroupId Integer Purchase group identifier.
PurchaseOrderSuggestionId Integer Purchase order suggestion identifier.
Quantity Decimal Quantity suggested to purchase.
RequestedDeliveryDate Date Requested delivery date. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
RequirementGrossQuantity Decimal The gross demand for supplier, product and requested delivery date..
RequirementNetQuantity Decimal Net demand quantity for this product, supplier and requested delivery date. The net quantity is the current demand, and will be the base for creating the quantity of the purchase order suggestion..
RequirementSubtractedQuantity Decimal Quantity from open purchase orders and purchase order responses subtracted from the gross demand quantity to get the net demand quantity..
SOPProcessId Integer S&OP (sales and operation planning) process identifier.
Status Integer Status of purchase order suggestion.
SupplierId Integer RamBase supplier identifier.
SuppliersProductName String Suppliers product name.

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

Currency String Three character code following the ISO 4217 standard
CustomField1 String Custom field for grouping, sorting, categorizing and other purposes.
CustomField2 String Custom field for grouping, sorting, categorizing and other purposes.
DeadlineDate Date Deadline for purchasing product from supplier. Calculated by subtracting leadtime from requested delivery date
GrossPrice Decimal Gross price for the purchase order suggestion
IsManufacturedExternally Boolean True if product structure is manufactured externally, and not by ourself
LeadTime Integer Lead time for product and suggested supplier
LocationId String Location identifier
ManufacturerProductName String Manufacturers name of the product. Also known as Manufacturer Part Number (MPN).
ManufacturerShortName String Shortname/code of the manufacturer
ManufacturingAreaId Integer Manufacturing area identifier
PlanningCategory String Planning category
ProductDescription String Description of the item. If not specified, the description is by default copied from the product.
ProductId Integer Product identifier
ProductName String Name of the product
ProductType String Type of product
PurchaseGroupId Integer Purchase group identifier
PurchaseOrderSuggestionId Integer Purchase order suggestion identifier
Quantity Decimal Quantity suggested to purchase
RequestedDeliveryDate Date Requested delivery date
RequirementGrossQuantity Decimal The gross demand for supplier, product and requested delivery date.
RequirementNetQuantity Decimal Net demand quantity for this product, supplier and requested delivery date. The net quantity is the current demand, and will be the base for creating the quantity of the purchase order suggestion.
RequirementSubtractedQuantity Decimal Quantity from open purchase orders and purchase order responses subtracted from the gross demand quantity to get the net demand quantity.
SOPProcessId Integer S&OP (sales and operation planning) process identifier
Status Integer Status of purchase order suggestion
SupplierId Integer RamBase supplier identifier
SuppliersProductName String Suppliers product name

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
<PurchaseOrderSuggestions>
2
     <PurchaseOrderSuggestion>
3
          <PurchaseOrderSuggestionId
PurchaseOrderSuggestionId

Purchase order suggestion identifier

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

Status of purchase order suggestion

Possible domain values can be found here

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

Requested delivery date

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

Deadline for purchasing product from supplier. Calculated by subtracting leadtime from requested delivery date

>
{Date}</DeadlineDate>
7
          <LeadTime
LeadTime

Lead time for product and suggested supplier

>
{Integer}</LeadTime>
8
          <SuppliersProductName
SuppliersProductName

Suppliers product name

>
{String}</SuppliersProductName>
9
          <Quantity
Quantity

Quantity suggested to purchase

>
{Decimal}</Quantity>
10
          <Requirement>
11
               <GrossQuantity
GrossQuantity

The gross demand for supplier, product and requested delivery date.

>
{Decimal}</GrossQuantity>
12
               <SubtractedQuantity
SubtractedQuantity

Quantity from open purchase orders and purchase order responses subtracted from the gross demand quantity to get the net demand quantity.

>
{Decimal}</SubtractedQuantity>
13
               <NetQuantity
NetQuantity

Net demand quantity for this product, supplier and requested delivery date. The net quantity is the current demand, and will be the base for creating the quantity of the purchase order suggestion.

>
{Decimal}</NetQuantity>
14
          </Requirement>
15
          <Supplier>
16
               <SupplierId
SupplierId

RamBase supplier identifier

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

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

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

Supplier reference

>
{String}</SupplierLink>
19
          </Supplier>
20
          <SOPProcess>
21
               <SOPProcessId
SOPProcessId

S&OP (sales and operation planning) process identifier

>
{Integer}</SOPProcessId>
22
               <SOPProcessLink
SOPProcessLink

S&OP (salse and operation planning) process reference

>
{String}</SOPProcessLink>
23
          </SOPProcess>
24
          <Product>
25
               <ProductId
ProductId

Product identifier

>
{Integer}</ProductId>
26
               <Type
Type

Type of product

Possible domain values can be found here

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

Name of the product

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

Description of the product

>
{String}</Description>
29
               <Procurement
Procurement

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

>
30
                    <BlockedForPurchase
BlockedForPurchase

If a product is blocked for purchase, no purchase quotes or purchase orders with that product can be registered.

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

>
{Boolean}</BlockedForPurchase>
31
               </Procurement>
32
               <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
33
          </Product>
34
          <ProductLocation>
35
               <Location>
36
                    <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
37
                    <ShortName
ShortName

Unique abbreviation/short name of the location

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

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

Name of warehouse location

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

>
{String}</Name>
39
                    <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
40
               </Location>
41
               <Procurement>
42
                    <ReorderQuantity
ReorderQuantity

Preferred quantity to use when reordering to this location. Is also used as order quantity when stock gets below reorder point.

>
{Decimal}</ReorderQuantity>
43
               </Procurement>
44
          </ProductLocation>
45
          <Manufacturer>
46
               <ManufacturerId
ManufacturerId

Manufacturer identifier

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

Shortname/code of the manufacturer

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

Manufacturer reference

>
{String}</ManufacturerLink>
49
          </Manufacturer>
50
          <ManufacturersProduct
ManufacturersProduct

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

>
51
               <ManufacturersProductId
ManufacturersProductId

Manufacturer product identifier

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

>
{Integer}</ManufacturersProductId>
52
               <Name
Name

Manufacturers name of the product. Also known as Manufacturer Part Number (MPN).

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

>
{String}</Name>
53
               <ManufacturersProductLink
ManufacturersProductLink

Manufacturers product reference

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

>
{String}</ManufacturersProductLink>
54
          </ManufacturersProduct>
55
          <Price>
56
               <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

>
{String}</Currency>
57
               <GrossPrice
GrossPrice

Gross price for the purchase order suggestion

>
{Decimal}</GrossPrice>
58
          </Price>
59
          <Totals>
60
               <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
61
               <GrossAmount
GrossAmount

Gross amount for the purchase order suggestion

>
{Decimal}</GrossAmount>
62
          </Totals>
63
          <PurchaseOrderSuggestionLink
PurchaseOrderSuggestionLink

Purchase order suggestion reference

>
{String}</PurchaseOrderSuggestionLink>
64
     </PurchaseOrderSuggestion>
65
     <Paging
Paging

Detailed paging information for this list.

>
66
          <PageSize
PageSize

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

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

Position of the first element in the list

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

Page index

>
{Integer}</Page>
69
          <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>
70
          <FirstPage
FirstPage

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

>
{String}</FirstPage>
71
          <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>
72
          <PreviousPage
PreviousPage

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

>
{String}</PreviousPage>
73
          <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>
74
          <NextPage
NextPage

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

>
{String}</NextPage>
75
          <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>
76
          <LastPage
LastPage

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

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

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

>
{Integer}</Size>
78
     </Paging>
79
</PurchaseOrderSuggestions>
1
{
2
     "purchaseOrderSuggestions": [
3
          {
4
               "purchaseOrderSuggestionId
PurchaseOrderSuggestionId

Purchase order suggestion identifier

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

Status of purchase order suggestion

Possible domain values can be found here

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

Requested delivery date

":
"{Date}",
7
               "deadlineDate
DeadlineDate

Deadline for purchasing product from supplier. Calculated by subtracting leadtime from requested delivery date

":
"{Date}",
8
               "leadTime
LeadTime

Lead time for product and suggested supplier

":
"{Integer}",
9
               "suppliersProductName
SuppliersProductName

Suppliers product name

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

Quantity suggested to purchase

":
"{Decimal}",
11
               "requirement": {
12
                    "grossQuantity
GrossQuantity

The gross demand for supplier, product and requested delivery date.

":
"{Decimal}",
13
                    "subtractedQuantity
SubtractedQuantity

Quantity from open purchase orders and purchase order responses subtracted from the gross demand quantity to get the net demand quantity.

":
"{Decimal}",
14
                    "netQuantity
NetQuantity

Net demand quantity for this product, supplier and requested delivery date. The net quantity is the current demand, and will be the base for creating the quantity of the purchase order suggestion.

":
"{Decimal}"
15
               },
16
               "supplier": {
17
                    "supplierId
SupplierId

RamBase supplier identifier

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

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

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

Supplier reference

":
"{String}"
20
               },
21
               "sOPProcess": {
22
                    "sOPProcessId
SOPProcessId

S&OP (sales and operation planning) process identifier

":
"{Integer}",
23
                    "sOPProcessLink
SOPProcessLink

S&OP (salse and operation planning) process reference

":
"{String}"
24
               },
25
               "product": {
26
                    "productId
ProductId

Product identifier

":
"{Integer}",
27
                    "type
Type

Type of product

Possible domain values can be found here

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

Name of the product

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

Description of the product

":
"{String}",
30
                    "procurement
Procurement

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

":
{
31
                         "blockedForPurchase
BlockedForPurchase

If a product is blocked for purchase, no purchase quotes or purchase orders with that product can be registered.

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

":
"{Boolean}"
32
                    },
33
                    "productLink
ProductLink

Product reference

":
"{String}"
34
               },
35
               "productLocation": {
36
                    "location": {
37
                         "locationId
LocationId

Location identifier

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

Unique abbreviation/short name of the location

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

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

Name of warehouse location

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

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

Location reference

":
"{String}"
41
                    },
42
                    "procurement": {
43
                         "reorderQuantity
ReorderQuantity

Preferred quantity to use when reordering to this location. Is also used as order quantity when stock gets below reorder point.

":
"{Decimal}"
44
                    }
45
               },
46
               "manufacturer": {
47
                    "manufacturerId
ManufacturerId

Manufacturer identifier

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

Shortname/code of the manufacturer

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

Manufacturer reference

":
"{String}"
50
               },
51
               "manufacturersProduct
ManufacturersProduct

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

":
{
52
                    "manufacturersProductId
ManufacturersProductId

Manufacturer product identifier

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

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

Manufacturers name of the product. Also known as Manufacturer Part Number (MPN).

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

":
"{String}",
54
                    "manufacturersProductLink
ManufacturersProductLink

Manufacturers product reference

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

":
"{String}"
55
               },
56
               "price": {
57
                    "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
58
                    "grossPrice
GrossPrice

Gross price for the purchase order suggestion

":
"{Decimal}"
59
               },
60
               "totals": {
61
                    "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
62
                    "grossAmount
GrossAmount

Gross amount for the purchase order suggestion

":
"{Decimal}"
63
               },
64
               "purchaseOrderSuggestionLink
PurchaseOrderSuggestionLink

Purchase order suggestion reference

":
"{String}"
65
          }
66
     ],
67
     "paging
Paging

Detailed paging information for this list.

":
{
68
          "pageSize
PageSize

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

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

Position of the first element in the list

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

Page index

":
"{Integer}",
71
          "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}",
72
          "firstPage
FirstPage

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

":
"{String}",
73
          "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}",
74
          "previousPage
PreviousPage

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

":
"{String}",
75
          "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}",
76
          "nextPage
NextPage

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

":
"{String}",
77
          "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}",
78
          "lastPage
LastPage

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

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

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

":
"{Integer}"
80
     }
81
}

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