Secure Payments API – PUT Customers Add Checking Account

General

Linking a customer checking account to a customer is one of the customer options available through the Secure Payments (formerly PCI Wallet) API.

To link the checking account to the customer, send a PUT to the endpoint:

PUT https://pciwallet.simnang.com/api/customers/{Customer ID}/add-checking-account

Replace {Customer ID} with the customer's ID in the header.

This will associate a customer with an existing checking account token.

Here's a sample JSON payload:

{
"checking-account": {
"token": "YOUR TOKEN"
}
}

And a cURL sample:

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"checking-account": { \
"token": "YOUR TOKEN" \
} \
}' 'https://pciwallet.simnang.com/api/customers/12/add-checking-account'
When you create a payment profile (ex: credit card, checking account, etc.) in Secure Payments, a token will be generated for that payment profile. Make sure to record this token as you cannot access it again. This token will be needed if you wish to use this payment profile through the API in Secure Payments.

The response will just tell you that the result was "true," meaning the checking account payment profile has been linked to the customer:

{
"result": true
}

You can try it out for yourself in our ReadMe article: Add Chk Acct to Customer


How did we do?


Powered by HelpDocs (opens in a new tab)