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

Retrieve payment

Entorno sandbox
https://sandbox.cryptopocket.io/api
Entorno sandbox
https://sandbox.cryptopocket.io/api
GET
/payment/{payment_id}
Retrieves the status and details of a purchase operation previously created

Payment statuses (status)#

StatusMeaning
startedPayment created. User has not completed checkout yet (or has not sent the transfer)
pending_bankBank transfer: user confirmed it was sent; pending reconciliation
payment_receivedFiat received. Crypto purchase is being processed
coins_sentCrypto sent to the user’s wallet. Includes txid

When to use this endpoint#

Use caseAction
After createPaymentStore payment_id and poll status until coins_sent
After createGuidedPaymentPoll status while the user completes checkout on gateway_url
PollingQuery periodically until a final status is reached
WebhooksAlternative: subscribe to PAY_IN and COINS_SENT via /api/subscribeToWebhook
Typical polling flow:
1. POST /api/createPayment        → payment_id
2. GET  /api/payment/{payment_id} → status: started
3. GET  /api/payment/{payment_id} → status: payment_received
4. GET  /api/payment/{payment_id} → status: coins_sent + txid

Important notes#

1.
fiat_amount is in cents: divide by 100 to display euros (e.g. 15050 → 150.50 EUR).
2.
Integration scope: you only see payments created with your integration token.
3.
txid only appears when status is coins_sent.
4.
holder may be null if the payment provider has not returned that information yet.

Solicitud

Parámetros de ruta

Respuestas

🟢200
application/json
Bodyapplication/json

Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location 'https://sandbox.cryptopocket.io/api/payment/'
Respuesta Ejemplo de Respuesta
{
  "status": "ok",
  "data": {
    "id": "aBcDeFgHiJkLmNoPqRsTuVwXy",
    "external_id": "order-abc-001",
    "user_id": "100067",
    "status": "started",
    "fiat_amount": 15050,
    "fiat_symbol": "EUR",
    "coin_symbol": "USDC",
    "coin_amount": 148.32,
    "created_at": "2026-06-26T10:30:00.000000Z",
    "holder": null
  }
}
Modificado en 2026-06-26 09:13:40
Anterior
Create guided payment intent
Siguiente
List on-ramp transactions
Built with