Checkout link for Formats credits, meeting minutes, phone minutes or legacy calls
buy_packReturns a one-time Stripe checkout link for a prepaid pack; the customer opens it and pays on Stripe's own page, and this connection never sees the card. Only call it when the customer asked to buy, and tell them the price first. Products: 'formats' (Odile Formats credits; packs from get_catalog), 'minutes' (meeting minutes, only where Meeting Notes is on), 'line_minutes' (phone minutes for a new After Hours line; line_id required: min40: 40 minutes for $10; min200: 200 minutes for $50), 'calls' (legacy per-call lines only). What was paid is added within a minute of payment, whatever device paid it. Nothing renews. Needs a signed-in connection with the billing:checkout permission. Returns { checkout_url, product, pack, price_cents, units, unit, then }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | The pack id: formats small | medium | large; minutes m200 | m600 | m2000; calls calls10 | calls50; phone minutes min40 | min200. | |
| line_id | No | For product 'calls' or 'line_minutes': the line_id from get_answering_line. | |
| product | Yes | 'formats' credits, meeting 'minutes', phone 'line_minutes', or legacy answered 'calls'. |