# motysaqa/mulesoft-api-led-property-integration architecture

> Architecture diagram of the GitHub repository motysaqa/mulesoft-api-led-property-integration, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/motysaqa/mulesoft-api-led-property-integration
- Repository: https://github.com/motysaqa/mulesoft-api-led-property-integration

## Overview

This is a Mule 4 API-led booking integration: a channel manager requests property search or a quote, the Experience API presents the channel-facing contract, and the Process API coordinates inventory and rates before joining availability with pricing. System APIs adapt a REST property backend and a legacy SOAP rates engine. The README documents caching, parallel downstream calls, currency conversion, and gateway policies. Edges below reflect those documented relationships; source excerpts for the Mule flows were not provided, so implementation-level call details are not inferred.

Main entry points: [`process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml`](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml) (Availability pricing API), [`experience-booking-channel-api/src/main/mule/experience-booking-channel-api.xml`](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/experience-booking-channel-api/src/main/mule/experience-booking-channel-api.xml) (Channel Experience API), [`system-property-api/src/main/mule/system-property-api.xml`](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-property-api/src/main/mule/system-property-api.xml) (Property System API), [`system-legacy-rates-soap-api/src/main/mule/system-legacy-rates-soap-api.xml`](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-legacy-rates-soap-api/src/main/mule/system-legacy-rates-soap-api.xml) (Legacy Rates System API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_channel["Channel experience"]
  node_experience["Channel Experience API"]
  node_channel_contract["Channel API contract"]
  node_channel_maps["Channel mappings"]
end

subgraph group_process["Booking process"]
  node_process_api["Availability pricing API"]
  node_availability_pricing_merge["Availability-price merge"]
  node_fx_rates["FX conversion<br/>[FxRates.dwl]"]
  node_rates_cache[("Rates cache")]
end

subgraph group_systems["System adapters"]
  node_property_api["Property System API"]
  node_property_maps["Property canonical mappings"]
  node_rates_api["Legacy Rates System API"]
  node_rates_map["Rates canonical mapping"]
end

subgraph group_backends["Backend services"]
  node_property_backend["Property REST backend<br/>[Program.cs]"]
  node_rates_backend["Legacy SOAP rates service<br/>[Program.cs]"]
end

node_manager(("Channel manager"))
node_api_manager["API Manager policies"]

node_manager -->|"sends requests"| node_api_manager
node_api_manager -->|"applies policies"| node_experience
node_experience -->|"routes requests"| node_process_api
node_experience -->|"implements contract"| node_channel_contract
node_experience -.->|"transforms payloads"| node_channel_maps
node_process_api -->|"calls in parallel"| node_property_api
node_process_api -->|"calls in parallel"| node_rates_api
node_process_api -->|"merges results"| node_availability_pricing_merge
node_availability_pricing_merge -->|"converts currency"| node_fx_rates
node_process_api -->|"caches rates"| node_rates_cache
node_property_api -->|"calls REST"| node_property_backend
node_property_api -.->|"maps inventory"| node_property_maps
node_rates_api -->|"calls SOAP"| node_rates_backend
node_rates_api -->|"maps rates"| node_rates_map

click node_experience "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/experience-booking-channel-api/src/main/mule/experience-booking-channel-api.xml"
click node_channel_contract "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/experience-booking-channel-api/src/main/resources/api/experience-booking-channel-api.raml"
click node_channel_maps "https://github.com/motysaqa/mulesoft-api-led-property-integration/tree/main/experience-booking-channel-api/src/main/resources/dwl"
click node_process_api "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml"
click node_availability_pricing_merge "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/resources/dwl/merge-availability-pricing.dwl"
click node_fx_rates "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/resources/modules/FxRates.dwl"
click node_rates_cache "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml"
click node_property_api "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-property-api/src/main/mule/system-property-api.xml"
click node_property_maps "https://github.com/motysaqa/mulesoft-api-led-property-integration/tree/main/system-property-api/src/main/resources/dwl"
click node_rates_api "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-legacy-rates-soap-api/src/main/mule/system-legacy-rates-soap-api.xml"
click node_rates_map "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-legacy-rates-soap-api/src/main/resources/dwl/rates-to-canonical.dwl"
click node_property_backend "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/mocks/property-backend/Program.cs"
click node_rates_backend "https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/mocks/legacy-rates-soap/Program.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_experience,node_channel_contract,node_channel_maps toneBlue
class node_process_api,node_availability_pricing_merge,node_fx_rates,node_rates_cache toneAmber
class node_property_api,node_property_maps,node_rates_api,node_rates_map,node_api_manager toneMint
class node_property_backend,node_rates_backend toneRose
class node_manager toneIndigo
```

## Components

### Channel experience

- [Channel Experience API](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/experience-booking-channel-api/src/main/mule/experience-booking-channel-api.xml): `experience-booking-channel-api/src/main/mule/experience-booking-channel-api.xml`
- [Channel API contract](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/experience-booking-channel-api/src/main/resources/api/experience-booking-channel-api.raml): `experience-booking-channel-api/src/main/resources/api/experience-booking-channel-api.raml`
- [Channel mappings](https://github.com/motysaqa/mulesoft-api-led-property-integration/tree/main/experience-booking-channel-api/src/main/resources/dwl): `experience-booking-channel-api/src/main/resources/dwl`

### Booking process

- [Availability pricing API](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml): `process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml`
- [Availability-price merge](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/resources/dwl/merge-availability-pricing.dwl): `process-availability-pricing-api/src/main/resources/dwl/merge-availability-pricing.dwl`
- [FX conversion](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/resources/modules/FxRates.dwl): `process-availability-pricing-api/src/main/resources/modules/FxRates.dwl`
- [Rates cache](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml): `process-availability-pricing-api/src/main/mule/process-availability-pricing-api.xml`

### System adapters

- [Property System API](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-property-api/src/main/mule/system-property-api.xml): `system-property-api/src/main/mule/system-property-api.xml`
- [Property canonical mappings](https://github.com/motysaqa/mulesoft-api-led-property-integration/tree/main/system-property-api/src/main/resources/dwl): `system-property-api/src/main/resources/dwl`
- [Legacy Rates System API](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-legacy-rates-soap-api/src/main/mule/system-legacy-rates-soap-api.xml): `system-legacy-rates-soap-api/src/main/mule/system-legacy-rates-soap-api.xml`
- [Rates canonical mapping](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/system-legacy-rates-soap-api/src/main/resources/dwl/rates-to-canonical.dwl): `system-legacy-rates-soap-api/src/main/resources/dwl/rates-to-canonical.dwl`

### Backend services

- [Property REST backend](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/mocks/property-backend/Program.cs): `mocks/property-backend/Program.cs`
- [Legacy SOAP rates service](https://github.com/motysaqa/mulesoft-api-led-property-integration/blob/main/mocks/legacy-rates-soap/Program.cs): `mocks/legacy-rates-soap/Program.cs`

### Other components

- **Channel manager**
- **API Manager policies**

## Connections

- Channel manager → API Manager policies: sends requests (evidence: `README.md`)
- API Manager policies → Channel Experience API: applies policies (evidence: `README.md`)
- Channel Experience API → Availability pricing API: routes requests (evidence: `README.md`)
- Channel Experience API → Channel API contract: implements contract (evidence: `README.md`)
- Channel Experience API → Channel mappings: transforms payloads
- Availability pricing API → Property System API: calls in parallel (evidence: `README.md`)
- Availability pricing API → Legacy Rates System API: calls in parallel (evidence: `README.md`)
- Availability pricing API → Availability-price merge: merges results (evidence: `README.md`)
- Availability-price merge → FX conversion: converts currency (evidence: `README.md`)
- Availability pricing API → Rates cache: caches rates (evidence: `README.md`)
- Property System API → Property REST backend: calls REST (evidence: `README.md`)
- Property System API → Property canonical mappings: maps inventory
- Legacy Rates System API → Legacy SOAP rates service: calls SOAP (evidence: `README.md`)
- Legacy Rates System API → Rates canonical mapping: maps rates (evidence: `README.md`)
