Create product
agenta_products_createCreate a product (one-time) or a subscription plan. Creates something buyers can pay for: a one-time product, or a subscription plan with an interval. Returns the product id and its buyer link, which can be shared as is. Use the id with agenta_pay_checkout or as a plan for agenta_subscriptions_change_plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product name buyers see | |
| amount | Yes | Price (e.g. 49.00) | |
| business | No | Act for this business you manage (its id). Omit to act as yourself. | |
| currency | No | Currency code (e.g. EUR, USD) | |
| interval | No | Billing cadence for a plan: month or year | |
| cancelUrl | No | https URL buyers return to if they back out | |
| trialDays | No | Trial length for a plan, in days | |
| successUrl | No | https URL buyers return to after paying (we append ?sessionId=…) | |
| description | No | Description shown on the checkout page | |
| trialAmount | No | Price of the whole trial (e.g. 9.00). Leave it out and the trial is free | |
| subscription | No | Recurring plan instead of a one-time product |