TAG LINE
TAG LINE
SMALL TITLE

Account / Contract

(API Version v5)


An Account Contract object contains contract details that have been assigned to an account. There is a one-to-many relationship from an Account to multiple Account Contracts.


What can you do with AccountContract?


Properties

Property Details
identity
READ-ONLY
"identity": 18
Type: Number
This is the unique numeric identifier for the AccountContract
ownerId
READ-ONLY
"ownerId": 20
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": "My Contract"
Type: String
The name of this Contract.
accountId
"accountId": 22
Type: Number
Unique identifier for the associated Account object.
accountName
"accountName": "Sample Name"
Type: String
The name of the object associated with the accountId property.
accountContractStatusTypeId
"accountContractStatusTypeId": 9
Type: Number
Unique identifier for the associated AccountContractStatusType object.
accountContractStatusTypeName
"accountContractStatusTypeName": "Sample Name"
Type: String
The name of the object associated with the accountContractStatusTypeId property.
start
"start": "2021-04-26T15:25:27.587Z"
Type: Date
The start date for the term of the Contract.

Date and time values are specified in the ISO 8601 format.
frequency
"frequency": 16
Type: Number
Number of units this contract spans based on the frequency type. For example for a term of 1 month, the frequency would be 1.
frequencyTypeId
"frequencyTypeId": 22
Type: Number
Unique identifier for the associated FrequencyType object.
frequencyTypeName
"frequencyTypeName": "Sample Name"
Type: String
The name of the object associated with the frequencyTypeId property.
accountContractRenewalTypeId
"accountContractRenewalTypeId": 18
Type: Number
Unique identifier for the associated AccountContractRenewalType object.
accountContractRenewalTypeName
"accountContractRenewalTypeName": "Sample Name"
Type: String
The name of the object associated with the accountContractRenewalTypeId property.
renewalAccountContractId
"renewalAccountContractId": 23
Type: Number
If the contract's renew type is a new contract, then this identifier will specify the contract that that will be used on renewal.

Unique identifier for the associated AccountContract object.
renewalAccountContractName
"renewalAccountContractName": "Sample Name"
Type: String
The name of the object associated with the renewalAccountContractId property.
contractTerminationId
"contractTerminationId": 12
Type: Number
Unique identifier for the associated ContractTermination object.
contractTerminationName
"contractTerminationName": "Sample Name"
Type: String
The name of the object associated with the contractTerminationId property.
terminationAccountContractStatusTypeId
"terminationAccountContractStatusTypeId": 26
Type: Number
Unique identifier for the associated AccountContractStatusType object.
terminationAccountContractStatusTypeName
"terminationAccountContractStatusTypeName": "Sample Name"
Type: String
The name of the object associated with the terminationAccountContractStatusTypeId property.
renewalAccountContractStatusTypeId
"renewalAccountContractStatusTypeId": 0
Type: Number
Unique identifier for the associated AccountContractStatusType object.
renewalAccountContractStatusTypeName
"renewalAccountContractStatusTypeName": "Sample Name"
Type: String
The name of the object associated with the renewalAccountContractStatusTypeId property.
earlyTermination
"earlyTermination": "2021-04-26T15:25:27.587Z"
Type: Date
If the contract has been terminated early, this date will specify the date of termination.

Date and time values are specified in the ISO 8601 format.
earlyTerminationComment
"earlyTerminationComment": "Hello World"
Type: String
termTypeId
"termTypeId": 14
Type: Number
Unique identifier for the associated TermType object.
termTypeName
"termTypeName": "Sample Name"
Type: String
The name of the object associated with the termTypeId property.
extendedStart
READ-ONLY
"extendedStart": "2021-04-26T15:25:27.587Z"
Type: Date
If new packages are added to the account with package contract commitment terms that end past the current account contract term, this date will be extended to match that of the added package.

Date and time values are specified in the ISO 8601 format.
version
"version": 22
Type: Number


Patch Types

The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once.

PATCH operations can be used as a standard API call or nested within the envelope of a DataFlow. Below you will find the child objects that can be updated as part of PATCH operations for the AccountContract object.

Standard PATCH objects:

DataFlow PATCH objects:


End Points

