Add Payment Method

Add a payment method

POST https://apis.sandbox.flexshopper.com/v3/paymentMethods/add

Headers

Name
Type
Description

Authorization

string

Authorization token

customer-token

string

Customer's authentication token

Request Body

Name
Type
Required
Description

primary

boolean

Payment method primary status

label

string

Payment method label

ach

object

ACH payment method details.

See "ACH Object"

token

object

Token payment method details.

See "Token Object"

ACH Object

Name
Type
Required
Description

routing

string

Routing number

account

string

Account number

accountType

string

Account type, either 'checking' or 'savings'

Token Object

Name
Type
Required
Description

expirationDate

string

Card expiration date

cardType

string

Card type

(american-express/visa/mastercard/discover)

lastFour

string

Last four digits

firstSix

string

First six digits

token

string

LPP token

billingZip

string

Billing zip code

Example Request

{
  "primary": false,
  "label": "CreditCardTest",
  "token": {
    "expirationDate": "2025-09",
    "cardType": "visa",
    "lastFour": "0067",
    "token": "b219cb1d-669f-464a-a943-cf5c8f176653",
    "billingZip": "20146"
  }
}

Response

Last updated