TAG LINE
TAG LINE
SMALL TITLE

Term

(API Version v7)


User defined terms for Package contracts.


What can you do with Term?

  • DELETE Term/{id}
    Delete an instance of the Term object.

  • GET Term/
    Retrieve all of the Term objects.

  • GET Term/Paged
    Retrieve all of the Term objects in a paged fashion.

  • GET Term/Paged/Detail
    Retrieve all of the Term objects in a paged fashion with all object details.

  • GET Term/{id}
    Retrieve an instance of the Term object by its ID.

  • GET Term/{id}/Detail
    Retrieve deep detail of the Term object by its ID.

  • PATCH Term/{id}
    Update or Add the Term object and optionally make changes to any child objects.

  • POST Term/
    Create a new instance of the Term object.

  • PUT Term/{id}
    Update an existing instance of the Term object.


Properties

Property Details
identity
READ-ONLY
"identity": 23
Type: Number
This is the unique numeric identifier for the Term
ownerId
READ-ONLY
"ownerId": 17
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": "12 months"
Type: String
User defined name for the Term
isActive
"isActive": true
Type: Boolean
Whether or not this Term can be applied to a Package contract.
frequency
"frequency": 1
Type: Number
Numerical value of the frequency of the term.
frequencyTypeId
"frequencyTypeId": 1
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.
penaltyServiceId
"penaltyServiceId": 13
Type: Number
Unique identifier for the associated Service object.
penaltyServiceName
"penaltyServiceName": "Sample Name"
Type: String
The name of the object associated with the penaltyServiceId property.
chargeRemainder
"chargeRemainder": true
Type: Boolean
Whether or not the remaining amount of the term due to early cancellation should be pro-rated and charged.
termRenewalTypeId
"termRenewalTypeId": 20
Type: Number
Unique identifier for the associated TermRenewalType object.
termRenewalTypeName
"termRenewalTypeName": "Sample Name"
Type: String
The name of the object associated with the termRenewalTypeId property.
renewTermId
"renewTermId": 21
Type: Number
Unique identifier for the associated Term object.
renewTermName
"renewTermName": "Sample Name"
Type: String
The name of the object associated with the renewTermId property.
revokeDiscounts
"revokeDiscounts": true
Type: Boolean


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. Below you will find the child objects that can be updated as part of PATCH operations for the Term object.

Standard PATCH objects:

  • termPenalty - create, update, delete

DataFlow PATCH objects:

  • term - create, update, delete
  • termPenalty - create, update, delete

End Points

DELETETerm/{id}
Delete an instance of the Term object. Upon successful delete, this API will return a record of all of the related 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 Term object.
Delete an instance of the Term object.
DELETE Term/{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": "term"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETTerm/
Retrieve all of the Term objects.
Retrieve all of the Term objects.
GET Term/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 2,
            "ownerName": "Sample Text Data",
            "name": "12 months",
            "isActive": true,
            "frequency": "1",
            "frequencyTypeId": 20,
            "frequencyTypeName": "Sample Text Data",
            "penaltyServiceId": 10,
            "penaltyServiceName": "Sample Text Data",
            "chargeRemainder": true,
            "termRenewalTypeId": 25,
            "termRenewalTypeName": "Sample Text Data",
            "renewTermId": 20,
            "renewTermName": "Sample Text Data",
            "revokeDiscounts": true
        }
    ]
}
GETTerm/Paged
Retrieve all of the Term 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 Term objects in a paged fashion.
GET Term/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": "12 months",
                "isActive": true,
                "frequency": "1",
                "frequencyTypeId": 16,
                "frequencyTypeName": "Sample Text Data",
                "penaltyServiceId": 9,
                "penaltyServiceName": "Sample Text Data",
                "chargeRemainder": true,
                "termRenewalTypeId": 10,
                "termRenewalTypeName": "Sample Text Data",
                "renewTermId": 13,
                "renewTermName": "Sample Text Data",
                "revokeDiscounts": true
            }
        ]
    }
}
GETTerm/Paged/Detail
Retrieve all of the Term 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 Term objects in a paged fashion with all object details.
GET Term/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": 3,
                "ownerName": "Sample Text Data",
                "name": "12 months",
                "isActive": true,
                "frequency": "1",
                "frequencyTypeId": 15,
                "frequencyTypeName": "Sample Text Data",
                "penaltyServiceId": 24,
                "penaltyServiceName": "Sample Text Data",
                "chargeRemainder": true,
                "termRenewalTypeId": 19,
                "termRenewalTypeName": "Sample Text Data",
                "renewTermId": 3,
                "renewTermName": "Sample Text Data",
                "revokeDiscounts": true,
                "details": {
                    "termPenalties": [
                        {
                            "identity": 91,
                            "termId": 28,
                            "termName": "Sample Text Data",
                            "currencyId": 39,
                            "currencyName": "Sample Text Data",
                            "amount": 22.28,
                            "currencyCode": "Sample Text Data"
                        }
                    ]
                }
            }
        ]
    }
}
GETTerm/{id}
Retrieve an instance of the Term object by its ID.
{id}Unique identifier for the Term object.
Retrieve an instance of the Term object by its ID.
GET Term/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 10,
        "ownerName": "Sample Text Data",
        "name": "12 months",
        "isActive": true,
        "frequency": "1",
        "frequencyTypeId": 10,
        "frequencyTypeName": "Sample Text Data",
        "penaltyServiceId": 7,
        "penaltyServiceName": "Sample Text Data",
        "chargeRemainder": true,
        "termRenewalTypeId": 8,
        "termRenewalTypeName": "Sample Text Data",
        "renewTermId": 20,
        "renewTermName": "Sample Text Data",
        "revokeDiscounts": true
    }
}
GETTerm/{id}/Detail
Retrieve deep detail of the Term 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 Term object.
Retrieve deep detail of the Term object by its ID.
GET Term/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 13,
        "ownerName": "Sample Text Data",
        "name": "12 months",
        "isActive": true,
        "frequency": "1",
        "frequencyTypeId": 4,
        "frequencyTypeName": "Sample Text Data",
        "penaltyServiceId": 7,
        "penaltyServiceName": "Sample Text Data",
        "chargeRemainder": true,
        "termRenewalTypeId": 0,
        "termRenewalTypeName": "Sample Text Data",
        "renewTermId": 24,
        "renewTermName": "Sample Text Data",
        "revokeDiscounts": true,
        "details": {
            "termPenalties": [
                {
                    "identity": 91,
                    "termId": 28,
                    "termName": "Sample Text Data",
                    "currencyId": 39,
                    "currencyName": "Sample Text Data",
                    "amount": 22.28,
                    "currencyCode": "Sample Text Data"
                }
            ]
        }
    }
}
PATCHTerm/{id}
Update or Add the Term 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 Term object.
Update or Add the Term object and optionally make changes to any child objects.
PATCH Term/{id}

