Catalog
View as Markdown

Create a product

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

POST
/api/v1/products

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

descriptionstring

Maximum length: 2000

trial_daysinteger

Minimum: 0Maximum: 365

portal_allow_plan_changeboolean

Omitted = true. False: the portal hides "Change plan" and refuses it (422 change_not_allowed).

portal_allow_seat_changeboolean

Omitted = true. False: the portal hides seat changes and refuses them, including a plan change with another seat count (422 change_not_allowed).

Header Parameters

Idempotency-Keystring

A unique value for this operation, chosen by you. A retry with the same key and the same body returns the first response instead of running again. The same key with a different body answers 409 idempotency_key_reused; a key whose first request is still running answers 409 idempotency_in_progress.

curl -X POST "https://globalymint.com/api/v1/products" \
  -H "Idempotency-Key: order-8842-charge" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": "string",
    "trial_days": 0,
    "portal_allow_plan_change": true,
    "portal_allow_seat_change": true
  }'

Product created.

{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}