curl --request PUT \
--url https://api.example.com/v1/ui/products/{id}/mcp/plans \
--header 'Content-Type: application/json' \
--data '
{
"plans": [
{
"key": "<string>",
"name": "<string>",
"price": 1,
"currency": "<string>",
"billingCycle": "weekly",
"type": "recurring",
"creditsPerUnit": 123,
"billingModel": "pre-paid",
"freeUnits": 1,
"limit": 1,
"features": {}
}
],
"toolMapping": [
{
"name": "<string>",
"planKeys": [
"<string>"
]
}
]
}
'{
"product": {
"reference": "prd_1A2B3C4D",
"name": "AI Writing Assistant",
"status": "active",
"balance": 0,
"totalTransactions": 0,
"isMcpPay": false,
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"imageUrl": "<string>",
"productType": "<string>",
"config": {
"fulfillmentType": "digital",
"validityPeriod": 30,
"deliveryMethod": "api"
},
"metadata": {},
"plans": [
{
"reference": "pln_1A2B3C4D",
"price": 2999,
"currency": "USD",
"requiresPayment": true,
"isActive": true,
"status": "active",
"createdAt": "<string>",
"updatedAt": "<string>",
"currencySymbol": "$",
"setupFee": 500,
"trialDays": 14,
"billingCycle": "monthly",
"billingModel": "pre-paid",
"creditsPerUnit": 1,
"measures": "requests",
"meterRef": "mtr_1A2B3C4D",
"limit": 10000,
"rolloverUnusedUnits": false,
"freeUnits": 1000,
"limits": {},
"features": {}
}
],
"mcp": {
"mcpServerRef": "mcp_ABC123",
"mcpSubdomain": "acme-docs",
"mcpProxyUrl": "https://acme-docs.mcp.solvapay.com/mcp",
"originUrl": "https://origin.example.com/mcp",
"defaultPlanRef": "pln_FREE123"
}
},
"mcpServer": {},
"planMap": {}
}Configures plans and optional tool-to-plan mappings for an MCP product.
curl --request PUT \
--url https://api.example.com/v1/ui/products/{id}/mcp/plans \
--header 'Content-Type: application/json' \
--data '
{
"plans": [
{
"key": "<string>",
"name": "<string>",
"price": 1,
"currency": "<string>",
"billingCycle": "weekly",
"type": "recurring",
"creditsPerUnit": 123,
"billingModel": "pre-paid",
"freeUnits": 1,
"limit": 1,
"features": {}
}
],
"toolMapping": [
{
"name": "<string>",
"planKeys": [
"<string>"
]
}
]
}
'{
"product": {
"reference": "prd_1A2B3C4D",
"name": "AI Writing Assistant",
"status": "active",
"balance": 0,
"totalTransactions": 0,
"isMcpPay": false,
"createdAt": "<string>",
"updatedAt": "<string>",
"description": "<string>",
"imageUrl": "<string>",
"productType": "<string>",
"config": {
"fulfillmentType": "digital",
"validityPeriod": 30,
"deliveryMethod": "api"
},
"metadata": {},
"plans": [
{
"reference": "pln_1A2B3C4D",
"price": 2999,
"currency": "USD",
"requiresPayment": true,
"isActive": true,
"status": "active",
"createdAt": "<string>",
"updatedAt": "<string>",
"currencySymbol": "$",
"setupFee": 500,
"trialDays": 14,
"billingCycle": "monthly",
"billingModel": "pre-paid",
"creditsPerUnit": 1,
"measures": "requests",
"meterRef": "mtr_1A2B3C4D",
"limit": 10000,
"rolloverUnusedUnits": false,
"freeUnits": 1000,
"limits": {},
"features": {}
}
],
"mcp": {
"mcpServerRef": "mcp_ABC123",
"mcpSubdomain": "acme-docs",
"mcpProxyUrl": "https://acme-docs.mcp.solvapay.com/mcp",
"originUrl": "https://origin.example.com/mcp",
"defaultPlanRef": "pln_FREE123"
}
},
"mcpServer": {},
"planMap": {}
}Product ID