---
title: "Retry on-ramp swap"
method: POST
path: "/api/fma/v1/onramp-swap"
tags: ["Managed Custody Mode"]
---

# Retry on-ramp swap

`POST /api/fma/v1/onramp-swap`

Redo the swap leg of an On-ramp whose bridge succeeded but whose swap failed. Only call this endpoint when the pending-retry endpoint returns a pending item, and use a fresh quote with scene swap_retry. The transaction webhook reports the final result. On-ramp is not yet available for integration; this reference is a preview.

## Headers

- `X-Api-Signature` string, required
- `X-Api-Deadline` string, required
- `X-Api-PublicKey` string, required
- `X-Ur-Id` string
- `X-External-User-Id` string

## Request body

- McOnrampSwapRequest
  - `reqId` string, required — Partner-supplied idempotency key. Keep it stable across retries of the same logical operation.
  - `quoteId` string, required — quoteId from a fresh quote with scene swap_retry.
  - `chainId` string, required — Destination chain ID in CAIP-2 format, from the pending retry.
  - `originalTxHash` string, required — Original On-ramp transaction hash, from the pending retry.
  - `usdcAmount` string, required — Stuck USDC amount in smallest units (pending retry amountRaw).
  - `tokenOut` string, required — Destination token address (pending retry toToken).
  - `minAmountOut` string, required — best.minAmountOut from the retry quote.
  - `aggregator` string, required — best.to from the retry quote (not best.aggregator).
  - `swapCalldata` string, required — best.swapCalldata from the retry quote.

## Response `200`

Standard envelope. Business errors return HTTP 200 with a non-zero code.

- McTxHashResponse — Standard UR OpenAPI response envelope. code 0 means success; a non-zero code is a business error described by message.
  - `code` integer, required — 0 on success; non-zero business error code.
  - `message` string, required — Human-readable explanation. May be empty on success.
  - `data` McTxHashData
    - `txHash` string — On-chain transaction hash of the submitted operation. Submission only; final settlement arrives via the transaction webhook.

---

[API](https://skmtc.net/ur/apis/ur-api.md) · [All operations](https://skmtc.net/ur/apis/ur-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ur/ur-api/revisions/087dcf516ce2/schema)
