View a markdown version of this page

GetPlanRecommendation - AWS App Monetization

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, moneySaved or valuePerUse, one per action) on every action or on none: when no action has a value basis and there is no experiential estimate (see valueKind), the price is based on cost (and comparables, if opted in, or planOptions.publishedPrice) and the confidence is LOW. Give unitCost on 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 (comparablesOptIn OPTED_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_WRAPPER

Required: Yes

context

Where the inputs came from, and notes on them. Changes no price, plan, verdict or confidence label: only how summary and details label 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.source is inferred from actions[].unitCost, and the costs count as complete but unconfirmed (see costs.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 alternatives is scored by features, and used only then: sent when no comparable and no outside option is scored by features, it is rejected. A comparable with alternatives.comparablesOptIn OPTED_OUT is validated but not used, so features scored only against such comparables is validated with them and changes nothing. Absent: every comparable and outside option is scored by its quality.

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 with actions[].minutesSaved: sent when no action has minutesSaved, or with valueKind EXPERIENTIAL, 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 (see PlanOptions); the service chooses the pricing model and plans.

Type: PlanOptions object

Required: No

segment

Who buys the app.

Type: String

Valid Values: CONSUMER | PROSUMER | ENTERPRISE

Required: 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, hourlyRate and valueShare that is sent is rejected. With EXPERIENTIAL, no planOptions.publishedPrice and no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of its appType (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 no planOptions.publishedPrice and no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: no unitCost, or costs.source NONE; confidence LOW).

Type: String

Valid Values: PRODUCTIVITY | EXPERIENTIAL

Required: No

valueShare

The most a typical customer would pay for the app, as a share of the time value it saves them (minutesSaved / 60 times hourlyRate). Above 1 when the minutes understate the value. The value of one use of an action with minutesSaved is minutesSaved / 60 times hourlyRate times the share; the share does not apply to moneySaved or valuePerUse. When an action's value is above 0, each outside option's monthlyCost is also weighed at this share (see OutsideOption). 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's minutesSaved, moneySaved or valuePerUse is above 0 and, besides, an action has minutesSaved (0 counts) or an outside option's monthlyCost is above 0: otherwise it changes nothing (with no value above 0 there is no value estimate, and an outside option counts in full). Rejected with valueKind EXPERIENTIAL.

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.creditPackInclusion was INCLUDE.

Type: Array of RecommendedCreditPack objects

Array Members: Minimum number of 0 items. Maximum number of 10 items.

details

The same text as summary with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in summary and details.

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 actionName to 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.pricingModelPreference when planOptions.preferenceOutcome is 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 plans with billingCycle ANNUAL; 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. recommendedPrice is 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: