Wallet
Wallet

Calculate Subscription Tax

Calculate tax for a specific subscription plan and type based on country code.

post/api/v1/wallet/subscription/calculate-tax

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

Request body

country_codestring required

ISO country code (e.g. IN, US)

plan_namestring required

Subscription plan name (e.g. free, plus, pro)

plan_typestring required

Plan type (e.g. monthly, yearly)

Response

Successful Response

successboolean
country_codestring required
currencystring required
amount_in_currencynumber required
tokens_per_monthinteger required
tax_percentagenumber required
tax_amountnumber required
total_amountnumber required
tax_detailsobject[] nullable
errorstring nullable

Changes

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