create_subscription_checkout
Creates a subscription checkout that charges the first cycle, stores the card for auto-renewal, and returns a hosted payment link plus an embedded-checkout session token.
Instructions
Create a subscription checkout for a plan: charges the first cycle, stores the card and auto-renews. Returns a payable shortLink (hosted) and a sessionToken (embedded checkout). Use after create_subscription_plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | ||
| amount | Yes | First-cycle amount, normally the plan price | |
| planId | Yes | ||
| currency | Yes | ||
| vendorId | Yes | ||
| reference | No | Your order reference | |
| access_token | Yes | The vendor's paas.build access token for this env (PAAS_SANDBOX_ACCESS_TOKEN / PAAS_PROD_ACCESS_TOKEN, returned by go_live and emailed to the builder) | |
| customer_reference | No | Your stable id for this subscriber |