---
title: "Get a swap by id"
method: GET
path: "/api/swap/{id}"
tags: ["Swap"]
---

# Get a swap by id

`GET /api/swap/{id}`

Returns details of a specific swap owned by the authenticated merchant, including the resolved `toAmountInCents` once settlement has produced a destination amount.

## Path parameters

- `id` string, required

## Response `200`

Swap details

- ApiSwapDto
  - `id` string, required
  - `userId` string, required
  - `fromCurrency` 'USDC' | 'EURC', required
  - `toCurrency` 'USDC' | 'EURC', required
  - `amount` number, required — Source amount in cents (smallest unit of fromCurrency)
  - `status` 'INITIATED' | 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED' | 'RETURNED' | 'REFUNDED', required — Merchant-facing status. Internal states (`DEPOSIT_COMPLETED`, `AWAITING_LIQUIDATION`) are collapsed to `PENDING` before being returned, so they will never appear on the wire.
  - `context` 'bridge' | 'privy', nullable — Pipeline a swap follows: `bridge` (3 steps) or `privy` (2 steps).
  - `toAmountInCents` number, nullable — Final destination amount in cents (smallest unit of toCurrency). `null` until the swap settles.
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401` — Unauthorized - Invalid API key
- `404` — Swap not found

---

[API](https://skmtc.dev/inflowpay/apis/inflow-api.md) · [All operations](https://skmtc.dev/inflowpay/apis/inflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inflowpay/inflow-api/revisions/3012dd3dd14a/schema)
