Rainforest
Board merchants to Rainforest through Preczn, track each application through approval, and migrate stored payment tokens to Rainforest.
Overview
Preczn submits each merchant's application to Rainforest and reports every status change to your platform. Payments don't route through Preczn.
Merchant onboarding
| Capability | Supported | Details |
|---|---|---|
| Merchant onboarding | ✓ Yes | Jump to Onboarding a merchant |
| Onboarding through the API | ✓ Yes | Jump to Onboarding a merchant |
| Merchant import | ✗ No |
Transactions
| Capability | Supported | Details |
|---|---|---|
| Card transactions | ✗ No | |
| Apple Pay transactions | ✗ No | |
| Google Pay transactions | ✗ No | |
| ACH transactions | ✗ No | |
| Transaction import | ✗ No |
Tokens and lending
| Capability | Supported | Details |
|---|---|---|
| Token migration | ✓ Yes | Jump to Migrating tokens |
| Lending | ✗ No |
Configuring the platform connection
Ask Rainforest to enable direct API data
Before you board merchants through Preczn, ask Rainforest support or your account manager to approve your platform for the following data through a direct API integration:
- Personally identifiable information (PII) for owners, which Preczn sends with each application
- Full bank account numbers, which Preczn uses to create the merchant's deposit method
- Full card and bank account numbers for stored payment tokens, if you migrate tokens to Rainforest (see the Migrating tokens section)
In the Dashboard, go to Connections → Add Connection and select Rainforest. For the general steps, see Add a connection to your platform.
| Dashboard field | Required | Description |
|---|---|---|
| API-Key | Yes | Your Rainforest API key, from the Developers section of the Rainforest Portal. |
| Preczn Webhook URL | Not applicable | The URL that Rainforest sends status updates to. |
| Webhook Signing Secret | Yes | The signing secret that Rainforest shows when you create the webhook. |
Preczn generates the Preczn Webhook URL. Copy it into Rainforest as described in the Webhooks section.
Click Verify connection to check the API key, and then click Connect. Preczn checks the API key with Rainforest in the environment that matches your mode: the Rainforest sandbox in Test mode, and Rainforest production in Live mode.
Preczn doesn't check the signing secret
Preczn doesn't confirm the signing secret with Rainforest when you save the connection. If the secret doesn't match the secret of your Rainforest webhook, Preczn ignores every update that Rainforest sends, and your merchants' connections stay in Sent. Copy the secret from the same webhook that uses your Preczn Webhook URL.
Webhooks
Rainforest sends merchant and application status updates to Preczn through a webhook. Set it up in the Rainforest Portal while you add the connection in Preczn:

