TAG LINE
TAG LINE
SMALL TITLE

Payment / Term

(API Version v10)


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": 16
Type: Number
This is the unique numeric identifier for the PaymentTerm
ownerId
READ-ONLY
"ownerId": 24
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": 12
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": 15
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 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 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": 18,
            "ownerName": "Sample Text Data",
            "name": "Net30",
            "paymentTermTypeId": 0,
            "paymentTermTypeName": "Sample Text Data",
            "value": 3
        }
    ]
}
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": 26,
                "ownerName": "Sample Text Data",
                "name": "Net30",
                "paymentTermTypeId": 23,
                "paymentTermTypeName": "Sample Text Data",
                "value": 1
            }
        ]
    }
}
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": 11,
        "ownerName": "Sample Text Data",
        "name": "Net30",
        "paymentTermTypeId": 26,
        "paymentTermTypeName": "Sample Text Data",
        "value": 8
    }
}
POSTPayment/Term/
Create a new instance of the PaymentTerm object.
Create a new instance of the PaymentTerm object.
POST Payment/Term/

{
    "name": "Net30",
    "paymentTermTypeId": 3,
    "value": 12
}
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": "Net30",
                "paymentTermTypeId": 0,
                "paymentTermTypeName": "Sample Text Data",
                "value": 1
            }
        ]
    }
}
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": 20,
    "value": 14
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 27,
                "ownerName": "Sample Text Data",
                "name": "Net30",
                "paymentTermTypeId": 4,
                "paymentTermTypeName": "Sample Text Data",
                "value": 11
            }
        ]
    }
}