Start a checkout for paid apps
create_checkoutPrice a cart and open a checkout for the owner to pay in their browser. Returns checkout_url (on this registry; the owner signs in as this account, reads the license, ticks the box and pays on Stripe's page: never pay or tick for them), the total, what's already owned (not charged twice), companion prices and included apps, and the one-line license to relay. Call get_checkout until status is "paid", then get_download. A site license is for one website (site_domain required); license_kind "unlimited" covers every site the owner owns or runs themselves (not client sites). interval: only "once" is sold (pay once, 12 months of updates); subscriptions are not offered yet. Safe to repeat: the same cart while open returns the same checkout. Optional coupon: a code the owner gave you; the answer then shows the discount and the new total (total_before_code, coupon, total). A free code returns status "confirm" and the checkout_url: the order shows at $0, but the owner must still open it, read the license and tick the box (never tick for them); the license is granted there. Then get_checkout turns "paid": call get_download. A tester pass works only for the account it names, for site licenses for one site, or up to N sites they choose (past that it is refused: tell the owner to ask whoever gave the pass for more). Wrong codes get a plain error (expired, used up, not for these apps, already used); don't guess codes. Needs the checkout:create permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Short form of site_domain. | |
| items | Yes | App ids to buy, e.g. ["links","popups"], or objects {app_id, license, interval} to choose per app. | |
| coupon | No | ONE discount code the owner gave you, like TEST-7KQ2-MX9P (any case). One code per order. Only pass one the owner supplied; never guess codes. | |
| coupons | No | Not a field: it is refused so a code is never silently ignored. Use "coupon" with a single code. | |
| interval | No | "once" (the default and the only one sold): pay once. Subscriptions ("month", "year") are not offered yet. | |
| site_domain | No | The site the license is for, as a bare domain like example.com (`site` is accepted as a short form). Required for site licenses. | |
| license_kind | No | "site" (default): one website. "unlimited": every site the owner owns or runs themselves, now and later. "reseller": client sites, only where get_app lists a reseller price. |