API referenceSwaps
Read a swap order
GET
apiKeyheader
x-api-key<token>id*stringFormat
uuidapplication/json- response
code*numberHTTP status code
message*stringHuman-readable message
data?Response payload
metadata?errors?array<string>Validation errors, when the request was rejected
curl -X GET 'https://api.landedfx.com/api/v1/swap/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "message": "string", "metadata": { "page": 1, "limit": 20, "totalDocs": 42, "prevPage": null, "nextPage": 2, "totalPages": 3 }, "errors": [ "string" ], "code": 200, "data": { "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5", "reference": "string", "provider": "relay", "from": "string", "to": "string", "amountIn": 0, "amountOut": 0, "minAmountOut": 0, "depositAddress": "string", "depositMemo": "string", "recipient": "string", "refundTo": "string", "state": "pending", "final": true, "originTxs": [ "string" ], "destinationTxs": [ "string" ], "receivedIn": 0, "deliveredOut": 0, "refunded": 0, "deadline": "string", "createdAt": "string" }}Get an address to fund a swap POST
Picks the cheapest provider that answers, falling back to the next, and returns a one-time address to send to. Price first with `POST /swap/quotes`, which needs no address. Orders are tracked for you: read `GET /swap/orders/{id}` or subscribe to the `swap.order.updated` webhook.
Quote a transfer POST
Prices every route between `from` and `to` at your size, across P2P venues, payment rails, withdrawal networks and swap providers, and returns the best with up to four alternatives.