GetPlanRecommendation
Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request. Built to be called by an agent working with the developer: most inputs are estimates the agent gathers from the app's code and from the developer (who the users are, what an action saves them, what it costs to serve), and each optional member's documentation says what its absence means, so send only the inputs you have a basis for. Stateless: nothing is stored, no app is required, and repeating a request returns the same recommendation unless the service has been updated in between. Every response carries the rendered texts summary and details. Smallest call (MEDIUM confidence): {"segment":"CONSUMER","appType":"DAILY_WORKFLOW","actions":[{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.
Request Syntax
POST /plan-recommendation HTTP/1.1
Content-type: application/json
{
"actions": [
{
"minutesSaved": number,
"moneySaved": number,
"name": "string",
"typicalMonthlyUsage": number,
"unit": "string",
"unitCost": number,
"valuePerUse": number
}
],
"alternatives": {
"comparables": [
{
"cap": number,
"features": {
"string" : number
},
"includedUnits": number,
"mechanism": "string",
"name": "string",
"overageRate": number,
"price": {
"amount": "string",
"currencyCode": "string"
},
"quality": number,
"url": "string"
}
],
"comparablesOptIn": "string",
"outsideOptions": [
{
"features": {
"string" : number
},
"monthlyCost": number,
"name": "string",
"quality": number
}
]
},
"appName": "string",
"appType": "string",
"context": {
"customerTypeDescriptions": {
"string" : "string"
},
"expectedUsersBasis": "string",
"nonAwsCostsNote": "string",
"usageSources": {
"string" : "string"
},
"valueBasis": "string"
},
"costs": {
"fixedMonthlyCost": number,
"margins": [ number ],
"source": "string",
"unknown": [ "string" ]
},
"features": {
"appScores": {
"string" : number
},
"weights": {
"string" : number
}
},
"hourlyRate": number,
"market": {
"checkoutDropOff": {
"flat": number,
"freePlan": number,
"perUse": number,
"tiered": number
},
"customerTypes": [
{
"featureWeights": {
"string" : number
},
"name": "string",
"share": number,
"usageMultiplier": number,
"usageSpread": "string",
"valuePerUseMultiplier": number
}
],
"expectedUsers": number,
"measuredConversion": {
"payingUsers": number,
"users": number
}
},
"planOptions": {
"annualPlanInclusion": "string",
"creditPackInclusion": "string",
"freeTierInclusion": "string",
"maxTierInclusion": "string",
"planPrices": [
{
"actionName": "string",
"planCode": "string",
"price": {
"amount": "string",
"currencyCode": "string"
}
}
],
"pricingModelPreference": "string",
"publishedPrice": {
"amount": "string",
"currencyCode": "string"
}
},
"segment": "string",
"valueKind": "string",
"valueShare": number
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- actions
-
The things that your app charges for, each with its cost to serve, typical usage, and value to a customer. Names must be unique. Give a value basis (
minutesSaved,moneySavedorvaluePerUse, one per action) on every action or on none: when no action has a value basis and there is no experiential estimate (seevalueKind), the price is based on cost (and comparables, if opted in, orplanOptions.publishedPrice) and the confidence is LOW. GiveunitCoston every action or on none.Type: Array of BillableAction objects
Array Members: Minimum number of 1 item. Maximum number of 10 items.
Required: Yes
- alternatives
-
What customers could use instead of the app: comparable apps and what they do without any product. Absent: no comparables (
comparablesOptInOPTED_OUT) and no outside options.Type: AlternativeInputs object
Required: No
- appName
-
Display name of the app, used in the rendered text. Absent:
your app.Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
[^\p{C}<>]([^\p{C}<>]*[^\p{C}<>])?Required: No
- appType
-
Kind of app. It sets the service's usage and value benchmarks for this kind of app.
Type: String
Valid Values:
INFRASTRUCTURE | DAILY_WORKFLOW | PERIODIC_WORKFLOW | POINT_UTILITY | CREATIVE | API_WRAPPERRequired: Yes
- context
-
Where the inputs came from, and notes on them. Changes no price, plan, verdict or confidence label: only how
summaryanddetailslabel and word the inputs. Absent: the rendered text uses default labels.Type: RequestContext object
Required: No
- costs
-
Cost inputs beyond each action's
unitCost: where the costs came from, any costs that could not be priced, fixed monthly cost and target margins. Absent:costs.sourceis inferred fromactions[].unitCost, and the costs count as complete but unconfirmed (seecosts.unknown).Type: CostInputs object
Required: No
- features
-
How this app scores on the characteristics customers decide on, and how much each one matters. Required when a comparable or an outside option in
alternativesis scored byfeatures, and used only then: sent when no comparable and no outside option is scored byfeatures, it is rejected. A comparable withalternatives.comparablesOptInOPTED_OUT is validated but not used, sofeaturesscored only against such comparables is validated with them and changes nothing. Absent: every comparable and outside option is scored by itsquality.Type: FeatureScores object
Required: No
- hourlyRate
-
What one hour of a customer's time is worth, in USD: the hourly rate of the person whose time the app saves. Required when any action has
minutesSaved. There is no default. It is used only withactions[].minutesSaved: sent when no action hasminutesSaved, or withvalueKindEXPERIENTIAL, it is rejected.Type: Double
Valid Range: Minimum value of 0.01. Maximum value of 10000.
Required: No
- market
-
Who the customers are, how many there are and, for a deployed app, how many pay today; and any checkout drop-off rates to use instead of the benchmarks. Absent: each member's default (see
MarketInputs).Type: MarketInputs object
Required: No
- planOptions
-
The pricing model and optional plans to consider, prices to evaluate, and the developer's own price (
publishedPrice). Absent: each member's default (seePlanOptions); the service chooses the pricing model and plans.Type: PlanOptions object
Required: No
- segment
-
Who buys the app.
Type: String
Valid Values:
CONSUMER | PROSUMER | ENTERPRISERequired: Yes
- valueKind
-
What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or money value, so with EXPERIENTIAL each of
actions[].minutesSaved,actions[].moneySaved,actions[].valuePerUse,hourlyRateandvalueSharethat is sent is rejected. With EXPERIENTIAL, noplanOptions.publishedPriceand no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of itsappType(there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user's usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with noplanOptions.publishedPriceand no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: nounitCost, orcosts.sourceNONE; confidence LOW).Type: String
Valid Values:
PRODUCTIVITY | EXPERIENTIALRequired: No
-
The most a typical customer would pay for the app, as a share of the time value it saves them (
minutesSaved/ 60 timeshourlyRate). Above 1 when the minutes understate the value. The value of one use of an action withminutesSavedisminutesSaved/ 60 timeshourlyRatetimes the share; the share does not apply tomoneySavedorvaluePerUse. When an action's value is above 0, each outside option'smonthlyCostis also weighed at this share (seeOutsideOption). Absent: the service's benchmark share. For PROSUMER this value scales the service's benchmark share instead of replacing it. With usable comparables the recommended price uses the service's benchmark share for comparables instead, but this value still sets the price from the app's value alone, which the confidence and the texts compare with. Rejected unless an action'sminutesSaved,moneySavedorvaluePerUseis above 0 and, besides, an action hasminutesSaved(0 counts) or an outside option'smonthlyCostis above 0: otherwise it changes nothing (with no value above 0 there is no value estimate, and an outside option counts in full). Rejected withvalueKindEXPERIENTIAL.Type: Double
Valid Range: Minimum value of 0.0001. Maximum value of 3.
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"alternatives": {
"comparablesDropped": [
{
"name": "string",
"price": {
"amount": "string",
"currencyCode": "string"
},
"reason": "string"
}
],
"comparablesUsed": [ "string" ]
},
"analysis": {
"frictionAlternative": "string",
"modelComparison": [
{
"margin": number,
"monthlyProfit": "string",
"monthlyRevenue": {
"amount": "string",
"currencyCode": "string"
},
"paidShare": number,
"pricingModel": "string"
}
],
"pricingModelCaveats": [ "string" ]
},
"basis": "string",
"confidence": "string",
"confidenceReason": "string",
"costs": {
"breakEven": {
"expected": {
"costPerPayer": {
"amount": "string",
"currencyCode": "string"
},
"payers": number
},
"high": {
"costPerPayer": {
"amount": "string",
"currencyCode": "string"
},
"payers": number
},
"low": {
"costPerPayer": {
"amount": "string",
"currencyCode": "string"
},
"payers": number
}
},
"coverPrices": [
{
"margin": number,
"price": {
"amount": "string",
"currencyCode": "string"
}
}
],
"coverStatus": "string",
"impliedMargin": number,
"status": "string"
},
"creditPacks": [
{
"actionName": "string",
"name": "string",
"price": {
"amount": "string",
"currencyCode": "string"
},
"quantity": number
}
],
"details": "string",
"planOptions": {
"evaluatedPlanPrices": [
{
"creditPacks": [
{
"actionName": "string",
"name": "string",
"price": {
"amount": "string",
"currencyCode": "string"
},
"quantity": number
}
],
"monthlyProfit": "string",
"paidShare": number,
"planCode": "string",
"plans": [
{
"billingCycle": "string",
"downgradePlanCodes": [ "string" ],
"includedQuotas": [
{
"actionName": "string",
"includedQuantity": number,
"overagePolicy": "string",
"overagePrice": {
"amount": "string",
"currencyCode": "string"
}
}
],
"name": "string",
"planCode": "string",
"price": {
"amount": "string",
"currencyCode": "string"
},
"upgradePlanCodes": [ "string" ]
}
],
"price": {
"amount": "string",
"currencyCode": "string"
},
"verdict": "string"
}
],
"freeTier": {
"conversion": number,
"freeUsers": number,
"monthlyCost": {
"amount": "string",
"currencyCode": "string"
},
"status": "string",
"statusSource": "string",
"trialDays": number
},
"maxTier": {
"price": {
"amount": "string",
"currencyCode": "string"
},
"status": "string"
},
"preferenceOutcome": "string"
},
"plans": [
{
"billingCycle": "string",
"downgradePlanCodes": [ "string" ],
"includedQuotas": [
{
"actionName": "string",
"includedQuantity": number,
"overagePolicy": "string",
"overagePrice": {
"amount": "string",
"currencyCode": "string"
}
}
],
"name": "string",
"planCode": "string",
"price": {
"amount": "string",
"currencyCode": "string"
},
"upgradePlanCodes": [ "string" ]
}
],
"pricingModel": "string",
"recommendationVersion": "string",
"recommendedPrice": {
"amount": "string",
"currencyCode": "string"
},
"recommendedPriceRange": {
"high": {
"amount": "string",
"currencyCode": "string"
},
"low": {
"amount": "string",
"currencyCode": "string"
}
},
"summary": "string",
"unitPrices": [
{
"actionName": "string",
"price": {
"amount": "string",
"currencyCode": "string"
}
}
],
"verdict": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- alternatives
-
Which comparable apps were used and which were not.
Type: AlternativesOutcome object
- analysis
-
How the recommendation compares with other pricing models.
Type: PricingAnalysis object
- basis
-
What the price is based on: modeled demand, or, without a value estimate, cost or comparables.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
- confidence
-
Confidence in the recommendation.
Type: String
Valid Values:
HIGH | MEDIUM | LOW - confidenceReason
-
Why the confidence is what it is.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
- costs
-
How the recommended price relates to cost to serve.
Type: CostOutcome object
- creditPacks
-
One-time credit packs sold alongside the plans. Empty unless the request's
planOptions.creditPackInclusionwas INCLUDE.Type: Array of RecommendedCreditPack objects
Array Members: Minimum number of 0 items. Maximum number of 10 items.
- details
-
The same text as
summarywith a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only insummaryanddetails.Type: String
Length Constraints: Minimum length of 1. Maximum length of 32768.
- planOptions
-
What became of the request's
planOptions: the pricing-model preference, the Free and Max plans and the evaluated plan prices.Type: PlanOptionsOutcome object
- plans
-
The recommended plans. To create them, map each
actionNameto the app's metric ID.Type: Array of RecommendedPlan objects
Array Members: Minimum number of 0 items. Maximum number of 10 items.
- pricingModel
-
The recommended pricing model. Equals the request's
planOptions.pricingModelPreferencewhenplanOptions.preferenceOutcomeis HONORED.Type: String
Valid Values:
FLAT | TIERED | PER_USE | PER_USE_SPLIT - recommendationVersion
-
Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
- recommendedPrice
-
Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in
planswithbillingCycleANNUAL; this is still the monthly price.Type: Price object
- recommendedPriceRange
-
Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top.
recommendedPriceis the middle of this range.Type: PriceRange object
- summary
-
The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 32768.
- unitPrices
-
Price per use of each action, for PER_USE and PER_USE_SPLIT.
Type: Array of UnitPrice objects
Array Members: Minimum number of 0 items. Maximum number of 10 items.
- verdict
-
Viability verdict.
Type: String
Valid Values:
HEALTHY | THIN_MARGIN | NOT_MONETIZABLE | COST_ONLY | COST_NOT_CHECKED
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
The caller does not have sufficient permission to perform this action.
- message
-
Human-readable description of the access-denied condition.
HTTP Status Code: 403
- InternalServerException
-
An unexpected error occurred while processing the request.
- message
-
Human-readable description of the server error.
- retryAfterSeconds
-
Advice to clients on when the call can be safely retried.
HTTP Status Code: 500
- ThrottlingException
-
The request was denied due to request throttling.
- message
-
Human-readable description of the throttling condition.
- quotaCode
-
Service Quotas identifier for the throttled quota.
- retryAfterSeconds
-
Advice to clients on when the call can be safely retried.
- serviceCode
-
Service Quotas identifier for the originating service.
HTTP Status Code: 429
- ValidationException
-
The request failed input validation.
- fieldList
-
The specific input fields that failed validation, when applicable.
- message
-
Human-readable description of what failed validation.
- reason
-
Machine-readable reason the request failed validation, so callers act without parsing the message.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: