A MedTech distributor or hospital buyer who wants to order, check stock, or ask where's my order today has one option: call a CSR who works blind in an ERP the partner can't see. This blueprint is the experience layer over order management: a partner-facing portal with an enforced entitlement model, self-service order entry against real-time ATP and contract pricing, order status, consignment usage reporting, reorder, and an Agentforce assistant — composed over the existing order-management, inventory, and product-master blueprints with a clean CSR escalation path.
Tags: life-sciences, medtech, distributor, partner-portal, experience-api, b2b, order-management, self-service, entitlements, erp, api-led, agentforce, salesforce, inventory-management, consignment, multi-erp
Distributor and Partner Cloud Portal to ERP
Objective: A MedTech distributor, hospital buyer, or channel partner who wants to place an order, check stock, or ask "where's my order" has one option today: call or email a CSR, who works blind in an ERP the partner can't see. That call burns CSR time on judgment-free work — a status lookup, a reorder of last month's kit list — and delays the order behind whatever else is queued. Partners compare the experience unfavorably to any consumer storefront and escalate faster with no visibility of their own. Working looks like a partner-facing portal where distributors place and track orders, see real-time stock and pricing under their own contract, and self-serve status — fronted by an API-led layer over the ERP, with the CSR freed for exceptions that need a person.
What's Getting Built
- Experience API (Experience API) — portal-shaped endpoints for order entry, status, reorder and usage reporting, callable by the portal, punchout, and Agentforce ·
POST /orders, GET /orders/{id}, GET /orders/{id}/status, GET /catalog, POST /orders/{id}/reorder, GET /consignment/usage
- Entitlement service (Process API) — resolves the caller to one partner account and maps account to catalog, price list, and contract before any data returns ·
GET /entitlements/{accountId}, POST /entitlements/authorize
- Order entry + status orchestration (Process API) — composes ATP and pricing, enforces entitlement, mints idempotency keys, and submits through the canonical order flow ·
POST /order-entry, GET /order-status/{id}
- Consignment usage reporting (Process API) — serves the partner's consignment position and accepts bill-only usage events for async validation ·
GET /usage, POST /usage
- CSR escalation handoff (Process API) — packages a structured handoff of intent, self-service result, and account context and routes it by exception type ·
POST /escalations
- CSR agent desktop (target) — receives escalations with full account, order, and entitlement context and writes the resolution back to order history ·
POST /cases, PATCH /cases/{id}
This plan is the customer/partner experience layer over order management, not a new order engine. It builds the Experience API tier and portal that Medical Device Order Management Lifecycle and Order Management and Tracking: Distributors, Hospitals, and Pharmacies assume exists but don't build themselves. Order intake, validation, allocation, and ERP order creation stay exactly where those plans put them — this plan composes a portal and entitlement-aware API tier on top, and hands off to the CSR desktop only when self-service genuinely can't resolve the request.
Value chain phase
Commercial channel enablement — the partner-facing layer over Order-to-Cash. Sits downstream of order capture and fulfillment, upstream of nothing; it's where the partner meets the business.
- Scope of this plan: Partner identity and entitlements, the Experience API tier, self-service order entry with real-time availability and pricing, status and tracking, consignment usage reporting, reorder, and escalation to a CSR.
- Data in this phase: Partner/account and contract entitlements, product catalog and contract pricing, ATP inventory, order and shipment status, and consignment/kit usage.
- Receives from: The order-management and inventory blueprints beneath it — order state, ATP, and pricing are read, never re-derived here.
- Hands off to: The CSR agent desktop for exceptions, and back to order management for anything the portal submits.
Prerequisites
- Anypoint Platform org with API Manager and a non-production deployment target, plus a client-ID/entitlement policy before the first partner onboards.
- Salesforce Experience Cloud (or the chosen custom stack) with partner accounts and contacts already modeled — the portal has nowhere to hang identity without this.
- ERP order management, pricing, and ATP endpoints reachable, ideally through System APIs the order-management and inventory blueprints already expose.
- A written partner entitlement model, signed off by commercial and legal: which distributor sees which catalog and price list, and who owns changes on renegotiation.
- Identity provider decision for partner login (B2B Commerce identity, or an external IdP with SAML/OIDC) and a policy for who at the distributor sees what.
- Named security owner for the entitlement model — the one defect class that becomes a trust incident, not a bug ticket.
- Named compliance owner for any flow surfacing patient-identifiable data through consignment reporting.
Choose your path
- Experience Cloud portal — Choose when Salesforce is already the commercial system of record and partner accounts/contracts live there. Sharing rules and permission sets do real entitlement enforcement, and the CSR desktop shares one data model with the portal.
- Custom/headless portal — Choose when the partner brand or UX must live outside Salesforce, or large distributors need a dedicated procurement integration (punchout/cXML) instead of a UI. The Experience API tier is the same either way; only the front end and token issuance differ.
Most programs run both — self-service for smaller partners, punchout/API for large distributors whose procurement systems call the same Experience API directly.
Platform notes
Identity and entitlements (the hard part)
- Resolve the caller to exactly one partner account and role before any catalog, price, or order data returns — never key access on a session alone without binding it to an account ID checked every call.
- Encode entitlement as data (account → catalog version → price list → contract), not branching logic scattered across implementations; a partner added to a new GPO contract shouldn't require a deploy.
- Treat cross-account access as a security bug class, not an edge case, and write an automated test for it before the first partner goes live.
Integration (API-led)
- The Experience API is shaped to the portal's screens (order entry, status, usage reporting) — not a generic pass-through of the ERP's order or pricing service.
- The Process API tier is where entitlement is enforced, ATP and pricing are composed, and idempotency keys are minted — never trust the client to generate one.
- System APIs over ERP, inventory, and pricing are the ones the order-management and inventory blueprints already built; this plan adds callers, not backends.
Agentforce
- A portal assistant answers "where's my order," "reorder last month's purchase," and "do I have stock for tomorrow's case" conversationally, calling the same entitlement-scoped Experience API a human click would — no wider access than the logged-in partner.
- Escalate to a human CSR when confidence is low or the partner asks for one, carrying conversation and account context forward instead of starting from zero.
Architecture
1. Business requirements
- Every distributor, hospital, or channel partner logs in and sees only their own catalog, pricing, order history, and consignment position — never another partner's.
- Self-service covers order entry, status/tracking, usage reporting, and reorder without a CSR touching it.
- The portal reads and writes through the same order-management flow the CSR and EDI channels use — no parallel path that can diverge.
- When self-service can't resolve a request, the CSR picks it up with full context, not a blank screen.
2. Partner identity and entitlements — the security core
- Federate partner login through the chosen IdP and resolve every authenticated session to exactly one partner account ID before the Experience API accepts a call — the account ID, not the session token, is what every downstream check keys on.
- Model entitlement as data: account → active contract(s) → price list → catalog subset → visible consignment locations. Store it queryable per-request and auditable, not hardcoded per screen.
- Support multiple contacts per distributor account with different roles (order-placing buyer vs. read-only viewer vs. site admin who can invite others) — a single "partner login" isn't the real shape of a distributor's org.
- Reject, don't silently filter — if a call resolves to a product or order outside the caller's entitlement, return a clear authorization error, not an empty result that looks like "no data."
- Log every entitlement decision (who, what account, what was requested, allow/deny) — proof no partner ever saw another's data, and what an audit or trust incident will ask for first.
3. Experience API tier and portal composition
- Build the Experience API to the portal's actual screens — order entry, order history/status, usage reporting, reorder — not a generic proxy of the ERP order API; ERP field names and quirks should never leak to the UI.
- Compose each screen from the Process API in parallel (catalog + price + ATP for order entry; order + shipment + carrier for status) with a per-source timeout — a slow pricing call must not blank the screen.
- Version the Experience API contract independently of the System APIs so an ERP migration or new pricing engine never forces a partner-facing breaking change.
- For punchout/large-distributor integrations, expose the same Experience API under a machine-to-machine client credential scoped to that account — the entitlement model doesn't change, only the caller.
4. Self-service order entry — real-time ATP and pricing
- Render the catalog from the product and pricing master (medtech-product-udi-master) filtered to the partner's entitled catalog and contract price list — never a generic list the UI filters client-side.
- Check availability against the netted inventory position (pharma-inventory-warehouse-visibility) at add-to-cart and again at submit; a stale ATP number is a plausible oversell, not a bug.
- Submit through the same canonical order flow the EDI and CSR channels use (medtech-order-management-lifecycle or pharma-order-management-tracking) — the portal is a fourth channel into one order model, not a fifth.
- Key every submission on a client-generated idempotency key so a retried click or flaky connection can't double-submit.
- Show allocation and partial-fulfillment outcomes honestly on the confirmation screen — an accurate partial-ship beats one discovered on the invoice.
5. Order status, tracking, and reorder
- Aggregate order, warehouse, and carrier status into the one status vocabulary the order-management plan already publishes — the portal must tell the same story the CSR desktop tells, from the same API.
- Push proactive status notifications (shipped, delayed, on hold) through the shared notification service (platform-utility-apis) rather than a second email/SMS path — recipient changes stay configuration.
- Offer reorder as "repeat this order" against history, re-validated for current price and ATP at submission — a stale price or discontinued item must block, not silently reorder wrong.
- Surface a "where's my order" conversational entry point via Agentforce that calls the same status Experience API a manual lookup would, scoped to the same entitlement.
6. Consignment usage reporting
- Let the partner view their consignment and kit position and report bill-only usage through the portal, calling directly into medtech-consignment-bill-only rather than re-implementing capture.
- Scope the view to storage locations that account owns — a hospital system with multiple sites must see each site's position distinctly, not blended.
- Treat a portal-submitted usage event as the field-capture flow does: accept it, validate asynchronously, and route failures (expired lot, wrong location) to an exception queue rather than rejecting outright.
- Where usage reporting could carry a patient or case identifier, minimize what the portal collects and keep it out of any bulk export.
7. CSR escalation and agent handoff
- Give the CSR desktop (healthcare-contact-center pattern, adapted to the commercial/partner case type) the same account, order, and entitlement context the partner had — the CSR should never ask a partner to repeat what the portal already knows.
- Escalate from the portal or Agentforce with a structured handoff: what the partner was trying to do, what self-service returned, and why it didn't resolve.
- Route escalations by type — pricing dispute, entitlement question, order exception — to the queue equipped to answer it, the branching discipline order-management triage uses.
- Close the loop by writing the resolution back to the portal's order/case history so the partner sees it without calling again.
8. Security and compliance
- Enforce the entitlement model at the Process API layer on every call, independent of the portal UI — a UI-only restriction is not a security control.
- Encrypt partner data in transit and at rest, and hold every ERP, pricing, and IdP credential in Secrets Manager — never in portal config.
- Apply client-ID enforcement and rate limiting per account; one partner's retry storm must not degrade another's session.
- Audit-log every catalog, price, order, and consignment read against the account/contact that made it — the record a trust incident will ask for.
- If usage reporting or order context touches a patient/case identifier, minimize exposure in the UI and keep it out of any export.
- Treat a change to the entitlement model (new contract, merged account, revoked catalog) as controlled, with sign-off, not a config edit.
Sample payload — Partner order submission (Experience API request)
{
"idempotencyKey": "portal-4471-2026-08-27-006",
"partnerContext": {
"accountId": "DIST-4471",
"contactId": "CT-4471-002",
"contractId": "GPO-CONTRACT-88213"
},
"shipTo": { "siteId": "SITE-4471-03", "name": "Riverside Surgical Center" },
"customerPoNumber": "PO-RSC-22091",
"lines": [
{
"lineNumber": 1,
"productCanonicalId": "PROD-00931",
"orderedQty": 50,
"uom": "EA",
"quotedUnitPrice": 84.20,
"atpAvailable": 50
},
{
"lineNumber": 2,
"productCanonicalId": "PROD-00477",
"orderedQty": 10,
"uom": "EA",
"quotedUnitPrice": 212.00,
"atpAvailable": 6
}
],
"submittedBy": "portal",
"status": "submitted_pending_allocation"
}
Testing and validation
- Log in as two partner accounts and confirm each sees only its own catalog, price list, order history, and consignment position — script this as a repeatable test.
- Submit an order where ATP dropped between add-to-cart and checkout and confirm the re-check catches it and shows a partial/allocated outcome rather than an oversell.
- Double-submit an order with a flaky connection replaying the same idempotency key and confirm exactly one ERP order results.
- Pull the order status shown in the portal, the CSR desktop, and the status API and confirm all three agree.
- Report usage for a unit that validation rejects (expired lot) and confirm it lands in the exception queue rather than failing silently.
- Call the Experience API with a valid token for one account but another's order ID, and confirm it's rejected with an authorization error, not an empty result.
Phased rollout
Phase 1 — Connect
- Stand up partner identity federation and the entitlement service against real accounts, and prove the "wrong partner sees wrong data" test fails safely before anything else is built.
- Connect the Experience API to the existing System APIs read-only, and publish order status and catalog browsing first.
Phase 2 — Map and validate
- Turn on self-service order entry for one product family with a small pilot group, reconciling every order against the ERP result daily.
- Add consignment usage reporting and reorder, and run CSR escalation in assistive mode alongside phone/email support.
Phase 3 — Production
- Widen to the full partner base and catalog, cut phone/email order-taking to the exception queue, and move Agentforce into unassisted mode for WISMO and reorder.
- Hand entitlement changes, portal SLAs, and escalation-queue health to commercial operations with named owners.
Success metrics
- Percentage of orders and status inquiries resolved through self-service without a CSR touch — the number this plan exists to move.
- CSR call/email volume and handle time on remaining exceptions, trending down against baseline.
- Zero cross-account data exposures logged — measured, not assumed, from the entitlement audit log.
- Order accuracy (oversell/short-ship rate) and duplication rate, both trending toward zero.
Troubleshooting
- A partner sees another partner's data — Cause: entitlement resolved from a client-supplied account ID instead of the session's bound account. Fix: resolve entitlement server-side from verified identity on every call; treat client-supplied identifiers as untrusted.
- Portal sells stock that isn't there — Cause: cart built against an ATP number cached too long, no re-check at submit. Fix: re-check the live netted position at checkout, label the cart's ATP with an as-of time, and show partial allocation honestly.
- The same order creates two ERP orders — Cause: idempotency checked client-side, so a retry mints a new key. Fix: enforce the key at the Process API layer against the purchase order number, independent of the client.
- Order status in the portal lags the CSR view — Cause: the portal polls a cached feed on a different refresh cycle. Fix: have both consume the same status API/event stream and label cached views with an as-of time.
Deliverable: A partner-facing Experience API and portal — Experience Cloud or headless — with an enforced entitlement model, self-service order entry against real-time ATP and contract pricing, status and tracking, consignment usage reporting, reorder, and an Agentforce assistant, composed over the existing order-management, inventory, product-master, and consignment blueprints with a clean CSR escalation path for what self-service can't resolve.