DELETEAccount/Contract/{id}
Delete an instance of the AccountContract 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 AccountContract object.
Delete an instance of the AccountContract object.
DELETE Account/Contract/{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": "accountContract"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETAccount/Contract/
Retrieve all of the AccountContract objects.
Retrieve all of the AccountContract objects.
GET Account/Contract/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 17,
            "ownerName": "Sample Text Data",
            "name": "My Contract",
            "accountId": 2,
            "accountName": "Sample Text Data",
            "accountContractStatusTypeId": 18,
            "accountContractStatusTypeName": "Sample Text Data",
            "start": "2021-04-26T15:25:27.587Z",
            "frequency": 0,
            "frequencyTypeId": 26,
            "frequencyTypeName": "Sample Text Data",
            "accountContractRenewalTypeId": 10,
            "accountContractRenewalTypeName": "Sample Text Data",
            "renewalAccountContractId": 11,
            "renewalAccountContractName": "Sample Text Data",
            "contractTerminationId": 0,
            "contractTerminationName": "Sample Text Data",
            "terminationAccountContractStatusTypeId": 13,
            "terminationAccountContractStatusTypeName": "Sample Text Data",
            "renewalAccountContractStatusTypeId": 6,
            "renewalAccountContractStatusTypeName": "Sample Text Data",
            "earlyTermination": "2021-04-26T15:25:27.587Z",
            "earlyTerminationComment": "Sample Text Data",
            "termTypeId": 25,
            "termTypeName": "Sample Text Data",
            "extendedStart": "2021-04-26T15:25:27.587Z",
            "version": 7
        }
    ]
}
GETAccount/Contract/Paged
Retrieve all of the AccountContract 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 AccountContract objects in a paged fashion.
GET Account/Contract/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": 17,
                "ownerName": "Sample Text Data",
                "name": "My Contract",
                "accountId": 4,
                "accountName": "Sample Text Data",
                "accountContractStatusTypeId": 7,
                "accountContractStatusTypeName": "Sample Text Data",
                "start": "2021-04-26T15:25:27.587Z",
                "frequency": 12,
                "frequencyTypeId": 25,
                "frequencyTypeName": "Sample Text Data",
                "accountContractRenewalTypeId": 18,
                "accountContractRenewalTypeName": "Sample Text Data",
                "renewalAccountContractId": 16,
                "renewalAccountContractName": "Sample Text Data",
                "contractTerminationId": 15,
                "contractTerminationName": "Sample Text Data",
                "terminationAccountContractStatusTypeId": 17,
                "terminationAccountContractStatusTypeName": "Sample Text Data",
                "renewalAccountContractStatusTypeId": 27,
                "renewalAccountContractStatusTypeName": "Sample Text Data",
                "earlyTermination": "2021-04-26T15:25:27.587Z",
                "earlyTerminationComment": "Sample Text Data",
                "termTypeId": 26,
                "termTypeName": "Sample Text Data",
                "extendedStart": "2021-04-26T15:25:27.587Z",
                "version": 5
            }
        ]
    }
}
GETAccount/Contract/Paged/Detail
Retrieve all of the AccountContract objects in a paged fashion with all object details. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system.
Retrieve all of the AccountContract objects in a paged fashion with all object details.
GET Account/Contract/Paged/Detail
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": 5,
                "ownerName": "Sample Text Data",
                "name": "My Contract",
                "accountId": 6,
                "accountName": "Sample Text Data",
                "accountContractStatusTypeId": 7,
                "accountContractStatusTypeName": "Sample Text Data",
                "start": "2021-04-26T15:25:27.587Z",
                "frequency": 11,
                "frequencyTypeId": 13,
                "frequencyTypeName": "Sample Text Data",
                "accountContractRenewalTypeId": 20,
                "accountContractRenewalTypeName": "Sample Text Data",
                "renewalAccountContractId": 25,
                "renewalAccountContractName": "Sample Text Data",
                "contractTerminationId": 2,
                "contractTerminationName": "Sample Text Data",
                "terminationAccountContractStatusTypeId": 16,
                "terminationAccountContractStatusTypeName": "Sample Text Data",
                "renewalAccountContractStatusTypeId": 27,
                "renewalAccountContractStatusTypeName": "Sample Text Data",
                "earlyTermination": "2021-04-26T15:25:27.587Z",
                "earlyTerminationComment": "Sample Text Data",
                "termTypeId": 9,
                "termTypeName": "Sample Text Data",
                "extendedStart": "2021-04-26T15:25:27.587Z",
                "version": 0,
                "details": {
                    "sampleSingleObject": {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    },
                    "sampleMultipleObjects": {
                        "totalCount": 1,
                        "items": [
                            {
                                "identity": 2,
                                "property1": "Sample Text",
                                "property2": "2021-04-26T15:25:29.117Z",
                                "property3": 2
                            }
                        ]
                    }
                }
            }
        ]
    }
}
GETAccount/Contract/{id}
Retrieve an instance of the AccountContract object by its ID.
{id}Unique identifier for the AccountContract object.
Retrieve an instance of the AccountContract object by its ID.
GET Account/Contract/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 18,
        "ownerName": "Sample Text Data",
        "name": "My Contract",
        "accountId": 13,
        "accountName": "Sample Text Data",
        "accountContractStatusTypeId": 16,
        "accountContractStatusTypeName": "Sample Text Data",
        "start": "2021-04-26T15:25:27.587Z",
        "frequency": 13,
        "frequencyTypeId": 16,
        "frequencyTypeName": "Sample Text Data",
        "accountContractRenewalTypeId": 11,
        "accountContractRenewalTypeName": "Sample Text Data",
        "renewalAccountContractId": 4,
        "renewalAccountContractName": "Sample Text Data",
        "contractTerminationId": 19,
        "contractTerminationName": "Sample Text Data",
        "terminationAccountContractStatusTypeId": 0,
        "terminationAccountContractStatusTypeName": "Sample Text Data",
        "renewalAccountContractStatusTypeId": 18,
        "renewalAccountContractStatusTypeName": "Sample Text Data",
        "earlyTermination": "2021-04-26T15:25:27.587Z",
        "earlyTerminationComment": "Sample Text Data",
        "termTypeId": 7,
        "termTypeName": "Sample Text Data",
        "extendedStart": "2021-04-26T15:25:27.587Z",
        "version": 27
    }
}
GETAccount/Contract/{id}/Detail
Retrieve deep detail of the AccountContract object by its ID. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system.
{id}Unique identifier for the AccountContract object.
Retrieve deep detail of the AccountContract object by its ID.
GET Account/Contract/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 0,
        "ownerName": "Sample Text Data",
        "name": "My Contract",
        "accountId": 15,
        "accountName": "Sample Text Data",
        "accountContractStatusTypeId": 13,
        "accountContractStatusTypeName": "Sample Text Data",
        "start": "2021-04-26T15:25:27.587Z",
        "frequency": 26,
        "frequencyTypeId": 10,
        "frequencyTypeName": "Sample Text Data",
        "accountContractRenewalTypeId": 21,
        "accountContractRenewalTypeName": "Sample Text Data",
        "renewalAccountContractId": 22,
        "renewalAccountContractName": "Sample Text Data",
        "contractTerminationId": 27,
        "contractTerminationName": "Sample Text Data",
        "terminationAccountContractStatusTypeId": 21,
        "terminationAccountContractStatusTypeName": "Sample Text Data",
        "renewalAccountContractStatusTypeId": 15,
        "renewalAccountContractStatusTypeName": "Sample Text Data",
        "earlyTermination": "2021-04-26T15:25:27.587Z",
        "earlyTerminationComment": "Sample Text Data",
        "termTypeId": 7,
        "termTypeName": "Sample Text Data",
        "extendedStart": "2021-04-26T15:25:27.587Z",
        "version": 1,
        "details": {
            "sampleSingleObject": {
                "identity": 2,
                "property1": "Sample Text",
                "property2": "2021-04-26T15:25:29.117Z",
                "property3": 2
            },
            "sampleMultipleObjects": {
                "totalCount": 1,
                "items": [
                    {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    }
                ]
            }
        }
    }
}
PATCHAccount/Contract/{id}
Update or Add the AccountContract object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array.
{id}Unique identifier for the AccountContract object.
Update or Add the AccountContract object and optionally make changes to any child objects.
PATCH Account/Contract/{id}

