Acquisition
The checkout path currently available to the workspace. Assigned-offer details are present only when mode is assigned_offer. Unavailable means the assigned offer could not be safely resolved and checkout must remain disabled until status is refreshed.
Variants
Set mode to one of catalog, assigned_offer, unavailable.
CatalogBillingAcquisition
catalog- Name
mode- Type
- enum
- required
One of: catalog- Name
plans- Type
- array<CatalogPlan>
What each catalog plan charges, one entry per plan and billing interval. Absent when the plans' prices can't be read; checkout still works.
Example
{
"mode": "catalog",
"plans": [
{
"plan": "professional",
"terms": {
"productName": "string",
"base": {
"currency": "usd",
"unitAmount": 0,
"interval": "monthly",
"billingCycle": {
"unit": "day",
"count": 0
}
},
"overage": {
"includedQuantity": 0,
"unitAmount": 0,
"interval": "monthly",
"pooled": true
}
}
}
]
}AssignedOfferBillingAcquisition
assigned_offer- Name
mode- Type
- enum
- required
One of: assigned_offer- Name
key- Type
- string
- required
The assigned offer's ID. Equals revision, because offers are never updated.- Name
revision- Type
- string
- required
Opaque assigned-offer revision required to start Checkout.- Name
plan- Type
- enum
- required
Plan granted by the assigned offer.One of: custom- Name
productName- Type
- string
- required
Customer-facing assigned-offer name.- Name
base- Type
- PlanBase
- required
- Name
overage- Type
- PlanOverage
- required
Example
{
"mode": "assigned_offer",
"key": "string",
"revision": "string",
"plan": "custom",
"productName": "string",
"base": {
"currency": "usd",
"unitAmount": 0,
"interval": "monthly",
"billingCycle": {
"unit": "day",
"count": 0
}
},
"overage": {
"includedQuantity": 0,
"unitAmount": 0,
"interval": "monthly",
"pooled": true
}
}UnavailableBillingAcquisition
unavailable- Name
mode- Type
- enum
- required
One of: unavailable
Example
{
"mode": "unavailable"
}