/ Marketplace Payments → General LedgerStripe Connect · Puzzle GL API · Mercury webhooks · sample data
● Puzzle GL ● Mercury Sample data · simulated API
Book a discovery call
CLIENT WORK · FINTECH MARKETPLACE
Every payment path, booked correctly.
A two-sided marketplace collects from payers (a third-party payer or the customer), keeps a platform fee, and pays service providers through Stripe Connect. This demo shows the accounting design behind it: 11 payment scenarios, each turned into a balanced journal entry and the exact API call that posts it.
Names, rates and amounts are sample data. Calls are simulated. No credentials, no live systems.
Read the case study →
Section
Payment Scenario
Payer Billing (Primary Flow)
Customer Billing
Provider Settlement
Exceptions & Returns
Endpoint · Confirmed from official Puzzle OpenAPI schema POST
{PUZZLE_API_BASE_URL}/company/{companyId}/journalEntries
Request Body · SC-01 — Payer Full Pay
Sample Fee Schedule · Payer-set pricing · the platform does not set customer-facing rates
Standard Job (24-hr turnaround)15% of Collected Job Amount
Extended-Turnaround Job20% of Collected Job Amount
Auto-reclassified (missed due time)20% via system timestamp
Provider FeeCollected Amount minus Platform Fee
Provider job costsProvider's own expense — never on the platform's books
ASC 606 · Agent Treatment
Journal Entry
✓ Balanced
AccountTypeDescriptionDebitCredit
TOTALS——
⚡
No request fired yet
Select a scenario and fire the request
Architecture · Mercury Role
Stripe handles all payment collection and provider payouts via Stripe Connect. Mercury is the platform's bank account where Stripe settles net revenue. When the ACH deposit confirms, Mercury fires a webhook to Core. Core verifies the Mercury-Signature header and pushes the final Puzzle journal entry clearing Stripe Clearing to Cash in Mercury. Paper checks also land in the Mercury Settlement Account before sweeping to Stripe Connect.
Payer / Customer
→
Stripe Connect
→
Mercury
ACH / check settlement
→
Platform Core
webhook receiver
→
Puzzle GL
journal entry
Mercury → Platform Core · Inbound Webhook POST https://api.example-platform.com/webhooks/mercury
Webhook Body · Official Mercury Event Structure · RFC 7396 JSON Merge Patch
Core pushes this → Puzzle GL · Clears Stripe Clearing to Cash