The REST API supports create, retrieve, update and delete operations for accounts.
Accessing Accounts
- GET /data/account/{id}?depth={depth}
Response
The response for this call looks as follows :
{ "type": "Account", "id": "2", "createdAt": "1297278692", "depth": "complete", "description": "", "name": "Eloqua Corp.", "updatedAt": "1297278692", "address1": "1921 Gallows Road", "address2": "", "address3": "", "businessPhone": "", "city": "Vienna", "country": "USA", "fieldValues": [ ], "postalCode": "", "province": "" }
Properties
Name | Type | Description | Notes | Validations |
type | "Account" | |||
address1 | string | |||
address2 | string | |||
address3 | string | |||
businessPhone | string | |||
city | string | |||
country | string | |||
fieldValues | List of FieldValue | A list of custom fields for the account | ||
postalCode | string | |||
province | string | |||
accessedAt | integer | DateRequirement | ||
createdAt | integer | ReadOnly | DateRequirement | |
createdBy | integer | ReadOnly | IdRequirement | |
currentStatus | String | |||
depth | RequestDepth | EnumRequirement | ||
description | string | |||
folderId | integer | IdRequirement | ||
id | integer | The unique identifier of the account | IdRequirement | |
name | string | |||
permissions | Instance Permissions | EnumRequirement | ||
updatedAt | integer | ReadOnly | DateRequirement | |
updatedBy | integer | ReadOnly | IdRequirement |
Related Operations
- POST : /data/account
- PUT : /data/account/{id}
- DELETE : /data/account/{id}
- GET (list) : /data/accounts?depth={depth}&search={searchTerm}&page={page}&count={count}