{
    "details": {},
    "terms": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "name": "12 months",
                "isActive": true,
                "frequency": "1",
                "frequencyTypeId": 23,
                "penaltyServiceId": 10,
                "chargeRemainder": true,
                "termRenewalTypeId": 12,
                "renewTermId": 11,
                "revokeDiscounts": true
            }
        ]
    }
}
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": "term",
                "instance": {
                    "identity": 1,
                    "ownerId": 23,
                    "ownerName": "Sample Text Data",
                    "name": "12 months",
                    "isActive": true,
                    "frequency": "1",
                    "frequencyTypeId": 8,
                    "frequencyTypeName": "Sample Text Data",
                    "penaltyServiceId": 18,
                    "penaltyServiceName": "Sample Text Data",
                    "chargeRemainder": true,
                    "termRenewalTypeId": 15,
                    "termRenewalTypeName": "Sample Text Data",
                    "renewTermId": 18,
                    "renewTermName": "Sample Text Data",
                    "revokeDiscounts": true
                }
            }
        ]
    }
}
POSTTerm/
Create a new instance of the Term object.
Create a new instance of the Term object.
POST Term/

{
    "name": "12 months",
    "isActive": true,
    "frequency": "1",
    "frequencyTypeId": 15,
    "penaltyServiceId": 14,
    "chargeRemainder": true,
    "termRenewalTypeId": 10,
    "renewTermId": 10,
    "revokeDiscounts": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 2,
                "ownerName": "Sample Text Data",
                "name": "12 months",
                "isActive": true,
                "frequency": "1",
                "frequencyTypeId": 16,
                "frequencyTypeName": "Sample Text Data",
                "penaltyServiceId": 19,
                "penaltyServiceName": "Sample Text Data",
                "chargeRemainder": true,
                "termRenewalTypeId": 14,
                "termRenewalTypeName": "Sample Text Data",
                "renewTermId": 26,
                "renewTermName": "Sample Text Data",
                "revokeDiscounts": true
            }
        ]
    }
}
PUTTerm/{id}
Update an existing instance of the Term object.
Update an existing instance of the Term object.
PUT Term/{id}

{
    "identity": 1,
    "name": "12 months",
    "isActive": true,
    "frequency": "1",
    "frequencyTypeId": 8,
    "penaltyServiceId": 21,
    "chargeRemainder": true,
    "termRenewalTypeId": 8,
    "renewTermId": 4,
    "revokeDiscounts": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 22,
                "ownerName": "Sample Text Data",
                "name": "12 months",
                "isActive": true,
                "frequency": "1",
                "frequencyTypeId": 22,
                "frequencyTypeName": "Sample Text Data",
                "penaltyServiceId": 23,
                "penaltyServiceName": "Sample Text Data",
                "chargeRemainder": true,
                "termRenewalTypeId": 27,
                "termRenewalTypeName": "Sample Text Data",
                "renewTermId": 26,
                "renewTermName": "Sample Text Data",
                "revokeDiscounts": true
            }
        ]
    }
}