TAG LINE
TAG LINE
SMALL TITLE

Payment Type

(API Version v6)


User defined Payment Type that is a derivative of a Payment Base Type.


What can you do with PaymentType?


Properties

Property Details
identity
READ-ONLY
"identity": 25
Type: Number
This is the unique numeric identifier for the PaymentType
name
"name": "Bank Draft"
Type: String
User defined name for the Payment Type.
ownerId
READ-ONLY
"ownerId": 25
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.
generalLedgerId
"generalLedgerId": 26
Type: Number
Unique identifier for the associated GeneralLedger object.
generalLedgerName
"generalLedgerName": "Sample Name"
Type: String
The name of the object associated with the generalLedgerId property.
paymentBaseTypeId
"paymentBaseTypeId": 26
Type: Number
Unique identifier for the associated PaymentBaseType object.
paymentBaseTypeName
"paymentBaseTypeName": "Sample Name"
Type: String
The name of the object associated with the paymentBaseTypeId property.
paymentTypeDisbursementTypeId
"paymentTypeDisbursementTypeId": 18
Type: Number
Unique identifier for the associated PaymentTypeDisbursementType object.
paymentTypeDisbursementTypeName
"paymentTypeDisbursementTypeName": "Sample Name"
Type: String
The name of the object associated with the paymentTypeDisbursementTypeId property.
description
"description": "Direct deposit of a Bank Draft"
Type: String
User defined description for the Payment Type.
isActive
"isActive": true
Type: Boolean
Whether or not this Payment Type is active.
paymentGatewayId
"paymentGatewayId": 7
Type: Number
Unique identifier for the associated PaymentGateway object.
paymentGatewayName
"paymentGatewayName": "Sample Name"
Type: String
The name of the object associated with the paymentGatewayId property.
cardTypeId
"cardTypeId": 2
Type: Number
Unique identifier for the associated CardType object.
cardTypeName
"cardTypeName": "Sample Name"
Type: String
The name of the object associated with the cardTypeId property.


End Points

DELETEPaymentType/{id}
Delete an instance of the PaymentType 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 PaymentType object.
Delete an instance of the PaymentType object.
DELETE PaymentType/{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": "paymentType"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETPaymentType/
Retrieve all of the PaymentType objects.
Retrieve all of the PaymentType objects.
GET PaymentType/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "name": "Bank Draft",
            "ownerId": 10,
            "ownerName": "Sample Text Data",
            "generalLedgerId": 21,
            "generalLedgerName": "Sample Text Data",
            "paymentBaseTypeId": 7,
            "paymentBaseTypeName": "Sample Text Data",
            "paymentTypeDisbursementTypeId": 14,
            "paymentTypeDisbursementTypeName": "Sample Text Data",
            "description": "Direct deposit of a Bank Draft",
            "isActive": true,
            "paymentGatewayId": 10,
            "paymentGatewayName": "Sample Text Data",
            "cardTypeId": 18,
            "cardTypeName": "Sample Text Data"
        }
    ]
}
GETPaymentType/Paged
Retrieve all of the PaymentType 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 PaymentType objects in a paged fashion.
GET PaymentType/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,
                "name": "Bank Draft",
                "ownerId": 9,
                "ownerName": "Sample Text Data",
                "generalLedgerId": 8,
                "generalLedgerName": "Sample Text Data",
                "paymentBaseTypeId": 10,
                "paymentBaseTypeName": "Sample Text Data",
                "paymentTypeDisbursementTypeId": 9,
                "paymentTypeDisbursementTypeName": "Sample Text Data",
                "description": "Direct deposit of a Bank Draft",
                "isActive": true,
                "paymentGatewayId": 24,
                "paymentGatewayName": "Sample Text Data",
                "cardTypeId": 11,
                "cardTypeName": "Sample Text Data"
            }
        ]
    }
}
GETPaymentType/{id}
Retrieve an instance of the PaymentType object by its ID.
{id}Unique identifier for the PaymentType object.
Retrieve an instance of the PaymentType object by its ID.
GET PaymentType/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "name": "Bank Draft",
        "ownerId": 27,
        "ownerName": "Sample Text Data",
        "generalLedgerId": 8,
        "generalLedgerName": "Sample Text Data",
        "paymentBaseTypeId": 0,
        "paymentBaseTypeName": "Sample Text Data",
        "paymentTypeDisbursementTypeId": 26,
        "paymentTypeDisbursementTypeName": "Sample Text Data",
        "description": "Direct deposit of a Bank Draft",
        "isActive": true,
        "paymentGatewayId": 20,
        "paymentGatewayName": "Sample Text Data",
        "cardTypeId": 11,
        "cardTypeName": "Sample Text Data"
    }
}
POSTPaymentType/Record
Create a PaymentType that is not associated with a Payment Gateway. PaymentTypes are generally 'auto' created when a payment gateway is configured in the system. This API can be used to create a PaymentType for non-gateway transactions. This would be used when LogiSense Billing is not used to collect the payment, but instead log a record of the payment to reflect the account balances.
Create a PaymentType that is not associated with a Payment Gateway.
POST PaymentType/Record

{
    "name": "Bank Draft",
    "generalLedgerId": 13,
    "paymentBaseTypeId": 1,
    "paymentTypeDisbursementTypeId": 16,
    "description": "Direct deposit of a Bank Draft",
    "isActive": true,
    "paymentGatewayId": 26,
    "cardTypeId": 22
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "name": "Bank Draft",
                "ownerId": 0,
                "ownerName": "Sample Text Data",
                "generalLedgerId": 13,
                "generalLedgerName": "Sample Text Data",
                "paymentBaseTypeId": 17,
                "paymentBaseTypeName": "Sample Text Data",
                "paymentTypeDisbursementTypeId": 24,
                "paymentTypeDisbursementTypeName": "Sample Text Data",
                "description": "Direct deposit of a Bank Draft",
                "isActive": true,
                "paymentGatewayId": 24,
                "paymentGatewayName": "Sample Text Data",
                "cardTypeId": 26,
                "cardTypeName": "Sample Text Data"
            }
        ]
    }
}
PUTPaymentType/Record/{id}
Update the PaymentType record based on the record id
PUTPaymentType/{id}
Update an existing instance of the PaymentType object.
Update an existing instance of the PaymentType object.
PUT PaymentType/{id}

{
    "identity": 1,
    "name": "Bank Draft",
    "generalLedgerId": 20,
    "paymentBaseTypeId": 0,
    "paymentTypeDisbursementTypeId": 15,
    "description": "Direct deposit of a Bank Draft",
    "isActive": true,
    "paymentGatewayId": 7,
    "cardTypeId": 9
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "name": "Bank Draft",
                "ownerId": 8,
                "ownerName": "Sample Text Data",
                "generalLedgerId": 20,
                "generalLedgerName": "Sample Text Data",
                "paymentBaseTypeId": 26,
                "paymentBaseTypeName": "Sample Text Data",
                "paymentTypeDisbursementTypeId": 22,
                "paymentTypeDisbursementTypeName": "Sample Text Data",
                "description": "Direct deposit of a Bank Draft",
                "isActive": true,
                "paymentGatewayId": 4,
                "paymentGatewayName": "Sample Text Data",
                "cardTypeId": 11,
                "cardTypeName": "Sample Text Data"
            }
        ]
    }
}