Softwareโ—† Realistic composite#integration#revenue

Subscription and usage quote-to-cash for a SaaS company

A SaaS company sells platform subscriptions, add-on modules and API usage with ramp deals, mid-term amendments and renewals, rates usage monthly, and bills and collects in Revenue Management with ERP integration.

Illustrative design parameters: 8,000 customers, 25,000 quotes a year, 40 products with subscription and usage components, about 15,000 invoices a month.

Your confidence:Not rated
Batch Data Synchronization ร— 1Request and Reply ร— 2Fire and Forget ร— 1
1

Usage summaries

Metering platform โ†’ Salesforce Inbound
Batch Data Synchronization
Why this pattern

Billing needs daily aggregated usage, not raw events.

Protocol / API
Bulk API 2.0 via middleware
Middleware
MuleSoft
Frequency / volume
Daily, about 300,000 summary rows.
Error handling and retry
Rejected rows reprocessed; late usage handled in next cycle.
Security / auth
Middleware calls Salesforce through an External Client App (JWT bearer) as a least-privilege integration user.
2

Tax calculation

Salesforce โ†’ Tax engine Outbound
Request and Reply
Why this pattern

Accurate tax on invoices.

Protocol / API
Tax engine API
Middleware
None
Frequency / volume
Per invoice run.
Error handling and retry
Retry; invoices held if tax unavailable.
Security / auth
Named Credential with External Credential (OAuth 2.0 client credentials).
3

Invoices and accounting to ERP

Salesforce โ†’ ERP Outbound
Fire and Forget
Why this pattern

ERP owns the ledger and revenue recognition.

Protocol / API
Platform events and nightly batch
Middleware
MuleSoft
Frequency / volume
About 15,000 invoices a month.
Error handling and retry
Reconciliation report; dead-letter queue.
Security / auth
Named Credential with External Credential (OAuth 2.0 client credentials).
4

Payments

Salesforce โ‡„ Payment gateway Bidirectional
Request and Reply
Why this pattern

Card and bank payments with tokens.

Protocol / API
Gateway API and webhooks
Middleware
None
Frequency / volume
Thousands a day.
Error handling and retry
Retry rules; daily settlement reconciliation.
Security / auth
Gateway credentials in Named Credentials; tokens only.