{
    "details": {},
    "accountContracts": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "name": "My Contract",
                "accountId": 19,
                "accountContractStatusTypeId": 6,
                "start": "2021-04-26T15:25:27.587Z",
                "frequency": 22,
                "frequencyTypeId": 20,
                "accountContractRenewalTypeId": 12,
                "renewalAccountContractId": 2,
                "contractTerminationId": 2,
                "terminationAccountContractStatusTypeId": 13,
                "renewalAccountContractStatusTypeId": 20,
                "earlyTermination": "2021-04-26T15:25:27.587Z",
                "earlyTerminationComment": "Sample Text Data",
                "termTypeId": 6,
                "version": 19
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "patch",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "action": "created",
                "dtoTypeKey": "accountContract",
                "instance": {
                    "identity": 1,
                    "ownerId": 4,
                    "ownerName": "Sample Text Data",
                    "name": "My Contract",
                    "accountId": 6,
                    "accountName": "Sample Text Data",
                    "accountContractStatusTypeId": 26,
                    "accountContractStatusTypeName": "Sample Text Data",
                    "start": "2021-04-26T15:25:27.587Z",
                    "frequency": 3,
                    "frequencyTypeId": 0,
                    "frequencyTypeName": "Sample Text Data",
                    "accountContractRenewalTypeId": 5,
                    "accountContractRenewalTypeName": "Sample Text Data",
                    "renewalAccountContractId": 21,
                    "renewalAccountContractName": "Sample Text Data",
                    "contractTerminationId": 18,
                    "contractTerminationName": "Sample Text Data",
                    "terminationAccountContractStatusTypeId": 18,
                    "terminationAccountContractStatusTypeName": "Sample Text Data",
                    "renewalAccountContractStatusTypeId": 23,
                    "renewalAccountContractStatusTypeName": "Sample Text Data",
                    "earlyTermination": "2021-04-26T15:25:27.587Z",
                    "earlyTerminationComment": "Sample Text Data",
                    "termTypeId": 12,
                    "termTypeName": "Sample Text Data",
                    "extendedStart": "2021-04-26T15:25:27.587Z",
                    "version": 18
                }
            }
        ]
    }
}
POSTAccount/Contract/
Create a new instance of the AccountContract object.
Create a new instance of the AccountContract object.
POST Account/Contract/

