1. OnRamp
CryptopocketAPI
  • Common
    • Authentication
      POST
    • Token Price
      GET
    • Get Available Assets
      GET
  • Users
    • List customers
      GET
    • Create customer
      POST
    • Create customer with delegated KYC
      POST
    • Create company customer
      POST
    • Retrieve KYC/KYB verification status
      GET
    • Create enhanced verification link
      POST
    • Upload Customer Document
      POST
    • Find User
      GET
  • OnRamp
    • List payment methods
      GET
    • Get Quote
      GET
    • Create Payment Intend
      POST
    • Create guided payment intent
      POST
    • Retrieve payment
      GET
    • List on-ramp transactions
      GET
  • OffRamp
    • Get quote
      GET
    • Create OffRamp Transaction
      POST
    • Retrieve off-ramp transaction status
      GET
    • List off-ramp transactions
      GET
  • Bank Accounts
    • List bank accounts
      GET
    • List account transactions
      GET
    • Reconcile payment with bank transaction
      POST
  • Webhooks
    • Available webhooks
    • Webhook Event Subscribe
    • Webhook Event Update
  • Docs
    • Sandbox Environment Instructions
    • CryptoPocket Integration Guide — Buy Flow (On-Ramp)
  • Raíz
  • Schemas
    • FindUserSuccess
    • ReconcilePaymentRequest
    • IntegrationError
    • BankAccount
    • ReconcilePaymentSuccessResponse
    • BankAccountsListResponse
    • ErrorResponse
    • BankAccountTransaction
    • Pagination
    • BankAccountTransactionsResponse
  1. OnRamp

Create Payment Intend

Entorno sandbox
https://sandbox.cryptopocket.io/api
Entorno sandbox
https://sandbox.cryptopocket.io/api
POST
/createPayment
Creates a crypto purchase operation (ramp-on) for a previously registered user. Depending on the fiat currency and payment method, it returns a payment URL or bank transfer details.

Errors#

error / messageHTTPDescription
authorization_incorrect200Invalid, expired, or non-whitelisted token
fail_mandatory_field200Missing user_id
user_not_found200user_id does not exist
user_banned200User is banned
require_kyc200KYC required. data contains the verification URL
kyc_reinforced_required200Failed to create payment, you need complete the onboarding_link to increase your operational amount limits
limit_exceded200Quarterly card purchase limit exceeded
coin_not_supported200coin_symbol + coin_chain pair is not active in projects
min_purchase200Amount below project minimum. message includes the minimum
method_not_allowed200Card payment not allowed for certain integrations
error_payment_creation200Failed to create payment with the provider (card/psd2)

Solicitud

Parámetros de Header

Parámetros del Body application/json

Ejemplos

Respuestas

🟢200Transfer Response
application/json
Bodyapplication/json

🟢200CARD or PSD2 Response
🟢200Error - KYC Required
🟢200Error - Mandatory field
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location 'https://sandbox.cryptopocket.io/api/createPayment' \
--header 'auth;' \
--header 'Content-Type: application/json' \
--data '{
    "user_id": 106,
    "external_id": "23232323231",
    "fiat_symbol": "EUR",
    "fiat_amount": 240,
    "coin_symbol": "USDC",
    "coin_chain": "polygon",
    "wallet": "0xB51b2ce243bb1F88880bC8D287EBbfd7F695Ac55"
}'
Respuesta Ejemplo de Respuesta
200 - Transfer Response - Éxito
{
    "status": "sucess",
    "message": "payment_created",
    "data": {
       "payment_id": "Fx1ZjLOkQGdPHr1u8Rsy9JvTh",
       "iban": "ES6867130002530016234794",
       "bic": "PFSSESM1XXX",
       "concept": 120037,
       "destination_name": "Fintech Payments, S.L"
    }
}
Modificado en 2026-06-29 08:26:37
Anterior
Get Quote
Siguiente
Create guided payment intent
Built with