Wallet
Wallet

Subscribe or change plan

Create a new subscription (to_update=False) or change existing plan (to_update=True).

post/api/v1/wallet/subscribe

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

to_updateboolean required

True to change existing plan, False to create new subscription

idempotency_keystring required

Unique key for idempotency

plan_tierstring nullable

PLUS or PRO (required for both create and update)

plan_durationstring nullable

MONTHLY or YEARLY (required for both create and update)

countrystring nullable

ISO country code e.g. IN, US (required when to_update=False)

Response

Successful Response

successboolean
dataobject nullable
subscription_idstring nullable

Changes