TAG LINE
TAG LINE
SMALL TITLE

Account Type

(API Version v6)


An Account Type is a user defined list of possible account types you wish to specify in the system. Examples are "Partner", "Customer", "Reseller" etc.


What can you do with AccountType?


Properties

Property Details
identity
READ-ONLY
"identity": 5
Type: Number
This is the unique numeric identifier for the AccountType
ownerId
READ-ONLY
"ownerId": 21
Type: Number
Unique identifier for the associated Owner object.
ownerName
READ-ONLY
"ownerName": "Sample Name"
Type: String
The name of the object associated with the ownerId property.
name
"name": "Customer"
Type: String
User defined name given to the Account Type.
isDefault
"isDefault": true
Type: Boolean
Whether or not this Account Type is considered the default one used on data entry.


End Points

DELETEAccountType/{id}
Delete an instance of the AccountType object. Upon successful delete, this API will return a record of all of the reelated objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system.
{id}Unique identifier for the AccountType object.
Delete an instance of the AccountType object.
DELETE AccountType/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "delete",
    "results": {
        "totalCount": 4,
        "items": [
            {
                "identity": 1,
                "action": "deleted",
                "dtoTypeKey": "accountType"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETAccountType/
Retrieve all of the AccountType objects.
Retrieve all of the AccountType objects.
GET AccountType/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 4,
            "ownerName": "Sample Text Data",
            "name": "Customer",
            "isDefault": true
        }
    ]
}
GETAccountType/Paged
Retrieve all of the AccountType objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints.
Retrieve all of the AccountType objects in a paged fashion.
GET AccountType/Paged
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "pagination": {
        "pageNumber": 1,
        "pageSize": 20,
        "excludeTotalCount": false
    },
    "pagedResults": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 18,
                "ownerName": "Sample Text Data",
                "name": "Customer",
                "isDefault": true
            }
        ]
    }
}
GETAccountType/{id}
Retrieve an instance of the AccountType object by its ID.
{id}Unique identifier for the AccountType object.
Retrieve an instance of the AccountType object by its ID.
GET AccountType/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 6,
        "ownerName": "Sample Text Data",
        "name": "Customer",
        "isDefault": true
    }
}
POSTAccountType/
Create a new instance of the AccountType object.
Create a new instance of the AccountType object.
POST AccountType/

{
    "name": "Customer",
    "isDefault": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 11,
                "ownerName": "Sample Text Data",
                "name": "Customer",
                "isDefault": true
            }
        ]
    }
}
PUTAccountType/{id}
Update an existing instance of the AccountType object.
Update an existing instance of the AccountType object.
PUT AccountType/{id}

{
    "identity": 1,
    "name": "Customer",
    "isDefault": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 7,
                "ownerName": "Sample Text Data",
                "name": "Customer",
                "isDefault": true
            }
        ]
    }
}