API

Sales APIs

POST sales/customers/{customerId}/sales-price-calculations

If location and/or currency are not provided, company defaults will be used.

HTTP method POST
URI https://api.rambase.net/sales/customers/{customerId}/sales-price-calculations
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {customerId} Customer identifier
Integer, minimum 10000
Successful HTTP status code 200
API resource identifier 5734, version 3

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
<PriceRequests>
2
     <PriceRequest>
3
          <ProductId
ProductId

Required/mandatory field

Product identifier

Minimum value: 10000

>
{Integer}</ProductId>
4
          <Quantity
Quantity

Quantity of the object.

Minimum value: 0

Default value: 1

This field is optional.

>
{Decimal}</Quantity>
5
          <Currency
Currency

Three character code following the ISO 4217 standard

This field is optional.

>
{String}</Currency>
6
          <LocationId
LocationId

Location identifier

Minimum value: 10000

This field is optional.

>
{Integer}</LocationId>
7
     </PriceRequest>
8
</PriceRequests>
1
{
2
     "priceRequests": [
3
          {
4
               "productId
ProductId

Required/mandatory field

Product identifier

Minimum value: 10000

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

Quantity of the object.

Minimum value: 0

Default value: 1

This field is optional.

":
"{Decimal}",
6
               "currency
Currency

Three character code following the ISO 4217 standard

This field is optional.

":
"{String}",
7
               "locationId
LocationId

Location identifier

Minimum value: 10000

This field is optional.

":
"{Integer}"
8
          }
9
     ]
10
}

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.

$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
$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.
$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]

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.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<PriceCalculations>
2
     <PriceCalculation>
3
          <Product>
4
               <ProductId
ProductId

Product identifier

>
{Integer}</ProductId>
5
               <Sales>
6
                    <StandardLeadTime
StandardLeadTime

The standard lead time, in number of days, from customer places order to delivery.

>
{Integer}</StandardLeadTime>
7
               </Sales>
8
               <Stock>
9
                    <StockQuantity
StockQuantity

Quantity on hand. The total number of units that are physically located at all locations at the current time. This includes items already assigned to fulfilling production needs or sales orders. So, this number may differ from the available quantity.

>
{Decimal}</StockQuantity>
10
                    <AvailableStockQuantity
AvailableStockQuantity

Quantity on hand which is not assigned. The total number of the product that are physically located in all warehouse locations and are currently available for new orders or fulfilling production needs

>
{Decimal}</AvailableStockQuantity>
11
               </Stock>
12
               <ProductLink
ProductLink

Product reference

>
{String}</ProductLink>
13
          </Product>
14
          <LowestPrice>
15
               <Currency
Currency

Three character code following the ISO 4217 standard

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

Represents the price per unit before any discounting is applied.

>
{Decimal}</GrossPrice>
17
               <Discount
Discount

Discount price

>
{Decimal}</Discount>
18
               <NetPrice
NetPrice

Final price per unit after deducting all discounts etc.

>
{Decimal}</NetPrice>
19
               <BasedOn
BasedOn

Specifies what the lowest price was based on. Could be QUOTE, STANDARD or IPA.

Possible domain values can be found here

>
{String}</BasedOn>
20
          </LowestPrice>
21
          <SuggestedPrice
SuggestedPrice

The suggested price for the product.

>
22
               <Currency
Currency

Three character code following the ISO 4217 standard

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

Represents the price per unit before any discounting is applied.

>
{Decimal}</GrossPrice>
24
               <Discount
Discount

Discount price

>
{Decimal}</Discount>
25
               <NetPrice
NetPrice

Final price per unit after deducting all discounts etc.

>
{Decimal}</NetPrice>
26
               <BasedOn
BasedOn

Specifies what the lowest price was based on. Could be QUOTE, STANDARD or IPA.

Possible domain values can be found here

>
{String}</BasedOn>
27
          </SuggestedPrice>
28
          <ProductLocation>
29
               <Location>
30
                    <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
31
                    <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
32
               </Location>
33
               <StockQuantity
StockQuantity

Quantity on hand. The total number of the product that are physically located in this location at the current time. This includes items that are already allocated to fulfilling production needs or sales orders. This number may differ from the available quantity.

>
{Decimal}</StockQuantity>
34
               <AvailableStockQuantity
AvailableStockQuantity

Quantity on hand which is not allocated. The total number of the product that are physically located in this location and are currently available for use in filling a new order or for purposes such as production or distribution.

>
{Decimal}</AvailableStockQuantity>
35
          </ProductLocation>
36
     </PriceCalculation>
37
</PriceCalculations>
1
{
2
     "priceCalculations": [
3
          {
4
               "product": {
5
                    "productId
ProductId

Product identifier

":
"{Integer}",
6
                    "sales": {
7
                         "standardLeadTime
StandardLeadTime

The standard lead time, in number of days, from customer places order to delivery.

":
"{Integer}"
8
                    },
9
                    "stock": {
10
                         "stockQuantity
StockQuantity

Quantity on hand. The total number of units that are physically located at all locations at the current time. This includes items already assigned to fulfilling production needs or sales orders. So, this number may differ from the available quantity.

":
"{Decimal}",
11
                         "availableStockQuantity
AvailableStockQuantity

Quantity on hand which is not assigned. The total number of the product that are physically located in all warehouse locations and are currently available for new orders or fulfilling production needs

":
"{Decimal}"
12
                    },
13
                    "productLink
ProductLink

Product reference

":
"{String}"
14
               },
15
               "lowestPrice": {
16
                    "currency
Currency

Three character code following the ISO 4217 standard

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

Represents the price per unit before any discounting is applied.

":
"{Decimal}",
18
                    "discount
Discount

Discount price

":
"{Decimal}",
19
                    "netPrice
NetPrice

Final price per unit after deducting all discounts etc.

":
"{Decimal}",
20
                    "basedOn
BasedOn

Specifies what the lowest price was based on. Could be QUOTE, STANDARD or IPA.

Possible domain values can be found here

":
"{String}"
21
               },
22
               "suggestedPrice
SuggestedPrice

The suggested price for the product.

":
{
23
                    "currency
Currency

Three character code following the ISO 4217 standard

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

Represents the price per unit before any discounting is applied.

":
"{Decimal}",
25
                    "discount
Discount

Discount price

":
"{Decimal}",
26
                    "netPrice
NetPrice

Final price per unit after deducting all discounts etc.

":
"{Decimal}",
27
                    "basedOn
BasedOn

Specifies what the lowest price was based on. Could be QUOTE, STANDARD or IPA.

Possible domain values can be found here

":
"{String}"
28
               },
29
               "productLocation": {
30
                    "location": {
31
                         "locationId
LocationId

Location identifier

":
"{Integer}",
32
                         "locationLink
LocationLink

Location reference

":
"{String}"
33
                    },
34
                    "stockQuantity
StockQuantity

Quantity on hand. The total number of the product that are physically located in this location at the current time. This includes items that are already allocated to fulfilling production needs or sales orders. This number may differ from the available quantity.

":
"{Decimal}",
35
                    "availableStockQuantity
AvailableStockQuantity

Quantity on hand which is not allocated. The total number of the product that are physically located in this location and are currently available for use in filling a new order or for purposes such as production or distribution.

":
"{Decimal}"
36
               }
37
          }
38
     ]
39
}

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 102704 HTTP 404 Formula parameter was not found
Error 101420 HTTP 404 Setting definition not found
Error 102747 HTTP 400 Error in formula: {0}