New to this track? Our Salesforce Certified Platform Developer exam prep is the recommended first step. See our certification path to understand where this certification fits. The Salesforce Accredited B2B Commerce Developer Professional exam weights Advanced Lightning Web Component Development most heavily (30%), see the full breakdown, study tips, and practice questions below.
Free practice • No sign-up required
Independent study resource
Exam objectives and policies can change. Confirm current details with the certification issuer.
Check current objectives
Use the official exam guide as the source for current objectives and section weights.
Practice for learning
Use sample questions to review concepts and identify topics for further study.
Works on Any Device
Full practice experience on phone, tablet, or desktop
Free, No Sign-Up
Start practicing immediately, no account or email required
Salesforce Accredited B2B Commerce Developer Professional – Complete 2026 Guide
This exam tests how you extend B2B Commerce with code: custom storefront components, Apex integrations for pricing, stock, shipping and tax, and the Commerce APIs. The exam is 60 scored questions in 75 minutes, with a 68% pass mark, weighted towards Advanced Lightning Web Component Development (30%) and Basic Lightning Web Component Development (20%).
Recommended Prerequisites
We recommend completing this certification first to prepare you better.
| Official exam name and code | Salesforce Accredited B2B Commerce Developer Professional (AP) |
|---|---|
| Questions | 60 |
| Time allotted | 75 min |
| Passing score | 68% |
| Exam fee | $150 |
| Retake fee | $150 |
| Prerequisite certifications | Recommended preparation: Salesforce Certified Platform Developer |
| Study guide release | Summer '26 |
Salesforce Accredited B2B Commerce Developer Professional Exam Weightage by Section
1. Checkout Flow Development (10%)
10%2. Reference Implementations (15%)
15%3. Basic Lightning Web Component Development (20%)
20%4. Advanced Lightning Web Component Development (30%)
30%5. Data Management (15%)
15%6. Error Handling and Diagnostics (10%)
10%Exam Topics
Last updated:
Who is the B2B Commerce Developer AP exam for?
- Developers building custom storefronts: You build Lightning Web Components and Apex for B2B stores and want to show you know the commerce extension points.
- Integration engineers: You connect B2B stores to ERPs and outside services for pricing, stock, tax and shipping.
- Technical consultants: You advise clients on what can be configured and what needs custom development in B2B Commerce.
Exam Fees & Registration
Exam Fee
$150
One-time registration fee
Retake Fee
$150
If you need to retake the exam
Comparing certs? View all Salesforce exam fees in one place →
Certification Validity
Maintenance and renewal requirements vary. Check the issuer’s current credential page for requirements that apply to you.
How to Register
Check current Salesforce Accredited B2B Commerce Developer Professional credential and registration details with the issuer.
View official credential detailsOfficial references: Use the issuer’s current materials to confirm exam objectives, format, and fees before booking.
Official sources: Salesforce exam pricing·Independent exam-prep resource; details may change.
Exam Tips
- 1B2B Development is 30%. Know Cart and Checkout customization, APIs, and integration.
- 2Understand cart and checkout: cart calculation, checkout flows, and payment integration.
- 3Know integration: REST APIs, webhooks, and external system integration.
- 4Be ready for "how do you develop X?" questions.
Prerequisites
- •B2B Commerce development experience
- •Platform Developer I
Focus Areas
- •B2B Development
- •Cart and Checkout
- •Integration
- •Testing
Study Strategy
Develop B2B Commerce features.
Customize cart and checkout, integrate with external systems.
Align with the exam outline.
Exam Format and First-Attempt Readiness
The Salesforce Accredited B2B Commerce Developer Professional exam has 60 questions in 75 min, passing score 68%. Most Salesforce exams test scenario-based decisions. Focus on when to use each feature, not just terms.
- Study Advanced Lightning Web Component Development and Basic Lightning Web Component Development first, together they carry 50% of the exam.
- Do timed question sets. Build pacing and confidence.
- Review why wrong answers are wrong. It improves scenario reasoning.
- Book the exam once your mock scores are steady at 80%+.
Is the B2B Commerce Developer AP Exam Hard?
Is the B2B Commerce Developer AP Exam Hard?
It is a technical exam. You need to know where B2B Commerce lets you plug in your own code, how storefront components work, and how the APIs are used. The pass mark is moderate, but the questions go deep.
- 60 multiple-choice questions in 90 minutes.
- About 68% to pass, roughly 39 correct answers. Check the official guide for the current figure.
- Extension points. Expect questions on custom pricing, inventory, shipping and tax integrations, and how to plug them into checkout.
- LWC and APIs. Building and customising store components and calling the Commerce APIs come up often.
Pass Rate Guidance
People who have built at least one custom component or integration for a B2B store do best. Before you book. Aim for 80% or more on practice tests.
B2B Commerce Developer AP Exam Format Explained
B2B Commerce Developer AP Exam Format Explained
Accredited Professional exams are taken online. Here is what to expect:
Total Questions
60 scored questions
Time Limit
75 min
Passing Score
68%
Question Type
Multiple-choice & multiple-select
How Many Questions Are Scenario-Based?
Most questions describe a business need that standard features don't cover, such as prices from an ERP or a custom product page, and ask for the right way to build it.
Best Way to Pass on Your First Attempt
- Learn the extension points: Know how custom pricing, inventory, shipping and tax logic plugs into the store and checkout.
- Build an LWC for a store: Know how to expose it in Experience Builder and get data with the Commerce APIs.
- Know when not to code: If configuration can meet the need, that is usually the right answer.
- Understand search and data: How products are indexed, which fields are searchable, and when to rebuild the index.
B2B Commerce Developer AP: Key Concepts
LWC Commerce Components & Override Pattern
B2B stores are built in Experience Builder from Lightning Web Components. You can add your own LWCs to store pages, or replace a standard component when it doesn't do what you need. To make a component usable in the builder, expose it with the right targets in its metadata file and add properties admins can set. Store components get context, such as the current product, cart or buyer account, from commerce modules and wire adapters, so they show the right data for the logged-in buyer. Keep components small and reuse standard ones where you can.
Commerce APIs & Storefront REST APIs
The Commerce Connect REST APIs (often called the B2B Commerce APIs) let you work with products, carts, checkout, wishlists and orders from code or outside apps. Apex also has ConnectApi classes for the same tasks from server-side code. Use them instead of querying and updating commerce objects directly, because the APIs apply entitlements and pricing rules for the buyer. Headless and mobile apps can use the same APIs to offer the store outside the website.
Checkout Integrations & Tax/Payment
Checkout can call outside systems for inventory, pricing, shipping and tax. You write an Apex class that implements the right integration interface (or a commerce extension), register it, and link it to the store. Payment uses a payment gateway adapter that talks to the payment provider, so card data never sits in Salesforce. Integrations should handle slow or failed responses cleanly and return clear messages to the buyer. Test them with realistic carts and failure cases.
Search Configuration & Merchandising
Store search is driven by a search index built from products, categories and their fields. Admins choose which fields are searchable and which ones become filters (facets). Developers may add custom fields to products and make them searchable. After changing these settings or loading many products, the index must be rebuilt, and large catalogs should be rebuilt outside busy hours. Product data loaded by integrations must include the fields search relies on.
Testing, Deployment & Performance
Apex for commerce needs test classes like any other Apex, with 75% coverage to deploy. Mock outside callouts in tests so they don't depend on live systems. Store setup lives partly in metadata and partly in data, so plan how to move catalogs, buyer groups and settings between orgs. For performance, avoid heavy work in components that load on every page, cache data that doesn't change often, and keep integration calls fast, since slow pricing or tax calls make checkout slow.
How to Pass the Salesforce B2B Commerce Developer Accredited Professional Exam
Most questions start with a need that standard setup can't meet. Pick the supported extension point, not a workaround.
B2B Commerce Extensibility Framework
Custom pricing, stock, shipping and tax all plug in through supported integration points registered to the store. Don't rebuild checkout from scratch.
Storefront LWC Development
Expose components to Experience Builder in the metadata file, and get store context from commerce modules rather than hard-coding IDs.
Apex Extension Points
Use ConnectApi commerce classes in Apex so entitlements and prices are applied for the buyer.
External Catalog Integration
Load products from outside systems with external IDs, then rebuild the search index.
Order Fulfillment Integration
Send placed orders to the ERP with events or async Apex, and keep order status in sync.
Is the Salesforce Accredited B2B Commerce Developer Professional Exam Hard?
DifficultyModerate; plan about 4-8 weeks of focused prep.
Book When ReadyScore 80%+ on three timed mocks before scheduling.
Use Practice, Not DumpsOriginal practice questions build skill without risking your credential.
Exam format: 60 questions, 75 min, 68% passing score.
Salesforce Accredited B2B Commerce Developer Professional Practice Questions (With Explanations)
Test your knowledge with these 15 sample questions.
Question 1: Prices for some customers must come from the company's ERP at the moment a product is added to the cart. What is the right approach?
Key takeaway: B2B Commerce lets you plug in a custom pricing integration so prices are fetched from the ERP when needed.
Show correct answer and explanation
Correct answer: A. Write an Apex pricing integration and register it with the store
B2B Commerce lets you plug in a custom pricing integration so prices are fetched from the ERP when needed.
- The theme doesn't affect pricing.
- Phoning for prices defeats the purpose of the store.
- Prices in descriptions can't be used by the cart.
Question 2: A developer builds an LWC that should appear in Experience Builder for admins to drag onto store pages. What must they do?
Key takeaway: LWCs need to be exposed with community or Lightning targets in their js-meta.
Show correct answer and explanation
Correct answer: C. Expose the component and add the right targets in its metadata file
LWCs need to be exposed with community or Lightning targets in their js-meta.xml file to show up in Experience Builder.
- Page layouts are for internal record pages.
- Visualforce isn't used for B2B store pages.
- A static resource isn't a component.
Question 3: An Apex class needs to add a product to a buyer's cart while respecting their entitlements and prices. What should it use?
Key takeaway: ConnectApi commerce methods apply the buyer's entitlements and pricing rules, which direct DML would skip.
Show correct answer and explanation
Correct answer: B. The ConnectApi commerce classes
ConnectApi commerce methods apply the buyer's entitlements and pricing rules, which direct DML would skip.
- Direct DML skips the commerce rules and can create invalid carts.
- Outbound messages send data out of Salesforce.
- A query reads data but doesn't add to a cart.
Question 4: Tax must be calculated by an outside tax service during checkout. What should the developer build?
Key takeaway: Checkout supports a tax integration point.
Show correct answer and explanation
Correct answer: A. A tax integration class registered with the store
Checkout supports a tax integration point. A registered Apex class can call the tax service and return the tax lines.
- Reports show data after the fact.
- Validation rules block saves, they don't calculate tax.
- Formula fields can't call outside services.
Question 5: Card payments must be processed by a payment provider without storing card numbers in Salesforce. What should be used?
Key takeaway: A payment gateway adapter connects checkout to the provider, which handles the card data and returns a result.
Show correct answer and explanation
Correct answer: C. A payment gateway adapter for the provider
A payment gateway adapter connects checkout to the provider, which handles the card data and returns a result.
- Storing card numbers in fields is a serious security risk.
- Email is insecure for card data.
- Any field that stores card numbers is a risk.
Question 6: A custom product field should be searchable in the store. The developer has created the field. What else must happen?
Key takeaway: Only fields chosen in search settings are indexed, and the index must be rebuilt to include them.
Show correct answer and explanation
Correct answer: D. Mark the field as searchable in search settings and rebuild the search index
Only fields chosen in search settings are indexed, and the index must be rebuilt to include them.
- Changing names is a workaround that breaks data quality.
- Profiles don't control store search.
- Fields are not searched unless chosen.
Question 7: A pricing integration sometimes takes 20 seconds to respond, making checkout slow. What should the developer do first?
Key takeaway: Integrations should fail cleanly with timeouts and helpful messages, and the slow service itself needs fixing.
Show correct answer and explanation
Correct answer: B. Add a timeout and a clear fallback message, and work with the ERP team to speed up the service
Integrations should fail cleanly with timeouts and helpful messages, and the slow service itself needs fixing.
- Removing pricing breaks the order.
- Ten retries make checkout even slower.
- Asking buyers to wait leads to abandoned carts.
Question 8: A mobile app needs to let buyers browse products and manage their cart using the same rules as the website. What should it use?
Key takeaway: The Commerce REST APIs give the app the same products, prices and cart logic as the store.
Show correct answer and explanation
Correct answer: D. The B2B Commerce REST APIs
The Commerce REST APIs give the app the same products, prices and cart logic as the store.
- Screen scraping is fragile and breaks when the site changes.
- Mobile apps can't run SOQL directly, and it would skip commerce rules.
- A nightly file can't manage a live cart.
Question 9: Test classes for a shipping integration fail when the shipping provider is down. What should be changed?
Key takeaway: Mock callouts let tests run the integration code without depending on outside systems.
Show correct answer and explanation
Correct answer: C. Use HttpCalloutMock so tests don't call the live service
Mock callouts let tests run the integration code without depending on outside systems.
- Coverage requirements are fixed.
- The provider can be down at night too.
- Removing tests stops deployments, which need 75% coverage.
Question 10: A business wants a product comparison feature that no standard component offers. What should the developer do?
Key takeaway: Custom LWCs are the supported way to add new features to store pages.
Show correct answer and explanation
Correct answer: B. Build a custom LWC and add it to the product pages in Experience Builder
Custom LWCs are the supported way to add new features to store pages.
- Visualforce doesn't fit modern store pages.
- You can't edit Salesforce's standard component code.
- Two tabs is not a feature.
Question 11: 10,000 products are loaded from the ERP each night. Buyers say new products don't show up in search until days later. What is the fix?
Key takeaway: New products only appear in search once the index is rebuilt, so the rebuild should follow the load.
Show correct answer and explanation
Correct answer: B. Rebuild the search index after each nightly load
New products only appear in search once the index is rebuilt, so the rebuild should follow the load.
- Loading one at a time doesn't update the index.
- Turning off search makes the store unusable.
- Name length isn't the problem.
Question 12: When an order is placed, it must be sent to the ERP without slowing down the buyer's checkout. What fits best?
Key takeaway: Async processing sends the order in the background, so the buyer isn't kept waiting.
Show correct answer and explanation
Correct answer: D. Publish an event or start async Apex after the order is created
Async processing sends the order in the background, so the buyer isn't kept waiting.
- Re-entering orders is slow and error-prone.
- A synchronous call makes the buyer wait and fails if the ERP is down.
- Nightly exports delay fulfilment.
Question 13: Store components should show data for the logged-in buyer's account. How should a component find the current account?
Key takeaway: Commerce context modules give the component the current buyer account, cart and store at run time.
Show correct answer and explanation
Correct answer: A. Use the store's commerce context rather than hard-coding an account ID
Commerce context modules give the component the current buyer account, cart and store at run time.
- A custom setting holds one value for everyone.
- Buyers shouldn't have to type their account.
- A hard-coded ID would show the same account to every buyer.
Question 14: Before deploying a custom inventory integration to production, what must the Apex code have?
Key takeaway: All Apex needs tests with at least 75% coverage to deploy to production.
Show correct answer and explanation
Correct answer: C. Test classes giving at least 75% code coverage
All Apex needs tests with at least 75% coverage to deploy to production.
- Packaging isn't required for a custom class.
- Visualforce isn't required.
- A refresh isn't a deployment requirement.
Question 15: A requirement can be met either by configuring a standard checkout option or by writing custom code. What should the developer recommend?
Key takeaway: Configuration is cheaper to maintain and upgrade.
Show correct answer and explanation
Correct answer: A. Use the standard configuration
Configuration is cheaper to maintain and upgrade. Code is for needs that configuration can't meet.
- Custom code adds cost and upgrade risk when it isn't needed.
- A separate checkout loses the built-in commerce rules.
- Ignoring requirements isn't an option.
Get the Full Question Bank
Most candidates book the exam after scoring 80%+ on full mocks.
If you’re planning to test this quarter, aim to complete full mocks at least 10–14 days before your exam date.
Contact us for more information on our full 60-question mock exams and a personalized study plan. Use the contact form.
Request Mock Exams & Study PlanSalesforce Accredited B2B Commerce Developer Professional Exam FAQs
- What is covered on the Salesforce Accredited B2B Commerce Developer Professional exam?
- The Salesforce Accredited B2B Commerce Developer Professional exam (formerly Salesforce Certified B2B Commerce Developer Accredited Professional) covers section-wise weightage as shown above. Use the exam topics and practice questions on this page to align your study with the official outline.
- What is B2B Commerce Developer Accredited Professional?
- B2B Commerce Developer AP validates skills in developing and customizing B2B Commerce solutions, including cart customization, checkout flows, and API integration.
- Do I need Platform Developer I before B2B Commerce Developer AP?
- Yes, Platform Developer I is recommended. You should have B2B Commerce development experience and understand B2B commerce APIs and customization.
- Are there free practice questions for the Salesforce Accredited B2B Commerce Developer Professional exam?
- Yes. This page includes free sample practice questions with explanations. Use them alongside the current official documentation.
- How do I prepare for the Salesforce Accredited B2B Commerce Developer Professional certification?
- Use the exam tips, prerequisites, and study strategy on this Salesforce Accredited B2B Commerce Developer Professional study guide (formerly Salesforce Certified B2B Commerce Developer Accredited Professional). Focus first on the highest-weighted sections, then take the sample practice questions. Schedule the exam when you consistently score well on practice tests.
Next Certifications After This AP
Good next steps after B2B Commerce Developer:
TL;DR: What B2B Commerce Developer AP Tests
- LWC storefront customisation: Overriding standard B2B Commerce LWC components (product detail page, cart, search results), using the B2B Commerce LWC component library and communication patterns, implementing custom product tiles and detail page extensions, and extending Experience Builder pages with custom B2B Commerce components.
- Cart and checkout extension: Using ConnectApi.CommerceCartApi for programmatic cart operations (Apex), implementing custom checkout integrations using the CheckoutExtension interface (for custom tax calculation, custom shipping providers, custom payment gateways), and handling checkout flow stages with custom Apex that plugs into the B2B checkout orchestration.
- Headless commerce and APIs: Using the Salesforce B2B Commerce REST API for headless storefront implementations, API authentication for external storefront clients, webhook and event integration patterns, and how headless B2B Commerce differs from the standard Experience Cloud storefront approach.
Which Sections Carry the Most Weight
AP format: 60 questions, 75 minutes, Pass/Fail, $150. LWC component override patterns are the most distinctive developer skill for B2B Commerce. Know them deeply.
Scenario Strategy: How to Approach B2B Commerce Developer AP Questions
Questions describe a B2B Commerce customisation requirement and ask which developer approach achieves it. Prefer standard B2B Commerce extension points over custom code , the exam rewards using the platform’s designed extension mechanisms.
- For component customisation questions: to customise the product detail page, override the standard c/productDetailPage component with a custom component of the same name. Custom components should be placed in the correct namespace to take precedence. When a scenario says ’add custom content to the product detail page without modifying Salesforce code’, override the standard PDP component, never modify the managed package code directly.
- For checkout extension questions: custom checkout integrations implement the CheckoutExtension interface. Each checkout stage (shipping, tax, payment) can have a custom Apex handler. The custom handler receives the CartId and must update the cart with the calculated result (shipping cost, tax amount). When a scenario says ’calculate custom shipping rates from our internal shipping API during checkout’, implement a custom Shipping CheckoutExtension, not a Flow or Process Builder action.
- For ConnectApi questions: use ConnectApi.CommerceCartApi in Apex to programmatically interact with carts. Key methods: addItemToCart, deleteCartItem, getCartItems, createCart. These require a WebStore ID and an effective account ID. When a scenario describes adding products to a customer’s cart programmatically from an external system, use ConnectApi.CommerceCartApi, not direct DML on CartItem objects.
AP Readiness Check
Pass 3 timed 40-question mocks before booking (Pass/Fail scoring)
B2B Commerce Developer AP requires hands-on LWC development experience. Set up a B2B Commerce scratch org using SFDX and build a custom component override before the exam, the override pattern is only intuitive after doing it hands-on. The Salesforce B2B Commerce Developer Trailmix is the primary study resource.
3 Concepts That Fail Most B2B Commerce Developer Candidates
These are not the hardest topics; they are the ones where candidates are most confidently wrong. Learn the distinction early.
1. LWC Commerce Components vs Base Components: Extension vs Replacement
B2B Commerce on Lightning uses base LWC commerce components (product detail, cart, checkout) that can be extended or replaced. Extending a base component inherits its functionality and adds custom logic. Replacing it means writing the entire component from scratch. Candidates choose "replace" for simple customisations, the exam expects "extend." Only replace when the base component cannot be modified to meet requirements.
2. Integration Framework: Commerce APIs vs Apex vs Platform Events
The B2B Commerce Integration Framework uses Apex extension points (CartExtension, ShippingProvider, TaxProvider) to plug in external logic. Candidates use ad-hoc Platform Events or custom REST APIs instead. Know the specific Apex extension point for each commerce integration: tax calculation = TaxProvider, shipping rates = ShippingProvider, cart validation = CartValidationOutput.
3. Guest Browsing vs Authenticated Checkout: Session Context Matters
Guest users can browse a B2B Commerce storefront but cannot add to cart or check out without authenticating. The guest user context has a different Experience Cloud licence type than the authenticated buyer. Candidates design features that work in guest context and forget that adding to cart requires authentication. Exam scenarios about "users cannot add items to cart" expect the answer "buyer is not authenticated."
Questions Candidates Ask
- What is the B2B Commerce Developer AP exam format?
- The B2B Commerce Developer AP exam has 40 multiple-choice questions, a 60-minute time limit, a Pass/Fail result, and a $150 fee. It validates developer-level knowledge of Salesforce B2B Commerce: customising the storefront using Lightning Web Components (LWC), extending cart and checkout behaviour, working with B2B Commerce APIs, and headless commerce integration patterns.
- What are the highest-weight B2B Commerce Developer AP exam sections?
- LWC Storefront Customisation (35%) and Cart and Checkout Extension (25%) together account for 60% of the exam. Overriding default B2B Commerce LWC components, extending checkout flows with custom Apex and LWC, and using the ConnectApi namespace for cart and order operations are the most tested areas.
- How does LWC customisation work in Salesforce B2B Commerce?
- B2B Commerce storefront pages are built from standard LWC components provided by Salesforce. Developers customise the storefront by overriding these standard components with custom LWC implementations. Custom components use the same component name and folder structure to override the default. The exam tests how to correctly override standard components. Use the B2B Commerce LWC component library, and handle data communication between components.
- What B2B Commerce APIs does the Developer AP exam test?
- The exam tests the ConnectApi namespace for B2B Commerce operations: ConnectApi.CommerceCartApi for cart operations (add/update/remove items), ConnectApi.CommerceOrderApi for order placement and management, and the REST Connect API for headless commerce scenarios. The exam also tests how to extend the checkout flow using custom Apex classes that implement the CheckoutExtension interface.
- What concepts do most B2B Commerce Developer candidates get wrong?
- The most commonly misunderstood topics for the B2B Commerce Developer exam are: (1) LWC Commerce Components vs Base Components: Extension vs Replacement; (2) Integration Framework: Commerce APIs vs Apex vs Platform Events; (3) Guest Browsing vs Authenticated Checkout: Session Context Matters. Candidates are most confidently wrong on these. Learn the distinctions early to avoid losing marks on questions you expect to get right.
- Why do most B2B Commerce Developer Ap candidates fail questions about LWC Commerce Components vs Base Components?
- B2B Commerce on Lightning uses base LWC commerce components (product detail, cart, checkout) that can be extended or replaced. Extending a base component inherits its functionality and adds custom logic. Replacing it means writing the entire component from scratch. Candidates choose "replace" for simple customisations, the exam expects "extend." Only replace when the base component cannot be m...
- Why do most B2B Commerce Developer Ap candidates fail questions about Integration Framework: Commerce APIs vs Apex vs Plat...?
- The B2B Commerce Integration Framework uses Apex extension points (CartExtension, ShippingProvider, TaxProvider) to plug in external logic. Candidates use ad-hoc Platform Events or custom REST APIs instead. Know the specific Apex extension point for each commerce integration: tax calculation = TaxProvider, shipping rates = ShippingProvider, cart validation = CartValidationOutput.
- Why do most B2B Commerce Developer Ap candidates fail questions about Guest Browsing vs Authenticated Checkout?
- Guest users can browse a B2B Commerce storefront but cannot add to cart or check out without authenticating. The guest user context has a different Experience Cloud licence type than the authenticated buyer. Candidates design features that work in guest context and forget that adding to cart requires authentication. Exam scenarios about "users cannot add items to cart" expect the answer "buyer ...
Related Study Resources
Start B2B Commerce Developer AP Prep
After this exam, consider Sales Cloud Consultant or Service Cloud Consultant next.
Share or cite this study guide
Free to link from a forum post, study repo or article. Copy the Markdown and paste it anywhere.