FlexShopper API
3.0-preview
FlexShopper API
3.0-preview
  • Introduction
  • Integration Guides
    • Medusa
    • Payment Plugin
  • Customer
    • Verify User Exists
    • Deeply Verify User Exists
    • Create User
    • Get Users
    • Get User
    • Create Authorization Token
    • Add Payment Method
      • Get LoanPaymentPro Child Key
      • Get Clover PKMS Key
  • Decision
    • Apply for Spending Limit
  • Lease
    • Create Lease
    • Get Transactions
    • Get Lease By ID
    • Get Transaction By ID
    • Sign Lease
    • Finalize Lease
    • Cancel Items
    • Return Items
    • Confirm Shipment
    • Confirm Receipt
Powered by GitBook
On this page
  • Request
  • Headers
  • Body
  • Response
  • Samples

Was this helpful?

Export as PDF
  1. Customer

Add Payment Method

Add ACH or debit/credit payment method.

POST /v3/paymentMethods/add

Request

The details below help you form your HTTP requests to this endpoint.

Headers

You may need to provide specific headers.

Name
Type
Required
Description

customer-token

string

Customer's authentication token

x-version-override

string

N/A

Body

You must provide a JSON payload.

Name
Type
Required
Description

primary

boolean

N/A

label

string

N/A

ach.routing

string

N/A

ach.account

string

N/A

ach.accountType

string

N/A

token.expirationDate

string

N/A

token.cardType

string

N/A

token.lastFour

string

N/A

token.firstSix

string

N/A

token.token

alternatives

N/A

token.billingZip

string

N/A

Response

The details below help you understand the responses you could get from this endpoint.

Samples

Below are samples of responses, with tabs corresponding to returned status code.

{
    "data": {}
}
{
    "error": {
        "statusCode": 400,
        "code": 11503,
        "message": "Payment method is not primary eligible",
        "data": {}
    }
}
{
    "error": {
        "statusCode": 400,
        "code": 11505,
        "message": "Bank is not accepted",
        "data": {}
    }
}
{
    "error": {
        "statusCode": 400,
        "code": 11506,
        "message": "Bank requires verification",
        "data": {}
    }
}
PreviousCreate Authorization TokenNextGet LoanPaymentPro Child Key

Last updated 1 day ago

Was this helpful?