Contact Object
Contact is a Child object of Customer and Lead.
End Point
/contact
GET, POST, PUT, DELETE
GET and DELETE requests expect parameter id of type Int32.
Inviting/Revoking Access to the B2B Portal for a Contact via the API (Version 1.0.39 or higher)
POST: E.g /contact/B2BAccess?id=3&grant=true&orderSourceId=5
- id: The Id of the contact in Order Time.
- grant:true for invites, false to revoke
- orderSourceId: the id of the B2B portal which you can see when you click 'Configure' e.g. https://app.ordertime.com/b2b/Edit/5
Properties
| Property | Caption | Data Type | Required |
| Id | Id | Int32 | False |
| Name | Name | String (255) | True |
| Salutation | Mr./Ms./... | String (15) | False |
| FirstName | First Name | String (50) | False |
| MiddleName | M.I | String (50) | False |
| LastName | Last Name | String (255) | False |
| String (200) | False | ||
| Phone | Phone | String (50) | False |
| AltPhone | Alt. Phone | String (50) | False |
| Fax | Fax | String (50) | False |
| Position | Position | String (50) | False |
| Note | Note | String (4000) | False |
| AddressRef | Address | EntityRef | False |
| IsActive | Active | Boolean | False |
| IsPrimary | Is Primary | Boolean | False |
| CustomFields | Custom Fields | Array of CustomFieldData | False |
Json Sample
{
"Id": 111,
"CustomerRef": {
"Id": 298,
"Name": "Sample 10"
},
"SalesRepRef": null,
"IsActive": true,
"Name": "Ian Benoliel",
"Salutation": "Mr",
"FirstName": "Ian",
"MiddleName": "",
"LastName": "Benoliel",
"Email": "ianb@numbercruncher.com",
"Phone": "(954) 302-6811",
"AltPhone": "",
"Fax": "",
"Note": "",
"AddressRef": {
"Id": 1,
"Name": "Primary"
},
"IsPrimary": false,
"CustomFields": [
{
"Name": "ConCust1",
"Value": "1963-11-19T00:00:00",
"Caption": "Birth Date"
},
{
"Name": "ConCust2",
"Value": "@ian",
"Caption": "Twitter"
}
],
"Position": "CEO"
}