Pricing Tables
Add Plan to Pricing Table
Add a plan to an existing pricing table with display configuration.
Authorization
bearerAuth AuthorizationBearer <token>
Use your secret API key as the bearer token
In: header
Path Parameters
id*string
Pricing table ID
Match
^price_table_[A-Za-z0-9]+$Request Body
application/json
planId*string
ID of the plan to add
Match
^plan_[A-Za-z0-9]{22}$displayOrder?integer
Display order (defaults to last)
isPopular?boolean
Whether to highlight as popular
popularText?string|null
Custom popular badge text
buttonText?string|null
Custom CTA button text
buttonOutline?boolean|null
Use outline button style
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.getlumen.dev/v1/pricing-tables/string/plans" \ -H "Content-Type: application/json" \ -d '{ "planId": "plan_abc123", "displayOrder": 3, "isPopular": false, "buttonText": "Get Started", "buttonOutline": false }'{
"pricingTablePlan": {
"id": "string",
"pricingTableId": "string",
"planId": "string",
"displayOrder": 0,
"isPopular": true,
"popularText": "string",
"buttonText": "string",
"buttonOutline": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Pricing table not found or access denied"
}{
"error": "This plan is already in the pricing table"
}{
"error": "Failed to add plan to pricing table"
}