FoodMaster API Documentation

 

Special Prices

This endpoint returns the special settings for prices defined in FoodMaster. There are a few different types of special prices, they are defined by a code.

Each code has a different meaning.

 

 

Explanation code 10

Price code

A different price code should be used. The normal price code, assigned for this customer to this article, is not applicable. The given price code, assigned in field waarde should be used.

For example: A customer that normally had price code 1 assigned. Can now buy this article for the price assigned in price code 2.

 

Explanation code 20

Net price

The value in this code simply overwrites the value of the article. The value of the field waarde just becomes the price for the article for the given customer.

 

Explanation code 30

Discount

The value of the discount depends on the type of discount.

In case the value is 5, the discount will be:

 

Explanation code 40

Quantum

The quantum discount depends on the amount you buy. The type of the ttSpecialPrices does not matter. The type is defined in de sub node `ttQuantumPrices, which will only be available when the Special Price code is 40.

Some examples:

 

Explanation code 50

Promotion

You get an extra item when buying an item x times.

Example 1:

Example 2:

If the promo_... are not filled, code 50 works the same as code 30. Most of the time code 50 special prices will be a temporary offer and code 30 are for longer time.

Another difference between code 30 and code 50 is that tp_korting and ln_korting (1 and 2) will not get filled when using the prices endpoint for codes 30 . For code 50 they will get filled. Code 30 will already be included in the waarde field. Code 50 is included in the netto field.

 

Explanation code 60

Pick-up discount

Code 60 works the same as code 30, but it is only applicable if the customer picks the order up himself / when there is no delivery.

 


Action

Read all via pagination

GET /SpecialPrices

Read all via code

GET /SpecialPrices/bycode

Read incremental

GET /SpecialPrices/incremental

Count

GET /SpecialPrices/count


Input

Read all via pagination

dossiernr = company within FoodMaster pag = page number lim = page size

Read all via code

dossiernr = company within FoodMaster code = code of the special price

Read incremental

dossiernr = company within FoodMaster since = changes since 1900-01-01T00:00:00 for ‘since last call’

Count

dossiernr = company within FoodMaster


Output

See following example: