Skip to main content
GET /swap/{id} returns the latest status for a swap created with your API key. Poll every 30 seconds while the status is not terminal.

Statuses

Terminal statuses: completed, refunded, failed, expired.

Underpaid swaps

underpaid is not terminal. The deposit arrived below the quoted amount and the swap is waiting for the route to settle the outcome. Keep polling: the swap can still move to processing and completed, or end as refunded or failed. Do not ask the user to send more funds unless LightSwap support tells you to.

Error format

All errors use the same response shape:

Error codes

Troubleshooting

For what to tell end users when a swap goes wrong, see Refunds.