Account Data Type

Properties
name data type description
id number
name string
createdOn number
createdBy number
modifiedOn number
modifiedBy number
organization Organization
parentAccountId number
parentAccountPath string
optlock number The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.

Example

{
  "id" : 12345,
  "name" : "...",
  "createdOn" : 12345,
  "createdBy" : 12345,
  "modifiedOn" : 12345,
  "modifiedBy" : 12345,
  "organization" : {
    "name" : "...",
    "personName" : "...",
    "email" : "...",
    "phoneNumber" : "...",
    "addressLine1" : "...",
    "addressLine2" : "...",
    "addressLine3" : "...",
    "zipPostCode" : "...",
    "city" : "...",
    "stateProvinceCounty" : "...",
    "country" : "..."
  },
  "parentAccountId" : 12345,
  "parentAccountPath" : "...",
  "optlock" : 12345
}