TAG LINE
SMALL TITLE

Payment Method

(API Version v3)


What can you do with PaymentMethod?


Properties

Property Details
identity
READ-ONLY
"identity": 24
Type: Number
This is the unique numeric identifier for the PaymentMethod
ownerId
READ-ONLY
"ownerId": 26
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": "Hello World"
Type: String
paymentTypeId
"paymentTypeId": 9
Type: Number
Unique identifier for the associated PaymentType object.
paymentTypeName
"paymentTypeName": "Sample Name"
Type: String
The name of the object associated with the paymentTypeId property.
accountId
"accountId": 4
Type: Number
Unique identifier for the associated Account object.
accountName
"accountName": "Sample Name"
Type: String
The name of the object associated with the accountId property.
description
"description": "Hello World"
Type: String
paymentMethodToken
"paymentMethodToken": "Hello World"
Type: String
paymentMethodIdentifier
"paymentMethodIdentifier": "Hello World"
Type: String
isActive
"isActive": true
Type: Boolean
autopay
"autopay": true
Type: Boolean
transactionToken
"transactionToken": "Hello World"
Type: String


Update Request Filters

Update Request Filters are no longer required starting with v4 of the LogiSense Billing API.

When updating an object you use the update request header with the list of properties to update. Then you need only supply the new values in the body of your request. Please note, this header can only be used with PUT or PATCH requests.

Field List:

  • name
  • paymentTypeId
  • accountId
  • description
  • paymentMethodToken
  • paymentMethodIdentifier
  • isActive
  • autopay
  • transactionToken

End Points

DELETEapi/v3/PaymentMethod/{id}
Delete an instance of the PaymentMethod 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 PaymentMethod object.
Delete an instance of the PaymentMethod object.
DELETE api/v3/PaymentMethod/{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": "paymentMethod"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETapi/v3/PaymentMethod/
Retrieve all of the PaymentMethod objects.
Retrieve all of the PaymentMethod objects.
GET api/v3/PaymentMethod/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 16,
            "ownerName": "Sample Text Data",
            "name": "Sample Text Data",
            "paymentTypeId": 6,
            "paymentTypeName": "Sample Text Data",
            "accountId": 15,
            "accountName": "Sample Text Data",
            "description": "Sample Text Data",
            "paymentMethodToken": "Sample Text Data",
            "paymentMethodIdentifier": "Sample Text Data",
            "isActive": true,
            "autopay": true,
            "transactionToken": "Sample Text Data"
        }
    ]
}
GETapi/v3/PaymentMethod/Paged
Retrieve all of the PaymentMethod 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 PaymentMethod objects in a paged fashion.
GET api/v3/PaymentMethod/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": "Sample Text Data",
                "paymentTypeId": 6,
                "paymentTypeName": "Sample Text Data",
                "accountId": 20,
                "accountName": "Sample Text Data",
                "description": "Sample Text Data",
                "paymentMethodToken": "Sample Text Data",
                "paymentMethodIdentifier": "Sample Text Data",
                "isActive": true,
                "autopay": true,
                "transactionToken": "Sample Text Data"
            }
        ]
    }
}
GETapi/v3/PaymentMethod/{id}
Retrieve an instance of the PaymentMethod object by its ID.
{id}Unique identifier for the PaymentMethod object.
Retrieve an instance of the PaymentMethod object by its ID.
GET api/v3/PaymentMethod/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 4,
        "ownerName": "Sample Text Data",
        "name": "Sample Text Data",
        "paymentTypeId": 23,
        "paymentTypeName": "Sample Text Data",
        "accountId": 17,
        "accountName": "Sample Text Data",
        "description": "Sample Text Data",
        "paymentMethodToken": "Sample Text Data",
        "paymentMethodIdentifier": "Sample Text Data",
        "isActive": true,
        "autopay": true,
        "transactionToken": "Sample Text Data"
    }
}
POSTapi/v3/PaymentMethod/BankAccount
Create a Debit type of PaymentMethod.
POSTapi/v3/PaymentMethod/CreditCard
Create a Credit Card type of Payment Method. Used in conjunction with the Spreedly Hosted Payment Page that will tokenize the card info for PCI compliance.
POSTapi/v3/PaymentMethod/Import
Used to Import PaymentMethod objects that have already been created and persisted in Spreedly.
POSTapi/v3/PaymentMethod/{id}/SetAsDefault
Sets the 'AutoPay' to be true for the specified Payment Method. This will automatically turn off 'AutoPay' on any other PaymentMethod for the account. Setting the 'Default' enables AutoPay for the account during billing. It will also present itself as a default payment method in the dropdown list in the Customer Portal.
{id}Unique identifier for the PaymentMethod object.
PUTapi/v3/PaymentMethod/{id}
Update an existing instance of the PaymentMethod object.
Update an existing instance of the PaymentMethod object.
PUT api/v3/PaymentMethod/{id}

{
    "identity": 1,
    "name": "Sample Text Data",
    "paymentTypeId": 10,
    "accountId": 15,
    "description": "Sample Text Data",
    "paymentMethodToken": "Sample Text Data",
    "paymentMethodIdentifier": "Sample Text Data",
    "isActive": true,
    "autopay": true,
    "transactionToken": "Sample Text Data"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "ownerId": 5,
                "ownerName": "Sample Text Data",
                "name": "Sample Text Data",
                "paymentTypeId": 19,
                "paymentTypeName": "Sample Text Data",
                "accountId": 13,
                "accountName": "Sample Text Data",
                "description": "Sample Text Data",
                "paymentMethodToken": "Sample Text Data",
                "paymentMethodIdentifier": "Sample Text Data",
                "isActive": true,
                "autopay": true,
                "transactionToken": "Sample Text Data"
            }
        ]
    }
}