Skip to main content
GET
/
price_variants
/
{prefix_id}
Get price variant
curl --request GET \
  --url https://api.crevio.co/v1/price_variants/{prefix_id} \
  --header 'Authorization: <api-key>'
{
  "id": 123,
  "name": "<string>",
  "amount": 123,
  "currency": "<string>",
  "billingType": "one_time",
  "amountType": "<string>",
  "discountedFromAmount": 123,
  "presetAmount": 123,
  "minimumAmount": 123,
  "maximumAmount": 123,
  "recurringInterval": "<string>",
  "intervalCount": 123,
  "trialPeriodDays": 123,
  "revokeAfterDays": 123,
  "hidden": true,
  "archived": true,
  "waitlist": true,
  "position": 123,
  "prefixId": "<string>",
  "benefits": [
    "<string>"
  ],
  "seatQuantity": 123,
  "isDefault": true,
  "isPayWhatYouWant": true,
  "hasFreeTrial": true,
  "isQuantityLimited": true
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Path Parameters

prefix_id
string
required

The resource prefix ID

Response

Price variant details

id
integer
name
string
amount
integer

Price in cents

currency
string
billingType
enum<string>
Available options:
one_time,
recurring,
free
amountType
string

Pricing type (e.g. fixed, pay_what_you_want)

discountedFromAmount
integer | null

Original price in cents for showing a discount

presetAmount
integer | null

Preset amount in cents for pay-what-you-want pricing

minimumAmount
integer | null

Minimum amount in cents for pay-what-you-want pricing

maximumAmount
integer | null

Maximum amount in cents for pay-what-you-want pricing

recurringInterval
string | null

Subscription interval (e.g. month, year)

intervalCount
integer | null

Number of intervals between subscription billings

trialPeriodDays
integer | null
revokeAfterDays
integer | null

Automatically revoke access after this many days

hidden
boolean
archived
boolean
waitlist
boolean

Whether waitlist is enabled for this variant

position
integer
prefixId
string
benefits
string[] | null

List of benefit descriptions for this variant

seatQuantity
integer | null

Number of seats per purchase

isDefault
boolean
isPayWhatYouWant
boolean
hasFreeTrial
boolean
isQuantityLimited
boolean