Customer( string Customer, int CustomerID )
Get customer information.
Request
Request Data:
- (string) Customer (optional)
- (int) CustomerID (optional) – if provided, Customer will be ignored.
{ "Customer": <string>, "CustomerID": <int> }
Response
{ "Result": { "Accounts": [ { "Account": <string>, "AccountID": <int>, "Supplier": <string>, "SupplierID": <int> }, <more accounts> ], "Added": <Date>, "Aliases": [], "Contacts": [ { "Contact": { "ContactID": <int>, "Email": <string>, "FirstName": <string>, "LastName": <string>, "PhoneNumbers": [ { "Number": <string>, "PhoneNumberID": <int>, "Type": <Type> }, <more Phone Numbers> ], "Salutation": <string>, "Title": <string> }, "IsPrimary": <bool> } ], "CustomerID": <int>, "Fields": [ { "Field": <string>, "Value": <string> }, <more custom fields> ], "Locations": [ { "Address": <Date>, "City": <string>, "Country": <string>, "IsPrimary": <bool>, "LocationID": <int>, "Name": <string>, "StateProvince": <string>, "ZipPostalCode": <string> } ], "Modified": <string>, "Name": <string>, "Notes": [], "NotesForStaff": [], "Website": <string> } }
Errors
- “Customer not found”