Pricing tables
View as Markdown

Create a pricing table

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

POST
/api/v1/pricing-tables

Authorization

Authorization
Required
Bearer <token>

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

In: header

Request Body

application/jsonOptional

name
Required
string

Minimum length: 1Maximum length: 200

entries
Required
array<object>

default_intervalstring

Default monthly.

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

Default true.

curl -X POST "https://globalymint.com/api/v1/pricing-tables" \
  -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 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"
}