Skip to main content
GET
/
api
/
user
/
stripe
/
checkout-result
Get checkout session result
curl --request GET \
  --url https://pria.praxislxp.com/api/user/stripe/checkout-result \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "plan": "Pro",
  "credits": 500,
  "amount": 5000,
  "currency": "usd",
  "accountName": "Personal",
  "paymentStatus": "paid",
  "mode": "payment"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Query Parameters

session_id
string
required

Stripe checkout session ID (from the success URL redirect)

Response

Checkout result retrieved successfully

success
boolean
Example:

true

plan
string

Package display name (e.g., 'Silver', 'Pro')

Example:

"Pro"

credits
integer | null

Number of credits added to the account

Example:

500

amount
integer

Total amount charged in cents

Example:

5000

currency
string

Three-letter ISO currency code

Example:

"usd"

accountName
string

Name of the account credited (institution name or 'Personal')

Example:

"Personal"

paymentStatus
enum<string>

Stripe payment status

Available options:
paid,
unpaid,
no_payment_required
Example:

"paid"

mode
enum<string>

Stripe checkout mode

Available options:
payment,
subscription
Example:

"payment"