ulams commerce
Generated from front/cli (ulams schema)
ulams commerce access-passes-create
Section titled “ulams commerce access-passes-create”Create an access pass: a course or bundle for a number of days.
Kind: write. Stability: stable. MCP tool: commerce_access_passes_create. Scopes: learner:write.
Endpoints: POST /api/admin/commerce/access-passes.
| Flag | Type | Required | Description |
|---|---|---|---|
--days |
integer | yes | |
--name |
string | yes | |
--subject-id |
integer | yes | |
--subject-type |
string | yes |
# Create an access pass: a course or bundle for a number of daysulams commerce access-passes-create --days text --name Example --subject-id text --subject-type text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "days": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "name": { "type": "string" }, "subject_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "subject_type": { "type": "string", "enum": [ "course", "bundle" ] } }, "required": [ "days", "name", "subject_id", "subject_type" ], "additionalProperties": {}}ulams commerce bundles-create
Section titled “ulams commerce bundles-create”Create a bundle of courses.
Kind: write. Stability: stable. MCP tool: commerce_bundles_create. Scopes: learner:write.
Endpoints: POST /api/admin/commerce/bundles.
| Flag | Type | Required | Description |
|---|---|---|---|
--course-ids |
array | yes | |
--description |
string | ||
--name |
string | yes |
# Create a bundle of coursesulams commerce bundles-create --course-ids text --name Example --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "course_ids": { "type": "array", "items": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "description": { "type": "string" }, "name": { "type": "string" } }, "required": [ "course_ids", "name" ], "additionalProperties": {}}ulams commerce products-list
Section titled “ulams commerce products-list”Prices and product state of everything this tenant sells.
Kind: read (idempotent). Stability: stable. MCP tool: commerce_products_list. Scopes: learner:read.
Endpoints: GET /api/admin/commerce/products.
# Prices and product state of everything this tenant sellsulams commerce products-list --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": {}}ulams commerce products-set-price
Section titled “ulams commerce products-set-price”Set the price of a course, bundle or access pass and put it on or off sale.
Kind: write (idempotent). Stability: stable. MCP tool: commerce_products_set_price. Scopes: learner:write.
Endpoints: PUT /api/admin/commerce/products/{type}/{id}.
| Flag | Type | Required | Description |
|---|---|---|---|
--type (positional) |
string | yes | |
--id (positional) |
integer | yes | |
--currency |
string | ||
--for-sale |
boolean | ||
--price-minor |
integer |
# Set the price of a course, bundle or access pass and put it on or off saleulams commerce products-set-price course 1 --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "type": { "type": "string", "enum": [ "course", "bundle", "access_pass" ] }, "id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "currency": { "type": "string" }, "for_sale": { "type": "boolean" }, "price_minor": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "type", "id" ], "additionalProperties": {}}