> ## Documentation Index
> Fetch the complete documentation index at: https://doc.raliopay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Swap Completed

> Webhook event fired when an FX swap settles and the destination wallet is credited

<Info>
  **Event Name:** `swap_completed`
</Info>

## Event Payload

The webhook payload contains the following structure:

<CodeGroup>
  ```json Example Payload theme={null}
  {
    "eventId": "b48d0c6e-9a17-4f2b-8c53-d71e9f0a4b62",
    "eventType": "swap_completed",
    "timestamp": "2026-06-22T11:00:07.5241190Z",
    "data": {
      "status": "COMPLETED",
      "swapType": "fxSwap",
      "orderId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
      "ownReference": "FX-SWAP-2026-001",
      "source": {
        "type": "account",
        "debitedAccountId": "8befb505-7f8c-4a72-85a5-e7cbc9719ba8",
        "debitedUserId": "15c5277a-8c8c-41d2-9f42-66f82f6f113d"
      },
      "destination": {
        "type": "account",
        "creditedAccountId": "e582cef6-a320-4d0d-afda-446ba16725ac",
        "creditedUserId": "15c5277a-8c8c-41d2-9f42-66f82f6f113d"
      },
      "amounts": {
        "debitedAmount": {
          "amount": 100000,
          "currency": "EUR"
        },
        "fees": {
          "currency": "EUR",
          "total": 1500,
          "breakdown": {
            "systemFee": 1000,
            "merchantFee": 500
          }
        },
        "amountAfterFees": {
          "amount": 98500,
          "currency": "EUR"
        },
        "fx": {
          "pair": "EUR/USD",
          "rate": "1.0823"
        },
        "creditedAmount": {
          "amount": 106607,
          "currency": "USD"
        }
      }
    }
  }
  ```
</CodeGroup>