- In the Preczn connection drawer, click the copy icon next to Preczn Webhook URL. The copy icon copies the whole URL.
- In the Rainforest Portal, go to Developers → Webhooks and create a webhook.
- Paste the Preczn Webhook URL as the endpoint.
- Under Subscribe to events, select every
merchantandmerchant_applicationevent, and then create the endpoint. - Copy the webhook's signing secret before you leave Rainforest.
- In Preczn, paste the secret into Webhook Signing Secret, and then verify and save the connection.
Linking an existing account
If a merchant already has a Rainforest account, link it instead of boarding the merchant again. A merchant has one connection for each processor, so you link one Rainforest account to each merchant. For a business with two Rainforest accounts, see Merchants and Connections.
To link the account, give Preczn the merchant's Rainforest merchant ID. You don't need the entity ID.
Choose how you'll link the account. Select the Dashboard tab or the API tab.
- In Merchant Vault, open the merchant.
- Under Connections, select Rainforest.
- Click Edit, and enter the Rainforest merchant ID in Merchant ID.
- Click Verify connection. If Rainforest returns the merchant, the drawer shows Credentials successfully verified and takes the connection's status from the merchant's current Rainforest status. Otherwise, it shows Verification failed.
- Click Save changes.
Send the merchant ID as mid with PATCH /v1/merchants/{merchantId}/connections/Rainforest:
{
"mid": "{rainforestMerchantId}"
}Preczn looks up the merchant in Rainforest with your platform's API key and sets the connection's status from the merchant's current Rainforest status. If Rainforest doesn't return the merchant, the request returns 400 and Preczn doesn't save the merchant ID.
For what each status means, see the Merchant status section.
Onboarding a merchant
You send the merchant's data to Preczn with a boarding form or through the API. Preczn checks it against your Rainforest requirements template. When the data is complete, Preczn creates the merchant and application at Rainforest, submits the application, and reports each status change to your platform.
This diagram shows what happens after you send the onboard request for a Rainforest merchant.
sequenceDiagram
participant H as Your platform
participant P as Preczn
participant R as Rainforest
autonumber
H->>P: Onboard request (or submit boarding form)
P-->>H: Status Queued
P->>R: Create merchant and application
P->>R: Add bank account and deposit routes
P->>R: Send voided check (if uploaded)
P->>R: Submit application with terms acceptance
P-->>H: merchant.updated (Sent)
loop On each Rainforest status change
R-->>P: Rainforest webhook
P-->>H: merchant.updated
end
Required merchant data
Preczn checks each merchant against your Rainforest requirements template. Until a merchant meets every requirement, its Rainforest connection stays in Requirements, and missingRequiredData lists what's missing. For how requirements are evaluated, see Onboarding data requirements.
Beyond the business, owner, and banking data in the template, Rainforest uses two items that are specific to this connection:
| Item | Required | Where it's set |
|---|---|---|
| Terms and conditions acceptance | Yes | Boarding form terms step, or the connection through the API. See the Terms and conditions section. |
| Voided check | Optional by default | Boarding form attachment, or the bank account's documents through the API. See the Voided check section. |
Terms and conditions
Preczn requires a record that the merchant accepted the terms before it boards the merchant. Preczn stores the record on the merchant's Rainforest connection and sends it to Rainforest when it submits the application.
| API field | Required | Description |
|---|---|---|
connectionspecificRequirements.tosVersion | Yes | The URL of the terms that the merchant accepted. |
connectionspecificRequirements.tosDate | Yes | The date the merchant accepted, as YYYY-MM-DD. |
connectionspecificRequirements.tosIp | No | The IP address that the merchant accepted from, sent when set. |
The connection can't reach Ready until tosVersion and tosDate are set. Unless you set your own terms URL, the terms are Rainforest's standard processing terms.
Voided check
When the merchant has a voided check for the bank account that Preczn boards, Preczn sends the check to Rainforest and attaches it to the application's bank account verification before it submits the application. Preczn boards the account marked as primary, or the first account if none is marked.
- Optional by default. Preczn sends a voided check whenever the merchant uploaded one, even when your template doesn't require it.
- Required on request. To require it, set
voidedChecktotruein thedocumentRequirementsof your Rainforest requirements template. A required voided check applies to every bank account on the merchant. - Accepted files. PDF, JPEG, or PNG, up to 5 MB, and not password-protected.
- Sent once per application. Preczn sends the check only while the Rainforest application is still open. After Rainforest has the file, Preczn doesn't upload it again.
Merchants upload the voided check as a banking attachment on the boarding form. Through the API, upload it with POST /v1/merchants/{merchantId}/bankaccounts/{bankId}/documents?type=voidedCheck.
Boarding stops if the voided check doesn't reach RainforestIf Preczn tries to send the voided check and fails, it doesn't submit the application. The connection moves to Error, and
actionDescriptionsays what to fix, such as uploading a copy without a password. Fix the problem, and then onboard the merchant again.
Collecting the merchant's data
You can collect Rainforest merchants' data, including the terms acceptance, through the API as well as the boarding form. With the API, your platform also handles the shared requirements and the Rainforest work on the API tab.
Choose how you'll collect the merchant's data. Select the Boarding form tab or the API tab.
When a boarding form includes Rainforest, the form's terms step shows a link to the terms and a checkbox. When the merchant agrees, the form saves the terms URL as tosVersion, along with tosDate and tosIp. The form shows the terms step only when the form's Show T&C setting is on.
To show your own terms, set Terms of Service URL on the form template. If you leave it unset, the form links to Rainforest's standard terms.
For general form setup, see Boarding forms.
Don't send an empty Terms of Service URLIf you create a form template through the API, leave
tosUrlout of the request or set it to a full URL. A template with an empty string ("tosUrl": "") replaces Rainforest's standard terms with a blank link, and the form then saves notosVersion. The merchant's connection stays in Requirements after the merchant submits the form.
When the form includes Rainforest, it also enforces items 2 and 3 on the API tab, applying the amount minimums when it shows those fields, and it locks the ownership percentage at 100 for sole proprietors and at 0 for nonprofits and government entities.
Follow the shared sequence in Board through the API. In addition to the shared requirements, your platform must do the following for each Rainforest merchant:
- Show the terms and send their URL. Show the merchant Rainforest's standard terms, or your own terms, and record the URL of the terms you showed as
tosVersion, withtosDateand, if you have it,tosIp. - Send amounts of at least $1.00. Send
averageTicket,highTicket, andannualSaleVolumeas100or more. Amounts are in cents, so100is $1.00. - Give each owner at least 25% for corporations, LLCs, and partnerships. For these business types, send
ownershipPercentof at least25for every owner.
Preczn doesn't check items 2 and 3 through the API. The hosted form enforces them, applying each amount minimum when it shows that field.
To show Rainforest's standard terms in your signup flow, record the acceptance after the merchant accepts, with the URL of those terms, using PATCH /v1/merchants/{merchantId}/connections/Rainforest:
{
"connectionspecificRequirements": {
"tosVersion": "https://legal.rainforestpay.com/rainforest_processing_terms_and_conditions.pdf",
"tosDate": "{YYYY-MM-DD}",
"tosIp": "203.0.113.24"
}
}How Preczn sends your data
Preczn adjusts some values to meet Rainforest's rules. If a value in Rainforest looks different from what you sent, check the following:
- The merchant name includes your external ID. Preczn sends Rainforest's merchant name as
{merchant name} | {externalId} | PCZN, up to 100 characters, such as{merchant name} | {externalId} | PCZN. If the merchant has no external ID, that part is blank, as in{merchant name} | | PCZN. If the result is longer than 100 characters, Preczn shortens the merchant name and ends it with.... Preczn sends the DBA name unchanged. - Rainforest receives a monthly volume. Preczn divides
annualSaleVolumeby 12 and sends the result as the average monthly volume. If that result is less thanaverageTicket, Preczn sends the average ticket instead. - Owners depend on the business type. For an LLC or a partnership, Preczn sends every owner with their ownership percentage, rounded down to a whole number. For every other business type, Preczn sends only the owner marked as the primary representative, or the first owner if none is marked, without an ownership percentage.
- Sole proprietors are sent without a tax ID.
- One bank account is boarded. Preczn sends the account marked as primary, or the first account if none is marked, as a business checking or savings account.
Optional boarding settings
The following settings change how Rainforest bills the merchant or add underwriting data. Set each one on the merchant before boarding starts. If a form's auto-transmit setting is on, set them before you create the form, because boarding starts as soon as the merchant submits it. A form takes its template's Auto Transmit Merchant Data setting unless you set Auto-transmit merchant data when you create the form.
Billing profile
A Rainforest billing profile defines the fees and rates that Rainforest bills the merchant. If you don't choose one, Rainforest applies its default. Confirm your default profile with Rainforest.
To assign a different profile, set its Rainforest ID as the first item in billingGroups on the merchant's Rainforest connection. Preczn sends only the first item. In the example below, PATCH /v1/merchants/{merchantId}/connections/Rainforest assigns a billing profile other than the default:
{
"connectionspecificRequirements": {
"billingGroups": ["{rainforestBillingProfileId}"]
}
}Billing type
Rainforest supports two billing types:
NET: Preczn sets up the merchant's bank account for payouts only.GROSS: Preczn sets up the merchant's bank account for both payouts and Rainforest's fee billing. Both use the same account.
If you don't set a billing type, Rainforest applies its default, and Preczn sets up the bank account for the billing type that Rainforest assigned. To override the default for a merchant, set billingType on the merchant's Rainforest connection. The value is case-sensitive. In the example below, PATCH /v1/merchants/{merchantId}/connections/Rainforest bills the merchant on NET:
{
"connectionspecificRequirements": {
"billingType": "NET"
}
}Additional underwriting data
When you move merchants to Rainforest from another payment provider, Rainforest may ask for additional underwriting data. Preczn sends it from the saasData and transactionVolumeSnapshot objects on the merchant record. You can include both objects when you create the merchant, or add them later.
In the example below, PATCH /v1/merchants/{merchantId} sends the merchant's subscription and recent payment volume:
{
"saasData": {
"startDate": "{startDateUtc}",
"billing": {
"amount": 20025,
"frequency": "MONTHLY",
"currency": "USD"
}
},
"transactionVolumeSnapshot": {
"allPaymentMethods": {
"last30Days": 250075,
"last180Days": 10050025
}
}
}Set the two objects as follows:
- Send every amount as a whole number of cents. For example, send $2,500.75 as
250075. - Send
saasData.startDateas a UTC timestamp in the formatYYYY-MM-DDThh:mm:ssZ. Preczn sends Rainforest only the date. - Set
saasData.billing.frequencytoONE_TIME,WEEKLY,MONTHLY,ANNUAL, orOTHER. - Set
saasData.billing.currencytoUSD.
To check that Rainforest received the data when you test, confirm with Rainforest.
How Preczn checks status
Rainforest pushes each status change to Preczn through the webhook you set up in the Webhooks section. Preczn doesn't poll Rainforest, so a change reaches Preczn only when Rainforest sends it. For how you receive status changes, see Status updates.
Merchant status
A Rainforest connection moves through the following Preczn statuses. For Unconfigured and Evaluating, see Connection statuses.
| Preczn status | What it means | What to do |
|---|---|---|
| Requirements | The merchant is missing required data. | Collect the missing data. |
| Ready | The merchant meets every requirement. | Onboard the merchant. |
| Queued | Preczn accepted the onboard request and hasn't submitted the application yet. | Wait. |
| Sent | Preczn submitted the application to Rainforest. | Wait for Rainforest's review. |
| Underwriting | Rainforest is processing the application or onboarding the merchant. | Wait. |
| Inquiry | Rainforest is reviewing the application manually. | Wait. Rainforest may contact you. |
| RFI | Rainforest needs more information. | Work with Rainforest directly. See the Responding to an RFI section. |
| Active | Rainforest approved the merchant. | None. |
| Rejected | Rainforest declined the application. | Contact Rainforest for details. |
| Cancelled | The merchant was canceled in Rainforest. | None. |
| Closed | The merchant was deactivated in Rainforest. | None. |
| Disabled | You linked a merchant whose Rainforest account is suspended. | Contact Rainforest. |
| Error | Preczn couldn't create, update, or submit the application. | Fix the problem, and then onboard the merchant again. |
For Requirements, missingRequiredData lists what's missing. A linked merchant whose Rainforest account is pending also shows this status. For Error, actionDescription says why.
If any step fails, Preczn stops before it submits the application. When you onboard again after an Error, Preczn updates the existing Rainforest application instead of creating a second one.
Responding to an RFI
Your platform and the merchant resolve a Rainforest request for information (RFI) with Rainforest directly, using Rainforest's own tools. Preczn can't send documents that Rainforest asks for.
To respond with changed data, see Responding to an RFI. Preczn sends the changed data to the existing Rainforest application and submits it again. The connection then moves to Sent, or to Error if Rainforest rejects the submission. Confirm with Rainforest whether the resubmission resolves the request. After Rainforest has what it needs, it sends Preczn the new status, and Preczn sends you a merchant.updated webhook.
Migrating tokens
Preczn can export a merchant's stored card and bank account tokens to Rainforest, so the merchant's customers don't have to enter their payment details again. To start an export, contact Preczn. For the overall process and the export report, see Token migration and the Token export guide.
Before Preczn runs an export, confirm the following:
- The merchant has a Rainforest connection with a Rainforest merchant ID. Board the merchant first, or link an existing Rainforest merchant. See the Linking an existing account section.
- Rainforest approved your platform for full card and bank account numbers. See the warning at the top of the Configuring the platform connection section.
For each token, Preczn creates a payment method in Rainforest under that merchant. Preczn includes the customer's name, email, phone, and billing address when the token has them. The export report shows the result for each token:
- Preczn skips a token that it already exported to Rainforest, so running the export again doesn't create duplicates.
- Preczn skips tokens that aren't cards or bank accounts.
- A card token without an expiration date fails.
- If Rainforest rejects a token, the report includes Rainforest's error.
In Test mode, Preczn exports tokens to the Rainforest sandbox.
Testing in the sandbox
In Test mode, Preczn sends applications to the Rainforest sandbox with your test connection's API key. Set up a separate webhook in the Rainforest sandbox that uses the same Preczn Webhook URL, and enter that webhook's signing secret on your test connection. Preczn uses the Rainforest platform ID on each update to tell sandbox updates from live ones.
FAQ
Can I process payments through Rainforest with Preczn?
No. Preczn boards merchants to Rainforest, tracks their status, and migrates stored payment tokens to Rainforest. Rainforest payments don't route through Preczn.
Why is the connection still in Requirements after the merchant submitted the boarding form?
The merchant's terms acceptance wasn't saved. Check missingRequiredData on the merchant. If it lists connectionspecificRequirements.tosVersion or connectionspecificRequirements.tosDate, one of two causes is common:
- The form's Show T&C setting is off, so the form had no terms step.
- The form's template has an empty
tosUrl. See the Boarding form tab of the Collecting the merchant's data section.
Why does the connection stay in Sent?
Preczn isn't receiving Rainforest's updates. Check that the webhook in Rainforest uses your Preczn Webhook URL, is subscribed to every merchant and merchant_application event, and has the same signing secret as your Preczn connection. See the Webhooks section.
The connection is in Error after a voided check problem. Do I have to resubmit the whole application?
No. Fix the file as actionDescription describes, and then onboard the merchant again. Preczn updates the existing Rainforest application, sends the voided check, and submits the application.
Updated 11 minutes ago
