agentaos 2.1 or newer (npm install -g agentaos@latest).
Create a product or plan
string
required
Product name buyers see.
number
required
Price in currency units:
29 means €29.00.string
EUR or USD. Defaults to the org setting.string
Shown on the checkout page.
boolean
default:"false"
Recurring plan instead of a one-time product. Needs
--interval.'month' | 'year'
Billing cadence for a plan.
number
Free-trial length, 1 to 730 days. Plans only. The buyer’s card is saved with nothing due today; the first charge happens when the trial ends.
string
https:// URL the buyer lands on after paying. ?sessionId=<id> is appended.string
https:// URL the buyer lands on if they back out.boolean
Output a single JSON object instead of the human-readable summary.
--json
idis thelinkId: pass it tocheckouts.create({ linkId })for logged-in users, or toagenta subscriptions change-plan --to.checkoutUrlis the buyer link: share it, or put it behind a Buy button. It carries no app user id.- Return URLs must be
https://; plain-http and localhost are refused before the request is sent. - Products created from the CLI are test-mode products. Live products are created in the dashboard once the merchant is live.
trialing.
List products
--json
Next steps
Sell a subscription
Share the link, or check out a logged-in user with the linkId.
Subscriptions
List subscribers, change plans, cancel.