RetailCustomer
RetailCustomer provides access to the retail customer resource. This is where all retail customers are held. These typically come from a retail website or be manually keyed, following mail or telephone request. They may also come from own retail stores where customer data capture is enabled.
Example of a returned retail customer object with an included outlet
{
"response": {
"Page": 1,
"PageCount": 12,
"RecordsSent": 100,
"RecordsFound": 1185,
"RetailCustomer": [
{
"id": 1,
"Customer_Ref": "OWNWEB01-6",
"Title": "Mr",
"Forename": "John",
"Surname": "Smith",
"Family_Name": "Mr John Smith",
"Given_Name": "John Smith",
"Company_Name": "",
"Address1": "12 Test Road",
"Address2": "",
"Town": "Newcastle",
"County": "Tyne & Wear",
"Postcode": "NE11 0LE",
"Country": "United Kingdom",
"Telephone": "12345612345",
"Mobile": "",
"Fax": "",
"Email": "demo@test.co.uk",
"Comments": "",
"URL": "",
"Identifier1": "",
"Identifier2": "",
"Account_Ref": "",
"Rating": ""
}
]
}
}
RetailCustomer Properties
| Property | Example | Description |
|---|---|---|
| id | 15 | Unique customer id |
| Customer_Ref | "OWNWEB01-6" | Customer reference. |
| Title | "Mr" | Customer title |
| Forename | "John" | Forename |
| Surname | "Smith" | Surname |
| Family_Name | "Mr John Smith" | Family name created from Title + Forename + Surname |
| Given_Name | "" | Given name. If not passed this will be filled with Forename + Surname |
| Company_Name | "" | Company name if specified |
| Address1 | "18 Main St" | Billing address line 1 |
| Address2 | "Hutton" | Billing address line 2 |
| Town | "Cranswick" | Billing town |
| County | "YO25 9QR" | Billing county |
| Postcode | "" | Billing postcode |
| Country | "United Kingdom" | Billing country |
| Telephone | "" | Customer telephone number |
| Mobile | "" | Customer mobile number |
| Fax | "" | Customer fax number |
| "demo@test.co.uk" | Customer email address | |
| Comments | "" | Order notes |
| URL | "" | Customers web address |
| Identifier1 | "" | Classification field |
| Identifier2 | "" | Classification field |
| Accounts_Ref | "" | Accounting reference for customer |
| Rating | "" | Customer rating code |
RetailCustomer Methods
GET /api/retailcustomer
Returns all retail customers in the system .