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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"env": "<env>",
"vendorId": "<vendorId>",
"access_token": "<access_token>",
"planId": "<planId>",
"amount": "<amount>",
"currency": "<currency>"
},
"name": "create_subscription_checkout"
}
}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 |