FoodMaster API Documentation

 

Customer contacts

This endpoint handles everything concerning the extra contact information of a customer. The address and contact information of the customer is found on the customers endpoint. This endpoint only returns the information concerning defined contacts of the customers.


Action

Create

POST /CustomerContacts

 

Read all for 1 customer

GET /CustomerContacts

 

Update

PUT /CustomerContacts

 

Delete

DELETE /CustomerContacts

 

Read all

GET /CustomerContacts/all

 

Read incremental

GET /CustomerContacts/incremental

 

Count

GET /CustomerContacts/count


Input

Create

Provide the call with a json like this example:

The functie variable depends on other settings in FoodMaster. The options for this variable should be agreed upon.

 

Read all for 1 customer

dossiernr = company within FoodMaster klant-nr = customer ID

 

Update

The same json object provided with create. Only now, make sure to add the rec-id variable. This is the only way to find the correct contact.

 

Delete

The same json object provided with create. Only now, the only variable that matters is the rec-id variable. This is the only way to find the contact correctly, and since its a delete, the other variables do not matter.

 

Read all

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

 

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: