Off-ramp

Offramp APIs

These APIs allow users to convert crypto assets (e.g., USDT) into fiat currency (e.g., INR) and withdraw funds to bank accounts.


🔹 1. Get Supported Offramp Routes

Retrieve all available crypto → fiat conversion routes.

Endpoint

GET /api/v1/taas/offramp/supported_routes/

Headers

API-KEY: <your-api-key>

cURL

curl --location 'http://127.0.0.1:8000/api/v1/taas/offramp/supported_routes/' \
--header 'API-KEY: <API-KEY>'

Response

{
  "count": 1,
  "results": [
    {
      "id": 5,
      "from_asset": "USDT",
      "to_asset": "INR",
      "is_active": true
    }
  ]
}

Description

  • Lists all supported offramp routes.

  • Use route_id from this API to generate quotes.


🔹 2. Generate Offramp Quote

Generate a real-time quote for converting crypto to fiat.

Endpoint

Headers

Request Payload

cURL

Response

Description

  • Calculates conversion rate, fees, and final payout.

  • Quote is time-sensitive (is_expired flag).


🔹 3. Place Offramp Order

Create an order to convert crypto into fiat and withdraw funds.

Endpoint

Headers

Request Payload

cURL

Response

Description

  • Executes the conversion using the provided quote.

  • Funds are transferred to the selected bank account.


🔹 4. List Offramp Orders

Retrieve all offramp orders for an account.

Endpoint

Query Params

Param
Description

account_id

User account ID

status

Filter by order status

Headers

cURL

Response


🔸 Order Status Values

Status
Description

open

Order created but not executed

filled

Fully executed

partially_filled

Partially executed

cancelled

Cancelled

partially_cancelled

Partially cancelled


🔸 Order Side

Value
Description

buy

Purchase crypto

sell

Sell crypto


📌 Flow Summary

  1. Get routes/supported_routes/

  2. Generate quote/quote/

  3. Place order/place_order/

  4. Track orders/orders/

Last updated

Was this helpful?