GET
/
v2
/
price_plans
/
{price_plan_id}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

price_plan_id
string
required
Maximum length: 50

Query Parameters

version
string

Optional version to get a specific version. Gets latest version if it is not provided. Possible values:

  1. LATEST - Get the latest version of the price plan, can be draft
  2. ACTIVE - Get the latest active version of the price plan
  3. NUMBER - Get the specific version of the price plans

Response

200 - application/json

Request to create a price plan

name
string
required

Name of the price plan

Maximum length: 50
type
enum<string>
required

Type of price plan

Available options:
BILLING,
PURCHASE
supportedCurrencies
string[]
required

List of currencies supported by the price plan

id
string
required
Maximum length: 50
referenceId
string
required
Maximum length: 50
version
integer
required
status
enum<string>
required
Available options:
DRAFT,
ACTIVE
createdAt
string
required
updatedAt
string
required
description
string

Description of price plan

Maximum length: 255
pricingCycleConfig
object

Represents configurations related to pricing cycle

deferredRevenue
boolean

This option can be enabled while creating a price plan to opt for deferred revenue finalization. i.e, Togai will assume that the price plan may change any time during the pricing cycle and thereby does not compute the revenue in near-real time. This gives the flexibility of editing rate cards in price plan from beginning of the pricing cycle. Enabling this mode comes with the following limitations.

  1. Following rate cards are not supported under a deferredRevenue plan
    • creditGrantRateCards,
    • billingEntitlementRateCards,
    • entitlementOverageRateCards,
    • IN_ADVANCE fixedFeeRateCards,
    • IN_ADVANCE licenseRateCards
  2. Metrics API return revenue metrics only after the grace period of the account's pricing cycle (i.e, only once the invoice becomes DUE)
allowOngoingCycleUpdates
boolean

Allow changes to price plan from the beginning of the ongoing cycle.