Create an offramp
POST/ramps
Creates an offramp that converts the user's stablecoin balance to fiat through the given provider. If the user's on-chain holdings do not cover the amount, the shortfall is topped up from their CeFi balance first, which requires a completed KYC and enough CeFi PYUSD — otherwise the request fails with 403 or 400.
The response's redirect_url is the provider page the user completes the sale on. A bridge_plan is present when the user's own cross-chain funds must move first; sign its payloads and submit them to POST /ramps/{id}/bridge/execute before calling POST /ramps/{id}/prepare.
Only offramp is supported here — onramps are served by the DeFi API directly.
Request
Responses
- 201
- 400
- 401
- 403
- 500
- 503
Ramp created successfully
Bad request
Unauthorized
Forbidden. On order creation this also covers an asset that is not available to trade from the country the request came from.
Internal server error
Service unavailable