curl --request POST \
--url https://api.example.com/v1/sdk/products \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"config": {
"fulfillmentType": "<string>",
"validityPeriod": 123,
"deliveryMethod": "<string>"
},
"metadata": {},
"description": "<string>",
"imageUrl": "<string>",
"productType": "<string>",
"isMcpPay": true
}
'{
"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"
}
}Creates a new product for the authenticated provider.
curl --request POST \
--url https://api.example.com/v1/sdk/products \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"config": {
"fulfillmentType": "<string>",
"validityPeriod": 123,
"deliveryMethod": "<string>"
},
"metadata": {},
"description": "<string>",
"imageUrl": "<string>",
"productType": "<string>",
"isMcpPay": true
}
'{
"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"
}
}Product created successfully
Product reference
"prd_1A2B3C4D"
Product name
"AI Writing Assistant"
Product status
"active"
Product balance in cents
0
Total number of transactions
0
Whether this product uses MCP Pay proxy
false
Creation timestamp
Last update timestamp
Product description
URL to the product image
Free-form product type
Product-specific configuration
Show child attributes
Arbitrary key-value metadata
Plans associated with this product
Show child attributes
MCP linkage details for MCP-enabled products
{
"mcpServerRef": "mcp_ABC123",
"mcpSubdomain": "acme-docs",
"mcpProxyUrl": "https://acme-docs.mcp.solvapay.com/mcp",
"originUrl": "https://origin.example.com/mcp",
"defaultPlanRef": "pln_FREE123"
}