Pairing
Pairing is the process of establishing a secure, encrypted connection between a distributor and a retailer in Brother POS. It uses a simple 6-character code that the distributor generates and shares with the retailer. Once paired, both parties can exchange catalogs, orders, and invoices through encrypted channels.
Prerequisites
For Distributors
- Your store must be in distributor mode.
- The Retailer Connections feature must be enabled.
- Your store must have encryption keys generated (done automatically on first use).
For Retailers
- The Distributor Ordering feature must be enabled.
- Your store must have encryption keys generated (done automatically on first use).
Generating a Pairing Code (Distributor)
- Log in to the Brother POS Admin Panel.
- Navigate to B2B > Retailer Connections.
- Click Generate Pairing Code.
- A 6-character alphanumeric code is generated and displayed.
The pairing code is a lookup key, not a container for embedded data. When generated, the distributor's information is registered on the relay server:
| Registered Data | Purpose |
|---|---|
| Distributor connection ID | Uniquely identifies your store |
| Distributor Public Key | Allows the retailer to encrypt messages to you |
When a retailer enters the code, Brother POS looks up the corresponding information from the relay server to establish the secure connection.
Pairing codes are valid for a limited time. If the code expires before the retailer uses it, generate a new one. Expired codes cannot be reused.
Sharing the Code
Share the pairing code with your retailer through a secure channel:
- Phone call -- Read the 6-character code over the phone.
- In person -- Hand the code to the retailer directly.
- Email -- Send the code to a verified contact.
The code itself does not contain sensitive information, but sharing it through a trusted channel ensures the right party is connecting.
Entering a Pairing Code (Retailer)
- Log in to the Brother POS Admin Panel.
- Navigate to B2B > Distributor Connections.
- Click New Connection.
- Enter the 6-character pairing code provided by your distributor.
- Enter a label for this connection (e.g., "Green Leaf Distributors").
- Click Connect.
What Happens Behind the Scenes
When you enter a pairing code:
- Brother POS looks up the pairing code on the messaging service (or local database).
- The distributor's unique identifier and public key are retrieved.
- Brother POS checks if you already have a connection to this distributor.
- If not, a connection request is created with status
pending_approval. - The connection request is sent to the distributor through the secure messaging service.
- The distributor is notified of the incoming connection request.
If you already have a connection to the distributor, Brother POS will redirect you to the existing connection page instead of creating a duplicate.
Approving a Connection (Distributor)
When a retailer enters your pairing code, you will see a new connection request:
- Navigate to B2B > Retailer Connections.
- New connection requests appear with status Pending Approval.
- Review the retailer's information:
- Retailer name
- Retailer connection ID
- Connection request timestamp
- Click Approve to establish the connection, or Reject to decline.
Once approved:
- The connection status changes to Active.
- Both parties can exchange encrypted catalogs and orders.
- The retailer appears in your retailer list.
Connection Statuses
| Status | Description |
|---|---|
| Pending Approval | Connection request sent; awaiting approval |
| Active | Connection is established and functional |
| Suspended | Connection has been temporarily suspended (RetailerConnection only) |
| Rejected | Connection request was rejected (DistributorConnection only) |
| Disconnected | One party disconnected; can be reconnected |
Managing Connections
Viewing Connection Details
Click on a connection to see:
- Connection label and unique identifier
- Status and timestamps
- Public key information
- Recent orders (for distributor connections, recent purchase orders placed)
Editing a Connection
- Click Edit on a connection.
- You can update the label (display name) for the connection.
- Click Save.
Disconnecting
To disconnect from a trading partner:
- Open the connection details.
- Click Disconnect.
- The connection status changes to Disconnected.
- No further catalogs or orders can be exchanged through this connection.
Disconnecting preserves the connection record and all associated order history. You can potentially re-establish the connection later. To permanently remove the record, click Delete instead.
Deleting a Connection
- Open the connection details.
- Click Delete.
- Confirm the deletion.
- The connection record and its associated data are permanently removed.
Checking Connection Status
To verify that a connection is working properly:
- Open the connection details.
- Click Check Status.
- Brother POS checks the messaging service for the latest connection state.
- The connection details refresh with the current status.
This is useful if you are waiting for a connection approval or if you suspect connectivity issues.
How Encryption Keys Are Generated
Brother POS automatically generates encryption keys when they are first needed:
- An encryption key pair is generated for your store.
- The public key is shared during pairing (registered on the relay server and retrieved via the pairing code).
- The private key is stored locally, encrypted at rest.
- A catalog read key is also generated for the wholesale portal.
You do not need to manage these keys manually. Brother POS handles key generation, storage, and rotation.
Messaging Service
The messaging service acts as a message router between distributors and retailers:
- It stores and forwards encrypted messages between paired parties.
- It validates pairing codes and connection requests.
- It cannot read the content of encrypted messages (it never has the decryption keys).
- Brother POS cloud deployments use a shared messaging service.
The messaging service is configured automatically for your Brother POS store.
Troubleshooting
| Problem | Solution |
|---|---|
| "Invalid or expired pairing code" | The code may have expired. Ask the distributor to generate a new one. |
| "You already have a connection to this distributor" | A connection already exists. Go to B2B > Distributor Connections to manage it. |
| Connection stuck on "Pending Approval" | The distributor has not approved the request yet. Contact them directly. Click Check Status to refresh. |
| "Distributor ordering feature is not enabled" | Ask your admin to enable the Distributor Ordering feature in Settings. |
| "Failed to register code" | Check your internet connection and messaging service configuration. |
| "Store must be in distributor mode" | Configure your store as a distributor in Settings before generating pairing codes. |
Security Best Practices
- Share codes through trusted channels. Do not post pairing codes publicly.
- Verify the retailer's identity before approving connection requests.
- Revoke unused pairing codes that were not used in a timely manner.
- Review active connections regularly and disconnect any that are no longer needed.
- Do not share private keys. Brother POS handles key management automatically.
What's Next?
- Distributor Features -- Publish catalogs and manage retailers after pairing.
- Retailer Features -- Browse catalogs and place orders after pairing.
- B2B Wholesale Overview -- Review the overall B2B architecture.