Get account
Retrieve a single customer account by its account ID.
HTTP request
GET /api/now/v1/account/{account_id}
Path parameters
| Name | Description |
|---|---|
account_id | Account id |
Query parameters
None.
Request body
Don't supply a request body for this method.
Response
AccountItemResponse — an item envelope of *AccountModel.
Example
response, err := client.Now().Account().ByID("{accountID}").Get(ctx, nil)
if err != nil {
log.Fatal(err)
}