Skip to content
On this page

The Payment Method Object

The payment method which can be a card or bank payment type.

AttributeDescription
_idID of the payment method.
typeThe type of the payment method on file. Possible values are card, bank.
identifierOptional - custom identifier for external system correlation.
statusThe status of the payment method on file. Possible values are verified, declined.
defaultIf this is the default payment method. Default means that it will pay any bills not specifically assigned a payment method.
assignedBillsA list of bill ID's this payment method was specifically assigned to.
cardCard object
bankBank object

Card Object

AttributeDescription
numberMasked card number.
brandCard brand. Possible values are visa, mastercard, american express, etc.
typeCard type. Possible values are credit, debit.
expDateCard expiration date.

Example Card Response

json
{
  "_id": "580e3e11dec21e861b5a3719",
  "type": "card",
  "identifier": "optional_custom_identifier",
  "status": "verified",
  "default": true,
  "card": {
    "number": "XXXX0005",
    "brand": "american express",
    "type": "credit",
    "expDate": "2019-06-01T12:00:00.000Z"
  },
  "assignedBills": []
}

Bank Object

AttributeDescription
routingNumberMasked routing number.
accountNumberMasked account number.
typeBank account type. Possible values are checking, savings.

Example Bank Response

json
{
  "_id": "580e3e11dec21e861b5a3719",
  "type": "card",
  "identifier": "optional_custom_identifier",
  "status": "verified",
  "default": true,
  "bank": {
    "routingNumber": "XXXX0002",
    "accountNumber": "XXXX0021",
    "type": "checking"
  },
  "assignedBills": []
}

Status

A payment method status.

verified

The payment method on file is verified and eligible to make payments.