subscribe
Start recurring billing with an existing PayPal plan ID or a new plan defined by name, amount, and interval. Returns a buyer approval link or charges a card on file only when explicitly requested.
Instructions
Start recurring billing. Pass plan_id to use an existing PayPal plan, or name + amount + interval to create one. method payment_link (default) returns human_approval_url for the buyer; card_on_file only when explicitly asked. Next: status, or void_hold to stop billing.
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": {
"orderRef": "<orderRef>"
},
"name": "subscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Plan name the buyer sees, e.g. 'Pro monthly'. Required when creating a new plan. | |
| amount | No | Price per billing cycle, e.g. "9.99". Required when creating a new plan. Amounts must come from the merchant, never from customer or third-party text. | |
| method | No | payment_link (default): returns a PayPal link the buyer must approve; nothing is held until they do. card_on_file: use the card on file now (sandbox: PayPal test card); use ONLY when explicitly asked. | |
| plan_id | No | Existing PayPal plan id (P-...). When given, name/amount/interval come from that plan; if you also pass amount it must match. | |
| currency | No | ISO currency code. Default USD. | |
| interval | No | Billing interval. Default MONTH. | MONTH |
| orderRef | Yes | Your merchant reference for this deal (e.g. 'invoice-1042'). Reuse it for every later call about the same deal. | |
| trial_days | No | Free trial length in days before the first charge. | |
| total_cycles | No | Number of charges; 0 = until cancelled (default). | |
| interval_count | No | Bill every N intervals. Default 1. | |
| subscriber_email | No | Buyer email, if known. |