KuvarPay API
Home
Home
  1. Checkout Sessions
  • Overview
  • SDK Integration Guide
  • Webhooks Integration Guide
  • Subscriptions Guide
  • Transactions
    • Calculate required crypto amount for a fiat target
      POST
    • Create a new fiat transaction
      POST
    • Get transaction by ID
      GET
    • List transactions
      GET
    • Public transaction status by reference
      GET
    • Demo pay (sandbox/testing)
      POST
  • Checkout Sessions
    • Create a checkout session (returns authToken for SSE)
      POST
    • Get a checkout session
      GET
    • Receive payment status webhook for session
      POST
  • SSE
    • Subscribe to transaction updates (SSE)
      GET
    • Subscribe to session updates (SSE)
      GET
  • Currencies
    • List supported currencies
      GET
  • Sandbox
    • Simulate sandbox error scenarios for a transaction
      POST
    • Deliver a test webhook to a URL
      POST
    • List available sandbox error scenarios
      GET
    • Get sandbox environment info
      GET
    • Reset all sandbox data for your business (destructive)
      DELETE
  • Sandbox Simulator
    • Start the sandbox transaction simulator
      POST
    • Stop the sandbox transaction simulator
      POST
    • Get current status of the sandbox transaction simulator
      GET
    • Update simulator configuration
      PUT
    • Force execute a specific scenario for a transaction (testing only)
      POST
    • Force execute a specific scenario for a transaction (URL param)
      POST
    • List pending sandbox transactions available for simulation
      GET
    • Reset sandbox transactions to PENDING for testing
      POST
  • Invoices
    • Create a new invoice
    • Send invoice email to customer
  • Payment Links
    • Create a new payment link
  • Subscriptions
    • Create subscription checkout session
    • Get a subscription checkout session by UID
    • Confirm subscription checkout session
    • Get stablecoin currencies supported for subscriptions
    • Submit relay authorization for subscription
    • Create a new subscription
    • Get a subscription by UID
    • Get relay authorization status for a subscription
    • Update a subscription
    • Cancel a subscription
    • Create a new subscription plan
    • List subscription plans
    • Get a subscription plan by UID
    • Update a subscription plan
    • Create a price for a subscription plan
    • Get prices for a subscription plan
    • Update a subscription price
    • Create a subscription invoice
    • List subscription invoices
    • Create a metered subscription invoice
    • Get a subscription invoice by UID
    • Charge a subscription invoice
    • Get charge attempts for an invoice
  • Payment Fiat Rates
    • Get fiat rate for a specific currency
    • Get multiple fiat rates
    • Update NGN rate from CryptoCompare
    • Update all supported fiat rates
    • Get Flutterwave transfer rates (debug/testing)
    • List supported bank transfer and mobile money currencies
    • Clear the fiat rates cache
    • Get cache statistics
  • Transfer Fees
    • Get transfer fee for a specific amount and currency
    • Get optimal transfer fee (bank vs mobile money)
    • Get all stored transfer fees
    • Manually update transfer fees from Flutterwave
    • Get currencies supported for transfers
  • Schemas
    • Schemas
      • CalculatePaymentRequest
      • CalculatePaymentResponse
      • CreateTransactionRequest
      • Transaction
      • CreateTransactionResponse
      • CheckoutSessionCreateRequest
      • CheckoutSession
      • CheckoutSessionDetails
      • CheckoutSessionGetResponse
      • PaymentStatusWebhookPayload
      • SimpleAck
      • ErrorResponse
      • CurrenciesResponse
      • SandboxDeliveryResult
      • SandboxSimulateErrorRequest
      • SandboxSimulateErrorResponse
      • SandboxTestWebhookRequest
      • SandboxTestWebhookResponse
      • SandboxErrorScenariosResponse
      • SandboxInfoResponse
      • SandboxResetRequest
      • SandboxResetResponse
      • CreateInvoiceRequest
      • CreateSubscriptionCheckoutSessionRequest
      • InvoiceResponse
      • CreateSubscriptionCheckoutSessionResponse
      • CreateInvoiceResponse
      • ConfirmSubscriptionCheckoutSessionRequest
      • SendInvoiceEmailRequest
      • ConfirmSubscriptionCheckoutSessionResponse
      • SendInvoiceEmailResponse
      • SubscriptionCurrency
      • CreatePaymentLinkRequest
      • SubscriptionCurrenciesResponse
      • PaymentLinkResponse
      • CreatePaymentLinkResponse
      • CreateSubscriptionRequest
      • Subscription
      • UpdateSubscriptionRequest
      • SubscriptionResponse
      • CreatePlanRequest
      • UpdatePlanRequest
      • SubscriptionPlan
      • CreatePriceRequest
      • UpdatePriceRequest
      • SubscriptionPrice
      • PlanResponse
      • PlansListResponse
      • PriceResponse
      • PricesListResponse
      • SubscriptionInvoice
      • ChargeInvoiceRequest
      • ChargeAttempt
      • InvoicesListResponse
      • ChargeResponse
      • ChargeAttemptsListResponse
      • SubscriptionCheckoutSession
      • SubscriptionCheckoutSessionResponse
  1. Checkout Sessions

