TAG LINE
TAG LINE
SMALL TITLE

Payment / Term

(API Version v5)


Specfies how many days that a customer has to pay an invoice. For example Net30.


What can you do with PaymentTerm?


Properties

Property Details
identity
READ-ONLY
"identity": 27
Type: Number
This is the unique numeric identifier for the PaymentTerm
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": "Net30"
Type: String
User defined name for the Payment Term.
paymentTermTypeId
"paymentTermTypeId": 18
Type: Number
Unique identifier for the associated PaymentTermType object.
paymentTermTypeName
"paymentTermTypeName": "Sample Name"
Type: String
The name of the object associated with the paymentTermTypeId property.
value
"value": 17
Type: Number
Number of days


End Points

DELETEPayment/Term/{id}
Delete an instance of the PaymentTerm 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 PaymentTerm object.
Delete an instance of the PaymentTerm object.
DELETE Payment/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": "paymentTerm"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETPayment/Term/
Retrieve all of the PaymentTerm objects.
Retrieve all of the PaymentTerm objects.
GET Payment/Term/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 3,
            "ownerName": "Sample Text Data",
            "name": "Net30",
            "paymentTermTypeId": 1,
            "paymentTermTypeName": "Sample Text Data",
            "value": 9
        }
    ]
}
GETPayment/Term/Paged
Retrieve all of the PaymentTerm 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 PaymentTerm objects in a paged fashion.
GET Payment/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": 22,
                "ownerName": "Sample Text Data",
                "name": "Net30",
                "paymentTermTypeId": 6,
                "paymentTermTypeName": "Sample Text Data",
                "value": 15
            }
        ]
    }
}
GETPayment/Term/{id}
Retrieve an instance of the PaymentTerm object by its ID.
{id}Unique identifier for the PaymentTerm object.
Retrieve an instance of the PaymentTerm object by its ID.
GET Payment/Term/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 0,
        "ownerName": "Sample Text Data",
        "name": "Net30",
        "paymentTermTypeId": 23,
        "paymentTermTypeName": "Sample Text Data",
        "value": 13
    }
}
POSTPayment/Term/
Create a new instance of the PaymentTerm object.
Create a new instance of the PaymentTerm object.
POST Payment/Term/

{
    "name": "Net30",
    "paymentTermTypeId": 9,
    "value": 6
}
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": "Net30",
                "paymentTermTypeId": 27,
                "paymentTermTypeName": "Sample Text Data",
                "value": 27
            }
        ]
    }
}
PUTPayment/Term/{id}
Update an existing instance of the PaymentTerm object.
Update an existing instance of the PaymentTerm object.
PUT Payment/Term/{id}

{
    "identity": 1,
    "name": "Net30",
    "paymentTermTypeId": 21,
    "value": 1
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 17,
                "ownerName": "Sample Text Data",
                "name": "Net30",
                "paymentTermTypeId": 24,
                "paymentTermTypeName": "Sample Text Data",
                "value": 24
            }
        ]
    }
}