Add, generate and import passcodes
Passcodes are added in Step 2 (Access & Message) of a lock, with the condition Passcode - Must enter the correct passcode.

What your customers see on the storefront.
Add a passcode
Section titled “Add a passcode”- Type a passcode in the field Enter a passcode (multiple allowed) and click Add passcode.
- Repeat to add more. Every passcode in the list unlocks the content.
Generate multiple random passcodes
Section titled “Generate multiple random passcodes”- Under the passcode field, click the generate multiple random passcodes at once link. The Generate random passcodes window opens.
- Enter the Number of passcodes (at least 1).
- Click Generate. The new passcodes are added to the list.
Every generated passcode is unique and does not repeat a passcode already in the list. Save the lock to apply them.

The Passcode condition. The preview on the right shows what visitors see.
The list shows the first 10 passcodes, then +N more. Clear removes all passcodes in this condition after a confirmation; this cannot be undone.
Settings
Section titled “Settings”| Setting | Options | Default |
|---|---|---|
| Passcode case sensitivity | Checkbox Distinguish uppercase from lowercase. Tick it to make passcodes case-sensitive. | Ticked |
| When to ask for passcode? | Once for all pages, Once per page, Everytime | Once for all pages |
The option wording follows your Step 1 target (for example pages or prices). Everytime is not available when the lock target is Price and add to cart or Variants.
Tag or note a customer on correct passcode
Section titled “Tag or note a customer on correct passcode”Below the case-sensitivity setting, two optional fields let you act on the customer record itself when someone enters a correct passcode:
| Field | What It Does |
|---|---|
| Customer tag when passcode is correct | Adds this tag to the customer in Shopify as soon as they enter any passcode from the list. |
| Customer note when passcode is correct | Adds this text to the customer’s note in Shopify under the same condition. |
Both fields accept the placeholder {passcode}: it is replaced with whichever passcode the customer actually entered. For example, a tag of unlocked-{passcode} becomes unlocked-VIP2026 for a customer who entered VIP2026.
Leave either field empty to skip that action — passcodes work the same with or without a tag or note attached.
Import passcodes from CSV
Section titled “Import passcodes from CSV”- Click Import. The Import passcodes by CSV window opens.
- Download the sample CSV template if you need the format: one passcode per line.
- Choose your
.csvfile and click Upload and preview. - Check the Passcode upload summary, then click Import passcode.
| Rule | Behavior |
|---|---|
| File type | .csv only |
| File size | Up to 2 MB (larger files show File too large) |
| Passcode length | Passcodes longer than 255 characters are skipped as invalid |
| Duplicates | Skipped, and counted under Duplicates skipped |
| Existing passcodes | Kept. Imported passcodes are added to the list. |
Let customers request a passcode
Section titled “Let customers request a passcode”Visitors can ask you for a passcode from the lock message. Requests appear in Access Management > Passcode Requests, where you pick a passcode and click Send email. See Access Management (Passcode Request).
- Access Condition TypesLook up every access condition in BSS B2B Lock, from user type and passcode to location and secret links, with settings and typical uses.
- Access Management (Passcode Request)When customers encounter locked content, they shouldn't hit a dead end. Access Management lets them request a passcode directly from your store, and lets you approve it with just a few clicks.
- Control Access (Access & Message)In Step 2 - Access & Message, add conditions and rules that decide who can unlock your locked content, then preview the lock message.
- Goal-Based Guides (“I want to…”)Step-by-step BSS B2B Lock guides organized by goal: hide prices, products, collections or sections, lock pages or the whole store, and protect pages with passcodes or secret links.