A Houston-based industrial marketplace connecting operators with equipment maintenance and inspection service providers would handle service requests, provider quotes, credential verification and Stripe Connect payments.
Planning assumptions. Launch with 3 service categories (equipment inspection, calibration, maintenance) and 50 seeded providers. Target 20 buyer organisations in the first quarter. The marketplace operations lead is accountable for launch and credential verification. Buyer and provider dashboards on web; responsive mobile.
Small launch cohort. 50 providers (IDs PRV-001 through PRV-050) onboarded with verified credentials across 3 categories. 20 buyer organisations (IDs BUY-001 through BUY-020) invited. The marketplace operations lead is the named owner of launch metrics. First-quarter targets: supply availability (at least 3 qualified providers per request; denominator: total requests posted), response rate (at least 70 percent of requests receiving at least one quote within 48 hours; numerator: requests with at least one quote, denominator: total requests posted), fulfilment rate (at least 80 percent of approved engagements completed satisfactorily; numerator: completed engagements, denominator: approved engagements), and refund rate (at most 5 percent of completed engagements refunded; numerator: refunded engagements, denominator: completed engagements). Held-out acceptance fixtures based on structured test requests with fixture IDs (FIX-HTX-001 through FIX-HTX-010), not invented observed results.
Seller onboarding restriction and stale/suspended. Providers with expired insurance or lapsed certifications are marked suspended and hidden from search results. Suspended providers receive notification and a path to reinstate. Buyers who previously engaged a now-suspended provider see a notice. Stale provider profiles (no activity for 90 days) are marked dormant and deprioritised in search.
Duplicate order prevention. Each service request carries a unique request ID. A buyer cannot submit the same structured request (same category, location, date and specifications hash) twice without explicit confirmation. Quote submissions carry unique quote IDs. An approved engagement creates a single engagement record; duplicate approval attempts (double-click, network retry) produce no second engagement.
Order, quote, invoice, charge, transfer, refund, dispute, payout and failed states. Request: draft, posted, quoted, awarded, in-progress, completed, cancelled, disputed. Quote: submitted, accepted, rejected, withdrawn. Invoice: generated, sent, paid. Charge (on platform Stripe account): pending, succeeded, refund-initiated, partially-refunded, fully-refunded, dispute-opened, dispute-lost, dispute-won. Transfer (platform to connected account): submitted, completed, failed, reversed. Refund (buyer-side, from platform balance): initiated, succeeded, failed. Service dispute (platform-mediated): opened, evidence-submitted, resolved, escalated. Issuer chargeback (card network): notified, evidence-submitted, won, lost. Payout (connected account to provider bank): pending, paid, failed. Each state transition logged with timestamp, actor and source of authority. No skip.
Webhook signature and event-ordering test. The platform verifies every Stripe webhook using the raw request body bytes, the Stripe-Signature header (containing t timestamp and v1 HMAC-SHA256 signature) and the endpoint signing secret. Stripe does not guarantee event delivery order. Test 1 (valid original): a payment_intent.succeeded event with event ID evt_HTX_001 arrives with a correctly signed body; the platform verifies signature, processes the event, records the event ID, and updates engagement ENG-042 to "charged". Test 2 (same event-ID replay): evt_HTX_001 arrives again; Stripe generates a fresh delivery signature within the tolerance window; the platform verifies the new signature, finds the event ID already processed, returns 200 without re-executing business logic. Test 3 (tampered body): a webhook with event ID evt_HTX_002 arrives with a modified amount in the body; the computed HMAC does not match the Stripe-Signature header; rejected before any business logic. Test 4 (authentic older-state event): a delayed charge.succeeded event with event ID evt_HTX_003 for charge ch_042 arrives with a valid current delivery signature. The event snapshot shows amount_refunded: 0 because it was emitted before a later partial refund; the platform has since processed a charge.refunded event and recorded the current amount_refunded on the engagement ledger. The platform does not infer business ordering from Stripe event timestamps. It retrieves the current Charge object by ID ch_042, compares the retrieved amount_refunded against the platform's authoritative engagement ledger revision for ENG-042, confirms the later refund state is already recorded, and skips the stale update. Test 5 (expired signature): a webhook arrives with a Stripe-Signature timestamp outside the tolerance window; rejected regardless of body validity.
Dispute, partial refund and failed reversal with numeric example. Buyer BUY-007 disputes completed engagement ENG-042. The platform's service dispute process reviews evidence. The operations team determines a partial refund of $1,200 (of the original $4,000 charge ch_042) is warranted. The platform initiates a $1,200 refund on ch_042; the buyer receives $1,200 from the platform's Stripe balance. The provider's prior $3,400 transfer (tr_042, $4,000 charge minus $600 marketplace fee) to connected account acct_PRV_019 is not automatically reversed by Stripe under separate charges and transfers. The platform attempts to create a $1,200 reversal on tr_042. The connected account acct_PRV_019 has an available balance of $800 (prior payouts already disbursed to the provider's bank). The reversal fails for insufficient connected-account balance; no connected-account reserves were configured. The platform records: buyer refund $1,200 (settled), provider receivable $1,200 (open), recovered $0, outstanding $1,200. The outstanding receivable is not labelled settled. The authorized reconciliation owner compares actual Stripe charge and refund on ch_042, outgoing transfer and attempted reversal on tr_042, and connected-account balance and payout evidence with the platform ledger, keeps the unrecovered amount open, and only closes the receivable on confirmed recovery or approved write-off. Any successful reversal in the webhook ordering test above is a separate fixture from this insufficient-balance failure. Separately, if the dispute is an issuer chargeback (card-network initiated, not platform-mediated), opening the dispute may debit the platform's Stripe balance for the disputed amount and applicable fee while the dispute is open; the platform submits evidence to Stripe; outcomes and any recovery are tracked separately.
Unauthorized approver and stale quote race. A buyer employee without the "approve engagement" role attempts to accept a quote; the platform checks the employee's role against the buyer organisation's approval matrix and returns an authorization error. No engagement is created. Separately, a provider submits a quote; before the buyer approves, the provider updates availability (the quoted dates are no longer available). The quote carries a version stamp. The buyer's authorized approver attempts to approve the original quote; the platform checks the version stamp against the provider's current quote; the stale version triggers a notice ("Provider has updated availability; please review the updated quote") and blocks approval of the stale version. No stale engagement is created.
Ambiguous provider API commit. Each approved payment action receives a distinct platform-side business-operation identity (e.g. op_ENG042_transfer_v1). The Stripe transfer POST includes an Idempotency-Key header for safe unchanged retry. If the Stripe response is lost (timeout, network error), the platform first attempts to retrieve the transfer by its known Stripe object ID if the response included one before failure. If the object ID was never received, the platform reconciles by checking provider ledger events or listing transfers on the platform account using documented filters (destination connected account, created date range) and confirms an exact match using the stable operation metadata, source charge ID, destination account, amount and currency. No match in an inconclusive listing is not proof of absence. If a prior transfer is confirmed applied: adopt the original result, no duplicate. If conclusively unexecuted and the same request parameters and idempotency key remain safe (key not expired, parameters unchanged): retry with the same key. If ambiguous, conflicting, incomplete or the idempotency key has expired: block automatic resend and route to authorized reconciliation. A distinct legitimate approved adjustment (e.g. a separately approved partial payment for a scope change on the same engagement) receives its own new business-operation identity and idempotency key. Atomic local dedup ensures no duplicate charge, transfer or payout.
Manually approved exception and staged rollback. The operations team identifies a pricing error in an approved engagement. The team creates a manually approved exception: engagement paused, buyer and provider notified, corrected terms proposed. If both parties accept, the engagement resumes with corrected terms. If either party rejects, the engagement is cancelled with appropriate refund. The platform's staged rollback for new marketplace features preserves the reconciled ledger: no feature rollback creates an inconsistent financial state.
Residual risks. Provider credential currency depends on document submission; real-time verification with issuing authorities is not available for all credential types. Stripe Connect fee structure and terms may change. Marketplace liquidity depends on provider and buyer adoption.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.