> For the complete documentation index, see [llms.txt](https://resources.atriptech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.atriptech.com/api-document/product-guides/extensions-and-integrations/special-integrations/fr-integration/fr-technical-integration.md).

# FR Technical Integration

Implement the Ryanair booking, confirmation, payment, and ticketing flow.

Use this guide with [FR Integration](https://resources.atriptech.com/api-document/product-guides/extensions-and-integrations/special-integrations/fr-integration.md). That guide covers approval, review, and production readiness.

### Prerequisites and identifiers

Complete FR approval and obtain sandbox access before development. Contact Atlas to arrange current test access requirements.

Keep each identifier in its own booking context:

* `routingIdentifier` identifies the selected search result.
* The Verify `sessionId` belongs to the Atlas verification step.
* `orderNo` identifies the Atlas order after `order.do`.
* The FR confirmation session belongs to the confirmation experience. Associate it with the current order. Do not use it as the Verify `sessionId`.

### Arrange sandbox test access

Submit the public egress IP address used by the people who test the FR confirmation flow.

* Provide the testing team's office-network IP address, not an application-server or data-centre IP address.
* The testing IP must be EU-based.
* This allowlisting supports the test environment only.

Do not treat sandbox allowlisting as production access. Confirm any production IP, credential, and access requirements separately with Atlas.

#### Sandbox routes and VCC cards

Use the following resources in sandbox only.

**FR test routes**

* `DUB-KIR` and `KIR-DUB`
* `DUB-LON` and `LON-DUB`
* `MAN-DUB` and `DUB-MAN`

**FR sandbox VCC test cards**

| Card number        | Scenario             |
| ------------------ | -------------------- |
| `5200000000002235` | Mastercard, approved |
| `4000000000002701` | Visa, approved       |
| `5476850000000002` | Declined card        |
| `5100000014101198` | Declined card        |

{% hint style="danger" %}
Never use real cards in a test environment.
{% endhint %}

See [Sandbox Test Routes](https://resources.atriptech.com/api-document/support-and-reference/integration-reference/sandbox-test-data/sandbox-test-routes.md) and [Sandbox Test Cards](https://resources.atriptech.com/api-document/support-and-reference/integration-reference/sandbox-test-data/sandbox-test-cards.md) for shared test resources.

### Critical implementation rules

#### FR locale

Set `locale` when creating an FR order. Use a supported FR value, such as `gb/en` or `cn/zh`.

Do not use culture codes such as `en-GB` or `zh-CN`. Choose the customer-facing market and language. Do not derive it from departure location or passenger nationality.

Display the Atlas `confirmationUrl` unchanged. Do not rewrite its market path or session parameters.

See [Locale Reference](https://resources.atriptech.com/api-document/support-and-reference/integration-reference/reference-data/locale.md) for supported values.

#### Price transparency, contact, and consent

Implement these requirements before booking:

* Show FR fare, ancillaries, airline payment fees, Atlas fees, and markup separately.
* Collect real customer email and phone details, plus required subscriber contact details.
* Explain applicable terms. Obtain active consent in your journey and the FR confirmation page.

Do not label non-FR charges as FR charges. Do not equate True Price with base fare. Tell users to sign in or create a myRyanair account after purchase.

Use test or redacted data in review screenshots. Confirm address and per-passenger contact mappings with Atlas before release.

#### Payment fees

Show these amounts separately before purchase:

* Ryanair's original fare and ancillary prices
* Any applicable airline payment or card-processing fee
* Atlas transaction or technical service fees
* Your own booking fee or markup

Only the first two are Ryanair-related charges. Never describe Atlas fees or your own fees as Ryanair charges. You may recover an Atlas cost through your own disclosed service fee.

| Payment route   | Fee and settlement                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Avoid double counting                                                                                                                                              |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Deposit         | You fund your Atlas balance. Atlas pays Ryanair. The [Self-Serve Subscription Account FAQs](https://resources.atriptech.com/frequently-asked-questions/self-serve-subscription-account-faqs.md) describe the Ryanair card-processing fee as a passthrough of the average net cost billed to Atlas. Current Search and Verify documentation does not identify a dedicated Deposit fee field. It also does not establish whether the fee is included in returned fare, tax, or order totals. Do not infer it from `cardChargeList`, which documents MoR and VCC handling fees. | Confirm the fee's inclusion and display treatment with Atlas before adding a separate customer amount.                                                             |
| VCC passthrough | Ryanair charges your VCC directly. Atlas deducts its technical service fee from your Atlas account. In the latest Verify response, confirm that `routing.supportPaymentMethods` includes `3`. For a supported fare, `routing.vendorFare` is returned and `routing.cardChargeList` lists the handling fee where applicable.                                                                                                                                                                                                                                                   | Verify documentation states that the VCC payment fee is already added to `vendorFare`. Fund the VCC to `vendorFare`; do not add the `cardChargeList` amount again. |

{% hint style="warning" %}
Confirm this with Atlas before launch: for FR Deposit, is the current card-processing fee included in a returned fare, tax element, or order total? If so, which field carries it? If not, how must it be quoted and charged?
{% endhint %}

### FR workflow diagram

```mermaid
sequenceDiagram
    actor User as End user
    participant OTA as Subscriber
    participant Atlas
    participant FRAPI as RYR_API
    participant FRUI as RYR confirmation UI

    User->>OTA: Search
    OTA->>Atlas: search.do
    Atlas->>FRAPI: GET /availability
    FRAPI-->>Atlas: Fares for selected route and date
    Atlas-->>OTA: Search response
    OTA-->>User: Search result

    User->>OTA: Verify selected flight
    OTA->>Atlas: verify.do
    Atlas->>FRAPI: /flight
    FRAPI-->>Atlas: 200 OK
    Atlas-->>OTA: Verify response

    opt Optional seat selection
        User->>OTA: Select seat
        OTA->>Atlas: seatAvailability.do
        Atlas->>FRAPI: Seat availability
        FRAPI-->>Atlas: Available seats and seat map
        Atlas-->>OTA: Seats and seat map
    end

    User->>OTA: Continue to confirmation
    OTA->>Atlas: order.do
    Atlas->>FRAPI: /booking
    FRAPI-->>Atlas: Order number
    Atlas-->>OTA: Order response
    OTA->>Atlas: orderCommit.do
    Atlas->>FRAPI: Book commit
    FRAPI-->>Atlas: confirmationUrl
    Atlas-->>OTA: confirmationUrl
    OTA->>FRUI: Open popup or iframe

    User->>FRUI: Confirm flights
    alt Popup mode
        FRUI-->>OTA: Return to redirectUri with confirmation result
    else Iframe mode
        FRUI-->>OTA: postMessage confirmation result
    end

    alt Confirmation completed and matched to the order
        OTA->>Atlas: pay.do
        Atlas->>FRAPI: POST /encrypt + POST /payment
        FRAPI-->>Atlas: Payment result
        Atlas-->>OTA: Payment response
        OTA->>Atlas: queryOrderDetails.do
        Atlas-->>OTA: Current ticketing result
    else Confirmation incomplete, cancelled, or expired
        OTA-->>User: Wait for confirmation or handle cancellation or expiry
    end
```

Call `pay.do` only after a completed and validated confirmation. Payment success does not itself prove ticket issuance.

### Implement the booking flow

1. **Search:** call [Search](https://resources.atriptech.com/api-document/product-guides/booking/booking-step-guides/search.md). Retain the selected `routingIdentifier`.
2. **Verify:** call [Verify](https://resources.atriptech.com/api-document/product-guides/booking/booking-step-guides/verify.md). Display changed prices and required booking data. Stop when required data is unavailable.
3. **Select ancillaries:** request supported seats or baggage in the same booking context.
4. **Create order:** call [Create Order](https://resources.atriptech.com/api-document/product-guides/booking/booking-step-guides/create-order.md). Send validated passenger, contact, ancillary, locale, and FR-specific data.
5. **Commit and confirm:** call [Confirm Order](https://resources.atriptech.com/api-document/product-guides/booking/booking-step-guides/confirm-order.md). Display the returned `confirmationUrl`. Block payment until confirmation validates.
6. **Pay and verify ticketing:** call [Payment & Ticketing](https://resources.atriptech.com/api-document/product-guides/booking/booking-step-guides/payment-and-ticketing.md). Poll [Query Order](https://resources.atriptech.com/api-document/product-guides/booking/booking-step-guides/query-order.md) to a terminal result.

Use the endpoint references for request schemas. Do not create unsupported passenger fields or inferred mappings.

### Display the confirmation page

Use the `confirmationUrl` exactly as returned by Atlas.

* **Popup:** provide the configured `redirectUri` for the completion return.
* **Iframe:** display the URL in the iframe. `redirectUri` does not drive completion in this mode.

Keep the confirmation page visible until completion, cancellation, or expiry. Ensure your interface clearly returns the user to the booking result.

### Handle confirmation completion

Treat popup completion and iframe completion as different transports:

* A popup returns the user to the configured redirect page. The FR return uses a URL fragment such as `#session=...&status=...`; a `status` of `200` indicates completed confirmation.
* An iframe sends a browser message to the embedding page.

Associate the FR confirmation session with the active Atlas order. Do not treat an unverified callback field as a required input. For iframe messages, validate the allowed origin, `event.source`, and expected message structure. Make handling idempotent because completion events can repeat.

Do not authorize `pay.do` from an arbitrary URL value, a message type alone, or a page-load event. Treat cancellation, timeout, unload, malformed messages, and unmatched sessions as incomplete confirmation.

### Payment timing and expiry

You may collect consumer payment according to your own payment design. However, call Atlas `pay.do` only after FR confirmation completes.

The FR confirmation window expires 30 minutes after order creation. Handle cancellation, abandonment, and expiry without calling `pay.do`. If you already collected consumer funds, use your own customer-payment and refund process.

After `pay.do`, poll Query Order until a terminal state. A successful ticketing result has `orderStatus="2"` and `ticketStatus="1"`. Handle cancellation and unsuccessful outcomes separately.

### Recommended development test coverage

Use these scenarios to guide development testing. They are not a certification form or production sign-off checklist. Use the current API references and your approved integration scope as the source of truth.

1. **Standard booking:** complete Search, Verify, Create Order, Confirm Order, FR confirmation, `pay.do`, and final order polling.
2. **Ancillaries and pricing:** test supported baggage or seat selection. Confirm the ancillary charges and total price display correctly.
3. **Payment paths:** test each approved payment model. Use sandbox test cards for VCC scenarios.
4. **Confirmation recovery:** test cancellation, popup closure, expiry, and unmatched confirmation. Do not call `pay.do` for incomplete confirmation.
5. **Refund or disruption:** test the available involuntary-refund or disruption path. If sandbox does not support it, record the limitation for Atlas review.

### Troubleshooting

| Situation                     | Required action                                                          |
| ----------------------------- | ------------------------------------------------------------------------ |
| Confirmation is incomplete    | Do not call `pay.do`. Let the user continue, cancel, or expire.          |
| Completion cannot be matched  | Keep payment blocked. Recheck the active order and confirmation context. |
| No iframe completion event    | Validate the embed, allowed origin, and message listener.                |
| Confirmation window expires   | Do not call `pay.do`. Start a new eligible booking flow if needed.       |
| Payment responds successfully | Poll Query Order for final ticketing status.                             |

For endpoint-specific errors, use [Error Codes](https://resources.atriptech.com/api-document/support-and-reference/troubleshooting-and-support/errors-handing.md) and contact Atlas through your existing support channel.

#### FAQ: Why does the Ryanair confirmation page show HTTP 403 or CloudFront Access Denied in Sandbox?

This issue occurs when the browser opens the Ryanair confirmation page.

Atlas calls this environment **Sandbox**. The corresponding Ryanair confirmation-page environment is **SIT**.

HTTP `403` means access was denied. It does not identify the root cause by itself. Do not assume the browser IP is not allowlisted.

Contact Atlas through your existing technical support channel. Include:

* the Atlas order number and, if available, the `orderCommit.do` request ID
* the public egress IP of the network used by the tester's browser, not an assumed API-server IP
* the failure time and time zone
* a full error-page screenshot, including the CloudFront Request ID when shown
* whether you used a newly generated confirmation link and which browser you used
* whether that browser-network IP was previously confirmed as allowlisted

The `orderCommit.do` request ID and CloudFront Request ID are different identifiers. Provide both when available.

Atlas will investigate using the supplied details and coordinate with Ryanair when needed. Atlas will provide specific instructions if retesting is required.

Access to the confirmation page does not confirm payment, ticketing, or UAT completion.

### Related guides

* [FR Integration](https://resources.atriptech.com/api-document/product-guides/extensions-and-integrations/special-integrations/fr-integration.md)
* [Ryanair (FR) UAT and Screenshot Review](https://resources.atriptech.com/api-document/product-guides/extensions-and-integrations/special-integrations/fr-integration/ryanair-fr-uat-and-screenshot-review.md)
* [Locale Reference](https://resources.atriptech.com/api-document/support-and-reference/integration-reference/reference-data/locale.md)
* [Confirm Order](https://resources.atriptech.com/api-document/product-guides/booking/booking-step-guides/confirm-order.md)
* [Production Go-Live](https://resources.atriptech.com/api-document/readme-1/production-go-live.md)
