Wallet
Wallet

Get Payment Status

Get the status of a payment/token batch by payment_id. Used for polling from frontend to check if tokens have been credited. SECURITY: Only returns payment info if it belongs to the requesting user.

get/api/v1/wallet/payment-status/{payment_id}

Request

  • Base URL
    https://backend.caspr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: token

Path parameters

payment_idstring required

Response

Successful Response

successboolean
payment_idstring nullable
statusstring nullable

Status: completed, pending, failed, reversed

tokensinteger nullable

Number of tokens in the batch

amountnumber nullable

Amount paid in the specified currency

currencystring nullable

Currency (USD, INR, etc.)

source_typestring nullable

Source type: topup, subscription, etc.

created_atstring nullable

When the payment was created

expires_atstring nullable

When the tokens will expire

Changes

No recorded changes to this operation across all 1 revision of this API.