check_usdt_subscription
Check whether a customer (customer_ref) has an active non-custodial recurring USDT/USDC subscription with merchant_wallet, including remaining days, expiration timestamp, and a pre-filled 1-click renewal checkout URL. Read-only lookup (unlimited free calls, early renewals automatically stack remaining days without requiring approve(MAX_UINT256)). Returns JSON with ok, active (boolean), days_remaining (number), expires_at (ISO-8601 or null), last_invoice_id, and renewal_url.
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": {
"merchant_wallet": "<merchant_wallet>",
"customer_ref": "<customer_ref>"
},
"name": "check_usdt_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Settlement network pre-populated in the returned `renewal_url`. Defaults to `polygon`. | polygon |
| amount_usd | No | Subscription renewal price in USD used to pre-populate the returned `renewal_url`. Defaults to `9.0`. | |
| billing_days | No | Billing cycle length in days pre-populated in the returned `renewal_url`. Defaults to `30`. | |
| customer_ref | Yes | Unique subscriber identifier (e.g. user ID, email, or account handle) passed when creating the subscription invoice. | |
| merchant_wallet | Yes | Merchant's receiving wallet address (`0x...` on EVM or base58 on Solana) that collects subscription payments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| active | Yes | ||
| renewal_url | Yes | ||
| days_remaining | Yes |