Contact

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

PropertyCaptionData TypeRequired
IdIdInt32False
NameNameString (255)True
SalutationMr./Ms./...String (15)False
FirstNameFirst NameString (50)False
MiddleNameM.IString (50)False
LastNameLast NameString (255)False
EmailEmailString (200)False
PhonePhoneString (50)False
AltPhoneAlt. PhoneString (50)False
FaxFaxString (50)False
PositionPositionString (50)False
NoteNoteString (4000)False
AddressRefAddressEntityRefFalse
IsActiveActiveBooleanFalse
IsPrimaryIs PrimaryBooleanFalse
CustomFieldsCustom FieldsArray of CustomFieldDataFalse

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"
}