Skip to Content
DocsAPI ReferencePayment Intents

Payment Intents API

For detailed API documentation on payment intents, including endpoints, parameters, and response formats, please visit our API Reference .

Use Cases

The Payment Intents API enables various payment scenarios for your application:

  • Gaming: Enable players to purchase in-game assets and withdraw earnings
  • E-commerce: Accept cryptocurrency payments for products and services
  • Digital Services: Offer subscription payments with crypto
  • Marketplaces: Facilitate buyer-seller transactions using blockchain technology
  • Loyalty Programs: Distribute rewards tokens to customers

API Endpoints

The Payment API provides several endpoints:

  • Create Payment Intent (POST /v1/studio/api/payment/intent): Generate a payment intent when a user wants to make a payment
  • Get Payment Intent (GET /v1/studio/api/payment/intent/{id}): Retrieve details about a specific payment
  • List Payment Intents (GET /v1/studio/api/payment/intents): Get all payment intents with optional filtering
  • Withdraw Tokens (POST /v1/studio/api/asset_pro/transfer): Transfer tokens to users (for withdrawals)

Payment Intent Fields

A payment intent object contains the following fields:

FieldTypeDescription
payment_intent_idstringUnique identifier for the payment transaction
payment_chain_idstringBlockchain network identifier (e.g., “arb” for Arbitrum)
payment_addressstringBlockchain wallet address for receiving payment
token_addressstringSmart contract address of the payment token
symbolstringToken symbol (e.g., “USDT”)
decimalsnumberNumber of decimal places supported by the token
crypto_amountstringExact amount of cryptocurrency to be paid
fiat_amountstringEquivalent amount in fiat currency
fiat_currency'TWD' | 'USD'Fiat currency type (TWD or USD)
payment_deadlinenumberPayment expiration time (Unix timestamp)
statusPaymentStatusCurrent payment status
payment_tx_hashstring | nullBlockchain transaction hash of the payment
received_crypto_amountstring | nullActual amount of cryptocurrency received
aggregated_crypto_amountstring | nullTotal amount including any combined payments
refund_amountstring | nullAmount refunded if a refund was processed
refund_tx_hashstring | nullBlockchain transaction hash of the refund
callback_urlstring | nullWebhook URL for payment status notifications
order_dataRecord<string, any> | nullCustom data related to the order
group_keystring | nullIdentifier for grouping related payments

Payment Intent Statuses

When working with the Payment Intents API, you’ll encounter several possible statuses:

StatusDescription
pendingInitial state - waiting for user payment
successPayment received and confirmed
expiredPayment window closed without receiving funds
insufficient_not_refundedReceived amount was too low, pending refund
insufficient_refundedInsufficient payment has been refunded

Getting Started

To integrate the Payment Intents API into your application, you’ll need to:

  1. Obtain API Key - Get your API key from KryptoGO Studio
  2. Choose Integration Path - Select the integration approach that best fits your needs
  3. Implement API Calls - Set up your backend to communicate with KryptoGO services

Visit our API Quick Start Guide for step-by-step instructions to help you get started with your integration, whether you have your own server or need a server solution.