Get a checkout session

GET
/api/v1/checkout-sessions/{sessionId}
Checkout Sessions

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Path Params

Header Params

Responses

🟢200OK
application/json
Session returned
Body

🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/checkout-sessions/' \
--header 'x-business-id;' \
--header 'x-api-key: <api-key>'
Response Response Example
200 - sample
{
    "success": true,
    "data": {
        "sessionId": "sess_123",
        "amount": 500000,
        "currency": "NGN",
        "description": "Invoice #12345",
        "status": "PENDING",
        "paymentTolerance": 2,
        "fromCurrency": "USDT",
        "fromNetwork": "TRON",
        "refundAddress": "TXXXX...",
        "depositAddress": "TYYYY...",
        "expiresAt": "2025-01-01T12:30:00Z",
        "createdAt": "2025-01-01T12:00:00Z",
        "updatedAt": "2025-01-01T12:05:00Z",
        "transactions": [
            {
                "id": "trxn_123",
                "businessId": "biz_001",
                "customerName": "Jane Doe",
                "customerEmail": "jane@example.com",
                "walletAddress": "TYYYY...",
                "amount": 500000,
                "cryptoAmount": 750.12,
                "currency": "NGN",
                "cryptoCurrency": "USDT",
                "status": "PENDING",
                "payoutStatus": "PENDING",
                "transactionHash": null,
                "blockConfirmations": 0,
                "fees": 5000,
                "exchangeRate": 666.6,
                "invoiceId": "inv_001",
                "paymentLinkId": "pl_001",
                "createdAt": "2025-01-01T12:00:00Z",
                "updatedAt": "2025-01-01T12:05:00Z",
                "accountName": "KuvarPay LTD",
                "accountNumber": "0123456789",
                "actualAmount": 0,
                "addressSource": "generated",
                "bankCode": "999999",
                "callbackUrl": "https://merchant.test/webhook",
                "depositAddress": "TYYYY...",
                "description": "Payment for Order 12345",
                "estimatedUsdtAmount": 750.12,
                "expectedAmount": 750.12,
                "expiresAt": "2025-01-01T12:30:00Z",
                "externalId": "ext_001",
                "fromAmount": 750.12,
                "fromCurrency": "USDT",
                "fromNetwork": "TRON",
                "isMobileMoney": false,
                "notes": "",
                "paymentTolerance": 2,
                "redirectUrl": "https://merchant.test/thank-you",
                "reference": "RS-20250101-ABC123",
                "refundAddress": "TXXXX...",
                "refundAmount": 0,
                "refundTxHash": null,
                "toAmount": 500000,
                "toCurrency": "NGN",
                "toNetwork": null,
                "txHash": null,
                "type": "CHECKOUT",
                "walletReferenceId": "wref_001",
                "checkoutSessionId": "sess_123",
                "gateioOrderId": null,
                "usdValue": 750.12,
                "usdtAmount": 750.12,
                "riskFlags": [],
                "riskLevel": "LOW",
                "riskScore": 5,
                "depositTxHash": null,
                "settlementId": null
            }
        ]
    }
}
Modified at 2025-09-15 21:23:04
Previous
Create a checkout session (returns authToken for SSE)
Next
Receive payment status webhook for session
Built with