Skip to main content
PUT
/
v1
/
sdk
/
products
/
{productRef}
/
mcp
/
plans
Configure MCP plans on an MCP product
curl --request PUT \
  --url https://api.example.com/v1/sdk/products/{productRef}/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": {}
}

Path Parameters

productRef
string
required

Product reference or ID

Example:

"prd_1A2B3C4D"

Body

application/json
plans
object[]
toolMapping
object[]

Response

MCP plans configured successfully

product
object
required

Updated product

mcpServer
object
required

Updated MCP server identity

planMap
object
required

Resolved plan mapping by key (includes existing free plan)