{
    "name": "My Contract",
    "accountId": 17,
    "accountContractStatusTypeId": 22,
    "start": "2021-04-26T15:25:27.587Z",
    "frequency": 25,
    "frequencyTypeId": 7,
    "accountContractRenewalTypeId": 9,
    "renewalAccountContractId": 18,
    "contractTerminationId": 27,
    "terminationAccountContractStatusTypeId": 14,
    "renewalAccountContractStatusTypeId": 19,
    "earlyTermination": "2021-04-26T15:25:27.587Z",
    "earlyTerminationComment": "Sample Text Data",
    "termTypeId": 8,
    "version": 20
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 8,
                "ownerName": "Sample Text Data",
                "name": "My Contract",
                "accountId": 9,
                "accountName": "Sample Text Data",
                "accountContractStatusTypeId": 21,
                "accountContractStatusTypeName": "Sample Text Data",
                "start": "2021-04-26T15:25:27.587Z",
                "frequency": 7,
                "frequencyTypeId": 6,
                "frequencyTypeName": "Sample Text Data",
                "accountContractRenewalTypeId": 22,
                "accountContractRenewalTypeName": "Sample Text Data",
                "renewalAccountContractId": 26,
                "renewalAccountContractName": "Sample Text Data",
                "contractTerminationId": 4,
                "contractTerminationName": "Sample Text Data",
                "terminationAccountContractStatusTypeId": 20,
                "terminationAccountContractStatusTypeName": "Sample Text Data",
                "renewalAccountContractStatusTypeId": 13,
                "renewalAccountContractStatusTypeName": "Sample Text Data",
                "earlyTermination": "2021-04-26T15:25:27.587Z",
                "earlyTerminationComment": "Sample Text Data",
                "termTypeId": 19,
                "termTypeName": "Sample Text Data",
                "extendedStart": "2021-04-26T15:25:27.587Z",
                "version": 14
            }
        ]
    }
}
PUTAccount/Contract/{id}
Update an existing instance of the AccountContract object.
Update an existing instance of the AccountContract object.
PUT Account/Contract/{id}

{
    "identity": 1,
    "name": "My Contract",
    "accountId": 0,
    "accountContractStatusTypeId": 11,
    "start": "2021-04-26T15:25:27.587Z",
    "frequency": 4,
    "frequencyTypeId": 26,
    "accountContractRenewalTypeId": 10,
    "renewalAccountContractId": 3,
    "contractTerminationId": 4,
    "terminationAccountContractStatusTypeId": 0,
    "renewalAccountContractStatusTypeId": 23,
    "earlyTermination": "2021-04-26T15:25:27.587Z",
    "earlyTerminationComment": "Sample Text Data",
    "termTypeId": 18,
    "version": 13
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 26,
                "ownerName": "Sample Text Data",
                "name": "My Contract",
                "accountId": 17,
                "accountName": "Sample Text Data",
                "accountContractStatusTypeId": 6,
                "accountContractStatusTypeName": "Sample Text Data",
                "start": "2021-04-26T15:25:27.587Z",
                "frequency": 19,
                "frequencyTypeId": 23,
                "frequencyTypeName": "Sample Text Data",
                "accountContractRenewalTypeId": 9,
                "accountContractRenewalTypeName": "Sample Text Data",
                "renewalAccountContractId": 15,
                "renewalAccountContractName": "Sample Text Data",
                "contractTerminationId": 19,
                "contractTerminationName": "Sample Text Data",
                "terminationAccountContractStatusTypeId": 18,
                "terminationAccountContractStatusTypeName": "Sample Text Data",
                "renewalAccountContractStatusTypeId": 16,
                "renewalAccountContractStatusTypeName": "Sample Text Data",
                "earlyTermination": "2021-04-26T15:25:27.587Z",
                "earlyTerminationComment": "Sample Text Data",
                "termTypeId": 18,
                "termTypeName": "Sample Text Data",
                "extendedStart": "2021-04-26T15:25:27.587Z",
                "version": 16
            }
        ]
    }
}