PAYMENTS
SIMPLIFIED


Offer all the payment features your
customers want with a fast integration
that limits your PCI scope.

GET STARTED

API Base URLs

  • Production Server

    For processing live transactions

    https://api.payjunction.com

  • Test Server

    For development

    https://api.payjunctionlabs.com

Most Commonly Referred to Articles

POST /plaid/item/public_token/exchange

Create a non-expiring plaidAccessToken. This token should be stored in a persistent manner for future use when creating ACH WEB transactions using POST /transactions, and should be treated similarly to other PayJunction payment tokens, such as vaultId.

See: https://plaid.com/docs/api/tokens/#itempublic_tokenexchange

Parameters

required
name
format
description
* plaidPublicToken  

The public token obtained from the Plaid Link onSuccess callback. This token is ephemeral and expires after 30 minutes. 

See: https://plaid.com/docs/api/tokens/#item-public_token-exchange-request-public-token

See: https://plaid.com/docs/quickstart/glossary/#public-token

* terminalId Valid Terminal Id

This field points to the specific merchant account the token exchange will be processed through.

Must be an ACH terminal.

Example Request

curl -X POST https://api.payjunction.com/plaid/item/public_token/exchange \
-u "login:password" \
-H "Accept: application/json" \
-H "X-PJ-Application-Key: YOUR_PRODUCTION_APP_KEY" \
-d "plaidPublicToken=public-production-1f5c0cbd-1fa8-490f-ab61-1d4e57fb4ec1" \
-d "terminalId=10000"

Response Fields

name
description
plaidAccessToken

Non-expiring token associated with the user's bank account.

See: https://plaid.com/docs/api/tokens/#item-public_token-exchange-response-access-token

accountMask

The last 2-4 characters of the user's bank account number.

Not all institutions provide this value, in which case this field will not be present.

See: https://plaid.com/docs/api/products/auth/#auth-get-response-accounts-mask

accountType

"CHECKING" or "SAVINGS".

bankName

The name of the bank for this account.

If we are unable to determine the name of the bank, this field will not be present.

Example Responses

{
"plaidAccessToken" : "access-production-1f5c0cbd-1fa8-490f-ab61-1d4e57fb4ec1",
"accountMask" : "4567",
"accountType" : "CHECKING",
"bankName" : "Citizens Bank Na"
}
{
"plaidAccessToken" : "access-production-1f5c0cbd-1fa8-490f-ab61-1d4e57fb4ec1",
"accountType" : "CHECKING"
}