Link existing credentials

Link a merchant that already has a processor account to Preczn by adding its existing credentials, in the Dashboard or through the API.

Link existing credentials when a merchant already has an account with a processor, opened outside Preczn. You add the merchant's credentials for that account to its connection, and Preczn starts routing the merchant's transactions to it. The merchant doesn't board again.

📘

Linking, boarding, or managing?

Each one starts from a different situation:

  • The merchant already has an account with the processor: link its credentials, on this page.
  • The merchant has no account with the processor yet: board the merchant. See Choose a boarding method.
  • The connection exists, but its status is wrong or the merchant needs to start over: see Manage a merchant's connection.

Link credentials when you:

  • Move merchants to Preczn that already process with a provider.
  • Add merchants that boarded directly with a processor before they used Preczn.
  • Use a direct connection, where each merchant always has its own account with the processor.

Before you start

  • Add the processor as a connection on your platform. See Add a connection to your platform.
  • Get the merchant's credentials from the processor. The connection's guide lists which credentials it needs, what the processor calls them, and where to find them. Supported connections links every guide.
  • Match the mode. A test-mode merchant needs the processor's sandbox credentials, and a live-mode merchant needs production credentials. See Live vs. test mode.

How Preczn checks credentials

When you submit credentials, Preczn:

  1. Checks that every field the connection requires is present.
  2. Sends the credentials to the processor to verify them.
  3. Saves them only if the processor accepts them, and sets the connection's status, usually Active.

If the processor rejects them, Preczn returns an error and saves nothing, so the connection keeps its previous credentials.


Link credentials

Select the Dashboard tab or the API tab.

For an existing merchant:

  1. In the left navigation, select Merchant Vault.
  2. Select the merchant.
  3. In the CONNECTIONS section, select the connection.
  4. Select Edit.
  5. Enter the merchant's credentials.
  6. If the drawer shows Verify connection, select it. You can save only after the check passes.
  7. Select Save changes.

While you create a merchant: select each connection the merchant uses, enter its credentials, and select Save Connection. A Save to Verify Credentials notice stays visible until you save. See Creating merchants.


Update credentials

Use the same steps to change credentials, for example when the merchant rotates a key.

  • Dashboard: stored credentials appear masked, such as ****5678. Leave a masked field as it is to keep its stored value, and enter only the values you're changing.
  • API: send the connection's full set of credentials, with the new value in place of the old one. A masked value, as the Dashboard shows it, keeps the stored credential instead of replacing it.

Preczn checks the new credentials before it saves anything, so a rejected update leaves the existing credentials in place.


Credential fields

Every connection uses some of these fields. Which ones, and what the processor calls each, varies by connection, so check the connection's guide.

FieldWhat it holds
midMerchant ID assigned by the processor
keyAPI key or public key
secretAPI secret or private key
environmentProcessor environment
achMidMerchant ID for ACH transactions
applicationIdApplication ID
urlPrefixSite URL prefix, for connections that use one

mid, key, secret, achMid, and urlPrefix can't contain spaces.


Errors

Errors return the standard error response:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Invalid connection credentials. Please update credentials and submit again."
}
StatusmessageCause
400Merchant id is required in pathmerchantId was empty.
400Connection id is required in pathconnectionId was empty.
400<Connection> requires fields : midA field the connection requires was missing. The list after the colon names them.
400Invalid connection credentials. Please update credentials and submit again.The processor rejected the credentials. Nothing was saved.
400verify required fields not supported for this processor.The connection does not support credential verification through this endpoint.
401UnauthorizedThe API key's mode doesn't match the merchant's, such as a test key used on a live merchant.
403NoneThe API key belongs to a different platform than the merchant.
404Merchant Not FoundNo merchant with that ID.
404Connection not found!The merchant has no connection matching connectionId.

Did this page help you?