TAG LINE
TAG LINE
SMALL TITLE

Payment Type

(API Version v8)


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": 24
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": 2
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": 21
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": 2
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": 11
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": 20
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": 15
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.
paymentProviderId
"paymentProviderId": 10
Type: Number
Unique identifier for the associated PaymentProvider object.
paymentProviderName
"paymentProviderName": "Sample Name"
Type: String
The name of the object associated with the paymentProviderId 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 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 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": 0,
            "ownerName": "Sample Text Data",
            "generalLedgerId": 23,
            "generalLedgerName": "Sample Text Data",
            "paymentBaseTypeId": 27,
            "paymentBaseTypeName": "Sample Text Data",
            "paymentTypeDisbursementTypeId": 12,
            "paymentTypeDisbursementTypeName": "Sample Text Data",
            "description": "Direct deposit of a Bank Draft",
            "isActive": true,
            "paymentGatewayId": 3,
            "paymentGatewayName": "Sample Text Data",
            "cardTypeId": 3,
            "cardTypeName": "Sample Text Data",
            "paymentProviderId": 20,
            "paymentProviderName": "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": 27,
                "ownerName": "Sample Text Data",
                "generalLedgerId": 23,
                "generalLedgerName": "Sample Text Data",
                "paymentBaseTypeId": 15,
                "paymentBaseTypeName": "Sample Text Data",
                "paymentTypeDisbursementTypeId": 4,
                "paymentTypeDisbursementTypeName": "Sample Text Data",
                "description": "Direct deposit of a Bank Draft",
                "isActive": true,
                "paymentGatewayId": 15,
                "paymentGatewayName": "Sample Text Data",
                "cardTypeId": 25,
                "cardTypeName": "Sample Text Data",
                "paymentProviderId": 0,
                "paymentProviderName": "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": 19,
        "ownerName": "Sample Text Data",
        "generalLedgerId": 2,
        "generalLedgerName": "Sample Text Data",
        "paymentBaseTypeId": 26,
        "paymentBaseTypeName": "Sample Text Data",
        "paymentTypeDisbursementTypeId": 25,
        "paymentTypeDisbursementTypeName": "Sample Text Data",
        "description": "Direct deposit of a Bank Draft",
        "isActive": true,
        "paymentGatewayId": 26,
        "paymentGatewayName": "Sample Text Data",
        "cardTypeId": 19,
        "cardTypeName": "Sample Text Data",
        "paymentProviderId": 10,
        "paymentProviderName": "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": 15,
    "paymentBaseTypeId": 1,
    "paymentTypeDisbursementTypeId": 15,
    "description": "Direct deposit of a Bank Draft",
    "isActive": true,
    "paymentGatewayId": 19,
    "cardTypeId": 17,
    "paymentProviderId": 24
}
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": 4,
                "ownerName": "Sample Text Data",
                "generalLedgerId": 1,
                "generalLedgerName": "Sample Text Data",
                "paymentBaseTypeId": 27,
                "paymentBaseTypeName": "Sample Text Data",
                "paymentTypeDisbursementTypeId": 10,
                "paymentTypeDisbursementTypeName": "Sample Text Data",
                "description": "Direct deposit of a Bank Draft",
                "isActive": true,
                "paymentGatewayId": 18,
                "paymentGatewayName": "Sample Text Data",
                "cardTypeId": 12,
                "cardTypeName": "Sample Text Data",
                "paymentProviderId": 5,
                "paymentProviderName": "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": 5,
    "paymentBaseTypeId": 12,
    "paymentTypeDisbursementTypeId": 17,
    "description": "Direct deposit of a Bank Draft",
    "isActive": true,
    "paymentGatewayId": 26,
    "cardTypeId": 22,
    "paymentProviderId": 21
}
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": 3,
                "ownerName": "Sample Text Data",
                "generalLedgerId": 26,
                "generalLedgerName": "Sample Text Data",
                "paymentBaseTypeId": 14,
                "paymentBaseTypeName": "Sample Text Data",
                "paymentTypeDisbursementTypeId": 21,
                "paymentTypeDisbursementTypeName": "Sample Text Data",
                "description": "Direct deposit of a Bank Draft",
                "isActive": true,
                "paymentGatewayId": 5,
                "paymentGatewayName": "Sample Text Data",
                "cardTypeId": 4,
                "cardTypeName": "Sample Text Data",
                "paymentProviderId": 26,
                "paymentProviderName": "Sample Text Data"
            }
        ]
    }
}