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.
POST /CustomerContacts
GET /CustomerContacts
PUT /CustomerContacts
DELETE /CustomerContacts
GET /CustomerContacts/all
GET /CustomerContacts/incremental
GET /CustomerContacts/count
Provide the call with a json like this example:
{ "dsCustContacts": { "ttCustContacts": [ { "dossiernr": 1, // company within FoodMaster "klant-nr": 8, // customer id "functie": 50, // contact function code "naam": "Foo", // contact name "naam2": "Bar", // contact name 2 "adres": "foobarstreet 85", // contact address "land": "BE", // contact country "postnr": "1000", // contact postal number "woonpl": "Brussels", // contact city "postadres": false, // contact postal address "geboortedatum": "1962-07-18", // contat date of birth "tel-kantoor": "+32 33 03 73", // contact office telephone number "tel-kantoor2": "+32 33 03 72", // contact office telephone number 2 "tel-fax": "", // contact fax number "tel-assistent": "", // contact assistent telephone number "tel-thuis": "", // contact home telephone number "tel-thuis2": "", // contact home telephone number 2 "tel-gsm": "+32 487 41 59 62", // contact mobile telephone number "tel-sema": "", // contact sema number "email": "foo@bar.com", // contact e-mail "internet-adres": "www.foo-bar.com" // contact website } ] }} The functie variable depends on other settings in FoodMaster. The options for this variable should be agreed upon.
dossiernr = company within FoodMaster
klant-nr = customer ID
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.
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.
dossiernr = company within FoodMaster
pag = page number
lim = page size
dossiernr = company within FoodMaster
since = changes since 1900-01-01T00:00:00 for ‘since last call’
dossiernr = company within FoodMaster
See following example:
xxxxxxxxxx{ "dsCustContacts": { "ttCustContacts": [ { "dossiernr": 1, // company within FoodMaster "klant-nr": 8, // customer id "functie": 50, // contact function code "naam": "Foo", // contact name "naam2": "Bar", // contact name 2 "adres": "foobarstreet 85", // contact address "land": "BE", // contact country "postnr": "1000", // contact postal number "woonpl": "Brussels", // contact city "postadres": false, // contact postal address "geboortedatum": "1962-07-18", // contat date of birth "tel-kantoor": "+32 33 03 73", // contact office telephone number "tel-kantoor2": "+32 33 03 72", // contact office telephone number 2 "tel-fax": "", // contact fax number "tel-assistent": "", // contact assistent telephone number "tel-thuis": "", // contact home telephone number "tel-thuis2": "", // contact home telephone number 2 "tel-gsm": "+32 487 41 59 62", // contact mobile telephone number "tel-sema": "", // contact sema number "email": "foo@bar.com", // contact e-mail "internet-adres": "www.foo-bar.com", // contact website "rec-id": 65762, // record id "crud": "R" // crud code } ] }}