Skip to content

ulams commerce

Generated from front/cli (ulams schema)

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
Terminal window
# Create an access pass: a course or bundle for a number of days
ulams commerce access-passes-create --days text --name Example --subject-id text --subject-type text --json
Input 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": {}
}

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
Terminal window
# Create a bundle of courses
ulams commerce bundles-create --course-ids text --name Example --json
Input 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": {}
}

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.

Terminal window
# Prices and product state of everything this tenant sells
ulams commerce products-list --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": {}
}

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
Terminal window
# Set the price of a course, bundle or access pass and put it on or off sale
ulams commerce products-set-price course 1 --json
Input 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": {}
}