The architecture should separate the partner-facing experience from the systems responsible for core insurance operations.
This separation lets the partner interact with a consistent interface while the orchestration layer manages the differences between internal systems.
The embedded insurance API should not simply forward requests from a partner to the PAS. It should control how requests enter the insurance environment.
For instance, if the partner needs a quote, the API layer will ensure validation of required fields, authentication of the caller, application of product policies, conversion of the data package into PAS compatible format, and consistent responses from the system. Such a layer can manage issuance of policies, billing, payment status, retries, transaction IDs, and notifications downstream.
This separation will also ensure that the partner will not need to know about the PAS architecture, whether the PAS is using REST, SOAP, stored procedures, scheduled jobs, etc.
The difficulty is usually not the first successful API call. It is everything that happens around it.
A customer purchasing insurance during checkout expects an immediate result.
A legacy core may use scheduled jobs, files, or batch processing as well. It is not always required to have a real-time interaction with every system internally. It would be more effective to separate the customer-facing process from the back-office process that can happen afterward. The Quote and Eligibility processes may need to happen in real time.
Embedded distribution does not necessarily imply only one partner and one customer experience. For example, an insurance company could offer its services to the e-commerce site, the lender, the travel firm, and others. They all could have diverse requirements for handling customer data, coverage, eligibility, and transactions.
Developing distinct product logic for each of the partners leads to maintainability issues. With a configurable product approach, insurance capabilities can still be reused while partner requirements will be implemented on an integration level.
A policy can be issued in seconds while its financial lifecycle continues for months.
These events cannot be designed independently of policy status.
The partner may have its own customer ID. The PAS may create a policy ID. Billing may create an invoice or transaction ID. The payment provider may use another reference. Those identifiers need to remain connected.
A production integration needs to answer more than whether an API request succeeded.
This requires correlation IDs, structured API logs, immutable audit records, timestamps, and monitoring across the transaction lifecycle.
Modern distribution channels move at a very different pace from traditional insurance systems. For this project, that gap created several challenges that had to be addressed without disrupting the client’s existing operations.
The client was a medium-sized insurance company dealing with property and casualty insurance in the North American region. The existing insurance ecosystem was able to take care of a good number of steps in the insurance process cycle.
- PAS: Guidewire PolicyCenter
- Billing: Guidewire BillingCenter
- API gateway: Amazon API Gateway
- Queue or streaming layer: Apache Kafka
- Cloud environment: AWS
- Distribution partners: 8 partners targeted for the initial rollout
- Integration team: 2 backend engineers, 1 integration architect, 1 QA engineer, and 1 business analyst
This customer wanted the ability to provide access to their policy quoting and policy issuance functionality using new digital distribution channels along with retaining the same policy and billing applications.
This problem was that the new channels required near real-time interactions via an API, but the existing insurance application landscape was built on system interfaces and scheduling.
The integration therefore had to work around the existing architecture without disrupting the systems already responsible for core insurance operations.
The Factors that Were Limiting the Client’s Progress
The initial issue was the onboarding process for partners. Prior to the solution being developed, the onboarding process for a new distribution partner typically took 8 to 10 weeks. The process included partner-specific data mapping, workflow configuration, testing, and billing and reconciliation verification.
The issue became harder to deal with since the insurance company was planning to expand the use of digital channels. It also increased the amount of work the company had. They were spending 20 to 25 hours per week investigating exceptions for policies, billing, and payments.
For instance, one transaction could be completed in PAS but not in billing while another transaction might have been completed in billing but not in PAS. This necessitated that operations and finance people reconcile transactions in order to identify the status of each transaction.
In essence, the integration process would need to consider the entire transaction life cycle, starting from quote and binding through to policy creation, billing, payments, accounts, and reconciliation.
Why Slow Partner Onboarding and Billing Exceptions Cost Insurers Revenue
Every additional week required to onboard a distribution partner delayed the commercial value of that relationship. The operational cost was equally important. Each unresolved exception created another investigation for finance, operations, or customer support.
The project started with the following baseline:
| Metric | Baseline |
|---|
| Partner onboarding time | 8 to 10 weeks |
| Quote response time | 1.5 to 2.0 seconds |
| Manual reconciliation effort | 20 to 25 hours/week |
| Reconciliation exception rate | 4% to 5% of transactions
|
| Partners targeted in initial rollout | 8 |
| Core policy platform | Guidewire PolicyCenter |
| Billing platform | Guidewire BillingCenter |
With these figures, the nature of the problem was well understood. The insurance company did not just require more endpoints. It required a uniform integration level that would manage varied partner payloads, coordinate policies and financial processes, handle asynchronous processing, and maintain a transactional trail.
How We Built the Integration
The solution was developed based on the real policy and financial processes of the client. We built the solution in eight steps, each targeting one specific problem in the policy and billing lifecycle.
1. We Mapped the Policy and Billing Workflows
We first mapped the existing policy, billing, payment, accounting, and downstream processes before introducing new integration logic.
We reviewed:
- Policy creation and updates
- Existing interfaces
- Billing workflows
- Payment processing
- Data structures
- Batch jobs
- Downstream dependencies
- Failure points
- Reconciliation processes
We also identified the system of record for each major data element. For example, policy status was determined through PAS; payment status was determined through the payment system, and financial postings were made using the accounting system. Thus, the integration would not result in duplication of transactions.
The mapping of workflows enabled us to distinguish those operations that required a timely response and those that did not.
2. We Added an Embedded Insurance API Layer
We placed an embedded insurance API layer between the distribution channels and the existing insurance systems.
The Amazon API Gateway handled external traffic, while the orchestration layer managed the business workflow between partners, PolicyCenter, BillingCenter, payment services, and downstream systems.
The implementation handled:
- OAuth 2.0 client credentials for partner authentication
- Request validation
- Payload transformation
- Quote requests
- Eligibility checks
- Policy issuance
- Transaction correlation
- Retry handling
- Error responses
- Partner-specific routing
The PAS did not need to understand every partner’s interface. The integration layer translated partner requests into the structures expected by the underlying insurance systems and returned consistent responses to the distribution channel.
This also gave the team a controlled place to introduce partner-specific requirements without modifying the core policy platform for every new integration.
3. We Created a Configurable Product Model
We designed the integration so that partner-specific requirements could be configured without duplicating the underlying insurance workflow.
The product model accounted for differences in:
- Coverage
- Eligibility
- Pricing inputs
- Customer data
- Partner workflow
- Transaction requirements
This allowed the same core capabilities to support different distribution experiences. Instead of building a separate policy integration for each partner, the orchestration layer could apply the appropriate configuration before sending the transaction to the existing insurance systems.
4. We Combined Real-Time and Asynchronous Processing
We separated customer-facing transactions from processes that did not require an immediate response.
Real-time processing handled activities such as:
- Eligibility checks
- Quote requests
- Customer acceptance
- Bind or policy issuance
Asynchronous processing handled activities such as:
- Accounting updates
- Reconciliation
- Reporting
- Downstream notifications
- Back-office posting
Apache Kafka provided the event and queue layer for these asynchronous workflows. This separation allowed slower processes downstream not to hinder customer-related transactions needlessly. This division provided the integration with a mechanism of continuing with less critical activities in case one of the downstream systems was temporarily unavailable.
5. We Connected Policy Transactions With Billing and Payments
We treated billing as part of the policy lifecycle rather than as a separate integration.
For a new policy, the relationship was:
Policy → Premium → Payment → Billing record
For an endorsement:
Endorsement → Premium adjustment → Billing update
For a cancellation:
Cancellation → Premium calculation → Refund or outstanding balance
Payment failures also required defined states and retry behavior. A failed payment couldn’t be treated as a payment issue alone, because it affected policy status, billing records, and customer communication. The integration therefore created a relationship among the policy transaction, payment transaction, and billing record.
6. We Automated Reconciliation Across Systems
Once several systems participated in the same transaction, reconciliation became a core requirement.
We connected the transaction chain:
Partner transaction → Policy → Premium → Payment → Ledger
The reconciliation process identified exceptions such as:
- Policy without corresponding payment
- Payment without policy reference
- Duplicate transaction
- Missing transaction
- Incorrect premium
- Failed downstream update
Rather than requiring the operations teams to make manual comparisons between records, the process revealed which transactions were actually exceptions.
The initial exception rate for reconciliation was around 4% to 5% of transactions, with the goal being to reduce this to less than 2% once implemented.
In addition, the manual effort required was aimed to be reduced from around 20 to 25 hours a week to 8 to 10 hours a week through the automatic matching of relevant policy, payment, billing, and ledger records.
7. We Added Security, Logging, and Audit Controls
Both security and traceability were considered during the process of integration instead of at the end when the transaction flow was already completed. The partner authentication used OAuth 2.0 Client Credentials and API access control through gateway policies.
Other controls included:
- Field-level encryption for sensitive customer and policy data
- Immutable audit logs for policy and transaction events
- Correlation IDs across partner, API, PAS, billing, and payment requests
- Role-based access for internal operations
- API rate limiting
- Monitoring for failed or unusual transaction patterns
The architecture also maintained a transaction trail that allowed the team to follow a request from the originating distribution partner through the API layer, policy system, billing system, and downstream financial processes.
8. We Tested With a Controlled Rollout
We started with a controlled partner rollout rather than opening the integration to all eight distribution channels simultaneously.
The rollout followed:
Pilot partner → Core workflow testing → Exception testing → Production launch → Additional partners
Testing covered the normal customer journey as well as failure scenarios.
We tested:
- Duplicate quote requests
- Duplicate bind requests
- API timeouts
- Payment failures
- Policy cancellations
- Refunds
- Endorsements
- Billing failures
- Partial system failures
- Retry scenarios
- Reconciliation exceptions
The first partner was targeted for production launch within 6 weeks, compared with the previous 8 to 10 week onboarding cycle. The target quote response time was approximately 1.2 seconds, compared with the previous 1.5 to 2.0 second baseline.
Handling Partial Failures Between Policy, Billing and Payment Systems
A successful response from one system did not guarantee that the complete insurance transaction had finished.
For example:
Payment succeeds → PAS unavailable → Policy not issued
Or:
Policy issued → Billing update fails → Financial record incomplete
We handled these situations by defining explicit transaction states rather than treating every workflow as one atomic API call.
Pending-Bind Status
Where the workflow required it, a transaction could remain in a controlled pending-bind state while dependent operations completed. This prevented the system from incorrectly representing a transaction as fully completed when one downstream step had failed.
Saga and Compensating Actions
For multi-system workflows, we defined recovery behavior for situations where a later transaction failed.
For example:
Quote → Payment → Bind → Billing → Accounting
If the billing was unsuccessful after the binding of the policy, the system moved the transaction in a pending or exception state and then taken the appropriate action.
When reversal of the transaction was necessary according to business rules, the compensating action would be performed instead of repeating the transaction.
Outbox Pattern
For events that needed to move reliably from a transactional system to Kafka, we used an outbox-style approach. The event was first recorded as part of the relevant transaction. A separate process then published it to the event stream.
This reduced the risk of a database transaction committing while its downstream event was lost. The key principle of design was that each inter-system transaction must have a fail state and a way of recovering from it.
Idempotency and Duplicate Quote or Bind Requests
Embedded distribution also introduces duplicate requests. This could be caused by the partner sending back the same request, as it did not receive a reply to the previous request, although the previous one was successfully processed.
Without idempotency, that retry could create:
- Duplicate quotes
- Duplicate policies
- Duplicate payments
- Duplicate billing entries
We therefore treated idempotency as part of the transaction design. Each business transaction could carry an idempotency key that allowed the integration layer to determine whether the request had already been processed.
If the original operation had completed, the system returned the existing result instead of executing the operation again. The same principle applied to timeouts. A timeout did not automatically mean that the transaction had failed. The system first checked the current transaction state before allowing the partner to retry the operation.
Can Your Integration Survive Retries, Timeouts, and Partial Failures?
Our insurance software testing services validate every quote, bind, billing, and payment flow across your PAS, billing system, and partner APIs before launch.
Embedded Insurance Compliance: Licensing, Audit Trails and Data Protection
Adding a digital distribution channel did not remove the insurer’s existing regulatory obligations. The integration therefore had to support the compliance requirements associated with the insurance products and jurisdictions involved.
Licensing and Distribution Responsibilities
Before partner onboarding, the workflow needed to establish:
- Which entity was underwriting the policy
- Which entity was distributing or presenting the product
- Where the customer was located
- Who was permitted to market or bind the coverage
- Which jurisdiction-specific requirements applied
The technical architecture could enable a transaction, but it could not determine whether a particular entity was legally permitted to sell or bind a product.
Audit Trails
The integration maintained enough transaction information to reconstruct important policy events.
This included:
- Partner identity
- Request timestamp
- Customer or policy reference
- Product version
- Quote result
- Bind decision
- Payment status
- Policy status
- Changes made after issuance
Correlation IDs connected these events across the partner, API, policy, billing, and payment layers. That made it possible to investigate a failed policy or billing transaction without relying on isolated application logs from individual systems.
Data Protection
Furthermore, the integration ensured that unnecessary transfer of customer information from one system to another was avoided. For data transferred across system boundaries was encrypted, access control, retention policy, and field-level security, according to the respective requirements.
Compliance requirements therefore became architecture inputs and not documents created after deployment.
Results: Faster Partner Onboarding and Fewer Reconciliation Exceptions
The integration changed both the partner onboarding process and the operational workload surrounding policy and billing transactions.
The key project targets and outcomes were:
| Metric | Before | After |
|---|
| Partner onboarding time | 8 to 10 weeks | ~6 weeks |
| Quote response time | 1.5 to 2.0 sec | ~1.2 sec |
| Manual reconciliation effort | 20 to 25 hrs/week | ~8 to 10 hrs/week |
| Reconciliation exception rate | 4% to 5% | ~1.8% |
| Initial distribution rollout | 8 partners targeted | Pilot-first rollout |
The biggest improvement was not simply the faster API response.
The integration gave the insurer a repeatable way to onboard distribution partners without creating a new point-to-point connection for every channel. At the same time, transaction states, idempotency controls, event processing, and automated reconciliation reduced the amount of manual work required when policy, billing, and payment systems did not complete a transaction at the same time.
The architecture also created a clearer operational boundary between the digital distribution channels and the insurer’s existing core systems.
Questions to answer before starting
Leadership teams should establish:
- What system is the source of truth for each major data type?
- Which transactions require real-time processing?
- Which processes can remain asynchronous?
- How complex are billing and payment workflows?
- How will endorsements and cancellations work?
- Who owns customer and payment data?
- How many partners need to be supported?
- What licensing requirements apply?
- What audit and data protection requirements apply?
- Can the existing core handle the expected transaction volume?
- What happens if the PAS, billing system, or payment provider becomes unavailable?
These questions provide a stronger basis for the architecture decision than choosing an API technology first.
Conclusion
Embedded insurance depends on more than connecting a digital channel to a policy system. An embedded insurance API needs to keep policy, billing, payment, and reconciliation workflows coordinated while handling failures, retries, security, and audit requirements. That is where the right integration architecture makes the difference.
At Bacancy Technology, our insurance IT services and solutions help insurers and MGAs connect modern distribution channels with existing insurance infrastructure without disrupting core operations. The goal is a reliable integration that supports today’s digital journeys while creating a practical foundation for future modernization.