API

Procurement APIs

GET sales/forecasts/{salesForecastId}

Sales forecast details for provided identifier

HTTP method GET
URI https://api.rambase.net/sales/forecasts/{salesForecastId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {salesForecastId} Sales forecast identifier
Integer, minimum 100000
Successful HTTP status code 200
API resource identifier 592, version 17

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.
$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
<SalesForecast>
2
     <SalesForecastId
SalesForecastId

Sales forecast identifier

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

Status of the sales forecast

Possible domain values can be found here

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

Date and time of creation

>
{Datetime}</CreatedAt>
5
     <CustomersReference
CustomersReference

Customers reference. Typically a person.

>
{String}</CustomersReference>
6
     <CustomersReferenceNumber
CustomersReferenceNumber

Customers reference number. E.g. the internal sales order id the customer use in their own system.

>
{String}</CustomersReferenceNumber>
7
     <RequestedDeliveryDate
RequestedDeliveryDate

The delivery date as requested by the customer.

>
{Date}</RequestedDeliveryDate>
8
     <CustomersProductName
CustomersProductName

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

>
{String}</CustomersProductName>
9
     <Source
Source

Source of the sales forecast

Possible domain values can be found here

>
{Integer}</Source>
10
     <Quantity
Quantity

Number of units ordered

>
{Decimal}</Quantity>
11
     <ProbabilityPercent
ProbabilityPercent

Probability of receiving a firm sales order

>
{Decimal}</ProbabilityPercent>
12
     <Customer>
13
          <CustomerId
CustomerId

Customer identifier

>
{Integer}</CustomerId>
14
          <Name
Name

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

>
{String}</Name>
15
          <CustomerLink
CustomerLink

Customer reference

>
{String}</CustomerLink>
16
     </Customer>
17
     <Product>
18
          <ProductId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

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

Description of the product

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

Product reference

>
{String}</ProductLink>
23
     </Product>
24
     <Location>
25
          <LocationId
LocationId

Location identifier

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

Name of warehouse location

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

Unique abbreviation/short name of the location

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

Location reference

>
{String}</LocationLink>
29
     </Location>
30
     <SalesOrderItem
SalesOrderItem

Item this item was forwarded to.

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

>
31
          <SalesOrderItemId
SalesOrderItemId

Sales order item identifier

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

>
{Integer}</SalesOrderItemId>
32
          <SalesOrder
SalesOrder

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

>
33
               <SalesOrderId
SalesOrderId

Sales order identifier

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

>
{Integer}</SalesOrderId>
34
               <SalesOrderLink
SalesOrderLink

Sales order reference

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

>
{String}</SalesOrderLink>
35
          </SalesOrder>
36
          <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

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

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

Reference to the sales order item.

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

>
{String}</SalesOrderItemLink>
38
     </SalesOrderItem>
39
</SalesForecast>
1
{
2
     "salesForecast": {
3
          "salesForecastId
SalesForecastId

Sales forecast identifier

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

Status of the sales forecast

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
6
          "customersReference
CustomersReference

Customers reference. Typically a person.

":
"{String}",
7
          "customersReferenceNumber
CustomersReferenceNumber

Customers reference number. E.g. the internal sales order id the customer use in their own system.

":
"{String}",
8
          "requestedDeliveryDate
RequestedDeliveryDate

The delivery date as requested by the customer.

":
"{Date}",
9
          "customersProductName
CustomersProductName

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

":
"{String}",
10
          "source
Source

Source of the sales forecast

Possible domain values can be found here

":
"{Integer}",
11
          "quantity
Quantity

Number of units ordered

":
"{Decimal}",
12
          "probabilityPercent
ProbabilityPercent

Probability of receiving a firm sales order

":
"{Decimal}",
13
          "customer": {
14
               "customerId
CustomerId

Customer identifier

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

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

":
"{String}",
16
               "customerLink
CustomerLink

Customer reference

":
"{String}"
17
          },
18
          "product": {
19
               "productId
ProductId

Product identifier

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

Name of the product

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

Type of product

Possible domain values can be found here

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

Description of the product

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

Product reference

":
"{String}"
24
          },
25
          "location": {
26
               "locationId
LocationId

Location identifier

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

Name of warehouse location

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

Unique abbreviation/short name of the location

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

Location reference

":
"{String}"
30
          },
31
          "salesOrderItem
SalesOrderItem

Item this item was forwarded to.

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

":
{
32
               "salesOrderItemId
SalesOrderItemId

Sales order item identifier

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

":
"{Integer}",
33
               "salesOrder
SalesOrder

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

":
{
34
                    "salesOrderId
SalesOrderId

Sales order identifier

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

":
"{Integer}",
35
                    "salesOrderLink
SalesOrderLink

Sales order reference

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

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

Internal RamBase identifier of the object/item

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

":
"{String}",
38
               "salesOrderItemLink
SalesOrderItemLink

Reference to the sales order item.

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

":
"{String}"
39
          }
40
     }
41
}

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