Assign a merchant to a plan
Give a merchant a routing plan from the dashboard or the API, move merchants in bulk, and schedule moves for a future date.
Assign a merchant to a routing plan so that Preczn chooses a connection for each of the merchant's transactions that doesn't name processor. A merchant has at most one plan. For when to use a plan instead of naming the connection, see Choose a routing method.
If the merchant needs only one connection, you may not need to build a plan. Assign that connection's default plan. See Default plans.
Before you assign
Check that the plan and the merchant meet these requirements:
- The plan is active. To turn a plan back on, see Disable, enable, or delete a plan.
- The plan and the merchant are in the same mode, live or test. See Live vs. test mode.
- The merchant has a connection for every connection in the plan. The Dashboard and the API check this differently, so each tab below states its own rule.
If the merchant is missing a connection, board it or link existing credentials first. See Link existing credentials.
Assign a plan to one merchant
Select the Dashboard tab or the API tab.
In the Dashboard, the merchant needs a connection for every connection in the plan, in any status except Unconfigured. The merchant also can't already be on the plan or have a scheduled move waiting to run.
- Open Merchant Vault.
- Open the Change Merchant Plan drawer in one of two ways:
- In the merchant's row, open the More actions (…) menu and select Change Merchant Plan.
- Open the merchant, and select the link in the Plan field. The link shows the merchant's plan name, or Assign Plan if the merchant has no plan.
- Under DESTINATION PLAN, select the plan. Each plan in the list shows its connections.
- Under WHEN TO MOVE, select Move Now. To move the merchant later, see Schedule a move.
- Select Continue.
- Review the CONFIRM MOVE step, and select Confirm Move.
If the merchant can't move, the drawer lists it with the reason, such as missing credentials or a scheduled move.
In the API, the merchant needs an Active connection for every connection in the plan.
-
Find the plan's ID with
GET /v1/plans. The response lists the plans in your API key's mode, including inactive plans.[ { "id": "{planId}", "name": "{planName}", "active": true, "isTestMode": false, "connections": [ { "id": "{platformConnectionId}", "name": "{connectionName}", "connection": "{processor}" } ] } ]The response is abbreviated. In
connections,nameis the name you gave the connection, andconnectionis the provider. -
Send the plan's ID as
plantoPATCH /v1/merchants/{merchantId}.{ "plan": "{planId}" }{ "id": "{merchantId}", "plan": "{planId}" }The response is the merchant, abbreviated here.
If the request fails, check the error:
| Status | Message | Cause |
|---|---|---|
400 | Plan requires merchant to have active connections with the following: {connections} | The merchant lacks an Active connection for at least one of the plan's connections. The list names all of the plan's connections |
400 | Merchant is 'Live' - can not be assigned to 'Test' plan | The plan is in the other mode |
400 | Target plan is not active! | The plan is inactive |
401 | Unauthorized | The API key and the merchant are in different modes |
404 | Plan Not Found | No plan on your platform has that ID |
Move merchants in bulk
You can move many merchants at once only in the Dashboard.
- Open Merchant Vault.
- Select the merchants. To narrow the list first, see Find merchants.
- Select Move Merchants. The Change Merchant Plan drawer opens and lists the selected merchants with their Active Connections and Current Plan.
- Clear the check box of any merchant you don't want to move.
- Under DESTINATION PLAN, select the plan.
- Under WHEN TO MOVE, select Move Now or Schedule for Later.
The drawer looks like this before you continue:
The Change Merchant Plan drawer with two of three merchants selected.
- Select Continue.
If some merchants can't move, selecting Continue keeps you on this step and lists each one with its reason under "The Following merchants cannot be moved:". Clear those merchants, or fix the cause and try again.
The Change Merchant Plan drawer listing a merchant that can't move.
- Review the CONFIRM MOVE step, and select Confirm Move.
The CONFIRM MOVE step lists the merchants that will move:
The CONFIRM MOVE step of the Change Merchant Plan drawer.
Schedule a move
You can schedule a move only in the Dashboard. Schedule one when a plan change should happen at a set time, such as outside a merchant's business hours.
- In the Change Merchant Plan drawer, under WHEN TO MOVE, select Schedule for Later.
- Enter a Schedule Name. Name it for the change, because the name identifies the move later.
- Set the Date and Time. The time is in your own time zone, and it must be at least 5 minutes from now.
- Select Continue, review the move, and confirm it.
A merchant can have one scheduled move at a time.
Review, edit, or cancel a scheduled move
Scheduled moves are under Routing > Routing Migrations. Each move shows its name, destination plan, number of merchants, and date and time, with a status of SCHEDULED or COMPLETED.
The Routing Migrations page with one scheduled move and one completed move.
- To change a scheduled move, select Edit in its row.
- To cancel a scheduled move, select Edit in its row, then select Cancel Scheduled Move.
- To see what a completed move did, select View in its row.
Next
When the merchant has an active plan and its connections are active, enable the merchant so it can process payments. See Enable or disable a merchant.
Updated 5 days ago
