This call should not be used a lot. The main goals of this call is to return contact information about all customers and their contacts. This way an existing web shop can link it’s accounts, using the email addresses, to the customers defined in FoodMaster.
GET /accounts
dossiernr = company within FoodMaster
Every customer in FoodMaster with an e-mail address, gets exported as a object in ttCustAccounts. If this customer has contacts defined, they will get exported within the ttCustAccounts object as an ttCustContAccounts object.
If an e-email address on the website, matches an e-mail address in FoodMaster, the klant-nr returned, should be linked to the account matching on the website. If deactivate is true, this customer is no longer active in FoodMaster. Depending on this, you can indicate what should be done with this customer on the website.
See following example:
xxxxxxxxxx{ "dsAccounts": { "ttCustAccounts": [ { "dossiernr": 1, // company within FoodMaster "klant-nr": 12345, // customer id "naam": "John Doe INC", // customer name "e-mail": "info@johndoeinc.com", // e-mail "deactivate": false, //deactivate "ttCustContAccounts": [ { "functie": 1, // contact funtion code "naam": "John Doe", // contact name "e-mail": "john@johndoeinc.com" // contact e-mail }, ] }, ] }}