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 guided payment intent

Entorno sandbox
https://sandbox.cryptopocket.io/api
Entorno sandbox
https://sandbox.cryptopocket.io/api
POST
/createGuidedPayment
Creates a crypto purchase and returns a URL gateway page where the end user choose the payment method, fill the wallet etc

What the user does on the gateway page#

1.
Reviews the purchase amount and token
2.
Selects a payment method: card, psd2, or transfer
3.
Enters the destination wallet address (or connects via Magic wallet if available)
4.
Confirms wallet ownership
5.
Accepts data cession and terms & conditions
6.
Submits the payment:
card / psd2 → redirected to the payment provider
transfer → shown bank details (IBAN, BIC, concept) and confirms once sent

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
guided_payment_eur_only200Non-EUR fiat is not supported for guided payments
limit_exceded200Quarterly card purchase limit exceeded
coin_not_supported200coin_symbol + coin_chain pair is not active
min_purchase200Amount below project minimum. message includes the minimum
(exception message)200Unhandled internal error

Solicitud

Parámetros de Header

Parámetros del Body application/json

Ejemplos

Respuestas

🟢200
application/json
Bodyapplication/json

Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location 'https://sandbox.cryptopocket.io/api/createGuidedPayment' \
--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"
}'
Respuesta Ejemplo de Respuesta
{
  "status": "success",
  "message": "guided_payment_created",
  "data": {
    "payment_id": "aBcDeFgHiJkLmNoPqRsTuVwXy",
    "gateway_url": "https://b2b.cryptopocket.io/payment/aBcDeFgHiJkLmNoPqRsTuVwXy",
    "external_id": "order-abc-001"
  }
}
Modificado en 2026-06-29 08:26:34
Anterior
Create Payment Intend
Siguiente
Retrieve payment
Built with