Pricing tables
View as Markdown

Update a pricing table

Needs the catalog:write scope, or a full-access key. About scopes

PATCH
/api/v1/pricing-tables/{id}

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

namestring

Minimum length: 1Maximum length: 200

entriesarray<object>

default_intervalstring

Value in: "monthly" | "annual"

checkout_urlstring | null

Where a plan’s button links. {plan_id}, {plan_code} and {interval} are filled in by the embed. https (http for localhost only).

Maximum length: 2048

activeboolean

Path Parameters

id
Required
string

Format: "uuid"
curl -X PATCH "https://globalymint.com/api/v1/pricing-tables/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "entries": [
      {
        "monthly_plan_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "annual_plan_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "highlight": true,
        "features": [
          "string"
        ],
        "cta_label": "string"
      }
    ],
    "default_interval": "monthly",
    "checkout_url": "https://app.example.com/upgrade?plan={plan_id}&interval={interval}",
    "active": true
  }'

The updated pricing table.

{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "object": "pricing_table",
    "name": "string",
    "entries": [
      {
        "monthly_plan_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "annual_plan_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "highlight": true,
        "features": [
          "string"
        ],
        "cta_label": "string"
      }
    ],
    "default_interval": "monthly",
    "checkout_url": "string",
    "active": true,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}