API Customers
Customers()
Get a full list of customers.
Note: does not include customer aliases (Since RPM16).
Request
No extra data required
Response
{
"Result": {
"Age": <int>, // Time of last modification of this list (Since RPM16)
"Customers": [
{
"Customer": <string>,
"CustomerID": <int>,
"Added": <string>,
"Modified": <string>
},
<... more customers>
]
}
}
Response
{
"Result": {
"Age": <int>,
"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": [ // Suppressed if IncludeLocations is false (Since RPM31)
{
"Address": <Date>,
"City": <string>,
"Country": <string>,
"IsPrimary": <bool>,
"LocationID": <int>,
"Name": <string>,
"StateProvince": <string>,
"ZipPostalCode": <string>,
"Added": <datetime>,
"Modified": <datetime>,
"Fields": [ // Since RPM28
{
"Field": <string>,
"Value": <string>
},
<more basic fields>
]
}
],
"Modified": <string>,
"Name": <string>,
"Notes": [],
"NotesForStaff": [],
"Website": <string>
}
Errors
- “No customers”