Pricing Tables

Update Pricing Table

Update an existing pricing table. All fields are optional.

POST
/pricing-tables/{id}

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

name?string

Display name of the pricing table

slug?string

URL-friendly identifier (must be unique per merchant)

description?string|null

Optional description

heading?string|null

Main heading text displayed above the pricing table

subheading?string|null

Subheading text

isActive?boolean

Whether this pricing table is active

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.getlumen.dev/v1/pricing-tables/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pricingTable": {
    "id": "string",
    "name": "string",
    "slug": "string",
    "plans": [
      {
        "id": "string",
        "stablePlanId": "string",
        "planName": "string",
        "description": "string",
        "interval": "month",
        "versionNumber": 0,
        "isActive": true,
        "features": [
          {
            "slug": "string",
            "displayName": "string",
            "featureType": "boolean",
            "limitValue": 0,
            "creditAmount": 0
          }
        ],
        "prices": [
          {
            "id": "string",
            "planId": "string",
            "currency": "string",
            "unitAmountCents": 0,
            "billingInterval": "month",
            "pricingModel": "flat",
            "stripePriceId": "string",
            "createdAt": "2019-08-24T14:15:22Z"
          }
        ],
        "createdAt": "2019-08-24T14:15:22Z"
      }
    ],
    "createdAt": "2019-08-24T14:15:22Z"
  }
}
{
  "error": "Pricing table not found or access denied"
}
{
  "error": "A pricing table with this slug already exists"
}
{
  "error": "Failed to update pricing table"
}