Get Customer Account Attributes by Account ID
GET /v2/accounts/{account_id}
Description:
This API returns a single customer account along with its attributes.
API Limit:
600 requests per minute. Client receives 429 once over the limit.
Method Details:
HTTP method: GET
Response format: JSON
Headers:
useriq-api-key: Your valid API key generated from the site settings page
Content-Type: application/json
Parameters:
Path Parameters:
-
account_id: required, the account id the clients sends through tracking code.
Response:
Status code 200:
The body contains
-
result: an account along with its mapped attributes.
-
success: true or false.
Other Status codes:
400: Bad request
401: Unauthorized
429: Too many requests
500: Internal Server Error
GET v2/accounts/508044701
{
"success": true,
"result":{
"account_id": "508044701",
"account_name": "Iron man hubspot",
"created_at": "2018-11-07 16:57:30.684",
"attributes": [
{
"name": "Code Red",
"source": "sfdc",
"source_variable": "Is_code_red__c",
"value": "false",
"data_type": "boolean",
"created_at": "2020-09-29 21:35:14.700774",
"updated_at": "2020-09-29 21:35:14.700774"
},
{
"name": "Plan Type",
"source": "api",
"source_variable": "account_subscription_level",
"value": "Bronzez",
"data_type": "string",
"created_at": "2020-12-04 20:02:14.236869",
"updated_at": "2021-01-22 01:43:06.339964"
},
{
"name": "Stage",
"source": "api",
"source_variable": "stage",
"value": "bronze",
"data_type": "string",
"created_at": "2020-12-04 20:18:19.760365",
"updated_at": "2021-01-21 22:37:15.544843"
},
{
"name": "Account Owner",
"source": "hubspot",
"source_variable": "csm",
"value": "Kyle Lothian",
"data_type": "string",
"created_at": "2021-03-31 00:18:59.027",
"updated_at": "2021-09-01 01:37:33.165"
},
{
"name": "Integrated On",
"source": "hubspot",
"source_variable": "hubspot_last_communication",
"value": "2021-09-03T20:06:11Z",
"data_type": "timestamp",
"created_at": "2021-08-27 20:46:59.401",
"updated_at": "2021-09-03 20:49:34.48"
},
{
"name": "MRR",
"source": "hubspot",
"source_variable": "mrr",
"value": "288.3",
"data_type": "currency",
"created_at": "2021-09-01 01:00:24.914",
"updated_at": "2021-09-14 02:58:42.363"
}
]
}
}
Comments
0 comments
Please sign in to leave a comment.