1. OffRamp
CryptopocketAPI
  • Common
    • Authentication
      POST
    • Token Price
      GET
    • Get Available Assets
      GET
  • Users
    • User Registration
      POST
    • Check KYC Verification
      GET
  • OnRamp
    • Get payment methods
      GET
    • Get Quote
      GET
    • Create Payment Intend (RampOn)
      POST
    • Get Payment
      GET
    • Get List
      GET
  • OffRamp
    • Get quote
      GET
    • Create OffRamp Transaction
      POST
    • Get rampoff status
      GET
    • Get List
      GET
  • Webhooks
    • Webhook Event Update
      POST
    • Webhook Event Subscribe
      POST
  1. OffRamp

Create OffRamp Transaction

POST
/api/createRampoff
Creates a ramp-off transaction, allowing users to exchange tokens for fiat currency.
A transaction is generated that provides a wallet address where the user must send the tokens. Once the tokens are received, they are converted into the equivalent amount in fiat currency.

Solicitud

Parámetros de Header

Parámetros del Body application/json

Ejemplos

Respuestas

🟢200
application/json
Body

Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://prod.your-api-server.com/api/createRampoff' \
--header 'auth: PK-617403359384' \
--header 'Content-Type: application/json' \
--data-raw '{
  "amount": 100,
  "symbol": "usdc",
  "chain": "polygon",
  "user_id": 106,
  "fiat_symbol": "EUR"
}'
Respuesta Ejemplo de Respuesta
{
    "status": "ok",
    "data": {
        "rampoff": "payment created",
        "wallet": "0xe0Ccfeb1EAd1cA32e0979Eb9b9dFca99D609aE2A",
        "id": "ExM63FJ9ZsAZF2VfTfU4rn7Sq"
    }
}
Modificado en 2026-04-08 23:11:39
Anterior
Get quote
Siguiente
Get rampoff status
Built with