Skip to main content
POST
/
accounts
/
payment
/
checkout-url
Get checkout URL
curl --request POST \
  --url https://api.quiva.ai/accounts/payment/checkout-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base_subscription": "price_1234567890",
  "addons": [
    {
      "id": "price_0987654321",
      "type": "addon",
      "quantity": 2
    }
  ]
}
'
{
  "data": "https://checkout.stripe.com/c/pay/cs_test_1234567890"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
base_subscription
string
required

Base subscription price ID

addons
object[]

Subscription addons

Response

Checkout URL generated successfully

data
string<uri>
required