Account Class Reference

Description

Renders an account.

Protected Member Functions

 _render ($account)
 Renders an account. More...
 

Member Function Documentation

_render (   $account)
protected

Renders an account.

{
"id": 42,
"entityType": "Accounts",
"rev": "1",
"name": "Vishay Intertechnology",
"description": "Closed Mondays",
"legacyId": "f8f2b3dc-1540-11eb-adc1-0242ac120002",
"htmlUrl": "https://app01.nutshell.com/account/1234", // a url to open with a web browser for this entity
"avatar": {
"url": "/image/230/default/default/account-avatar-1.png"
}, // deprecated! See 'avatarUrl'
"avatarUrl": "https://app.nutshell.com/avatar/accounts/6/1/13cd44673d30fbd542a374d3beeabd6dc270302b8dd1d983e9a3a15bcdc1afe4/1596036505", // This URL is pre-authenticated. no need to include credentials.
"tags": ["Some tag", "Some other tag"],
"industry": Industry,
"accountType": {
"id": 1,
"name": "Customer"
}
"creator": {
"stub": true,
"id": 3,
"entityType": "Users",
"rev": "1",
"name": "Chris Dzombak"
},
"leads": [ Lead, ... ], // Nutshell will return up to the first 100 leads. if you want a full list, use findLeads() with an accountId query parameter
"contacts": [ Contact, ... ],
"phone": {
"home": {
"countryCode": "1",
"number": "995-505-7619",
"extension": null
},
"--primary": {
"countryCode": "1",
"number": "995-505-7619",
"extension": null
}
},
"url": {
"0": "http://example.com",
"mail": "https://mail.example.com"
},
"email": {
"0": "jhalpert@nutshell.com",
"assistant": "dschrute@dunder-mifflin.com"
},
"territory": {
"id": 1,
"name": "Michigan"
},
"mergedInto": [ Account, ... ] ,
"lastContactedDate": null, // ATOM/rfc3339 format. Returns null if the value is empty.
"deletedTime": "2010-09-28T13:30:00+0000", // ATOM/rfc3339 format. Only present when deleted.
"modifiedTime": "2010-04-26T15:25:10+0000", // ATOM/rfc3339 format. If modified_time is blank the created_time value is returned in its place.
"createdTime": "2010-04-26T15:25:10+0000", // ATOM/rfc3339 format.
}
Returns
array