

# 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
<a name="API_GetPlanRecommendation_RequestSyntax"></a>

```
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
<a name="API_GetPlanRecommendation_RequestParameters"></a>

The request does not use any URI parameters.

## Request Body
<a name="API_GetPlanRecommendation_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [actions](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-actions"></a>
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](API_BillableAction.md) objects  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Required: Yes

 ** [alternatives](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-alternatives"></a>
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](API_AlternativeInputs.md) object  
Required: No

 ** [appName](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-appName"></a>
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](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-appType"></a>
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](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-context"></a>
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](API_RequestContext.md) object  
Required: No

 ** [costs](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-costs"></a>
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](API_CostInputs.md) object  
Required: No

 ** [features](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-features"></a>
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](API_FeatureScores.md) object  
Required: No

 ** [hourlyRate](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-hourlyRate"></a>
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](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-market"></a>
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](API_MarketInputs.md) object  
Required: No

 ** [planOptions](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-planOptions"></a>
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](API_PlanOptions.md) object  
Required: No

 ** [segment](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-segment"></a>
Who buys the app.  
Type: String  
Valid Values: `CONSUMER | PROSUMER | ENTERPRISE`   
Required: Yes

 ** [valueKind](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-valueKind"></a>
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](#API_GetPlanRecommendation_RequestSyntax) **   <a name="appmonetization-GetPlanRecommendation-request-valueShare"></a>
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
<a name="API_GetPlanRecommendation_ResponseSyntax"></a>

```
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
<a name="API_GetPlanRecommendation_ResponseElements"></a>

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](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-alternatives"></a>
Which comparable apps were used and which were not.  
Type: [AlternativesOutcome](API_AlternativesOutcome.md) object

 ** [analysis](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-analysis"></a>
How the recommendation compares with other pricing models.  
Type: [PricingAnalysis](API_PricingAnalysis.md) object

 ** [basis](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-basis"></a>
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](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-confidence"></a>
Confidence in the recommendation.  
Type: String  
Valid Values: `HIGH | MEDIUM | LOW` 

 ** [confidenceReason](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-confidenceReason"></a>
Why the confidence is what it is.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.

 ** [costs](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-costs"></a>
How the recommended price relates to cost to serve.  
Type: [CostOutcome](API_CostOutcome.md) object

 ** [creditPacks](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-creditPacks"></a>
One-time credit packs sold alongside the plans. Empty unless the request's `planOptions.creditPackInclusion` was INCLUDE.  
Type: Array of [RecommendedCreditPack](API_RecommendedCreditPack.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 10 items.

 ** [details](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-details"></a>
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](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-planOptions"></a>
What became of the request's `planOptions`: the pricing-model preference, the Free and Max plans and the evaluated plan prices.  
Type: [PlanOptionsOutcome](API_PlanOptionsOutcome.md) object

 ** [plans](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-plans"></a>
The recommended plans. To create them, map each `actionName` to the app's metric ID.  
Type: Array of [RecommendedPlan](API_RecommendedPlan.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 10 items.

 ** [pricingModel](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-pricingModel"></a>
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](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-recommendationVersion"></a>
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](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-recommendedPrice"></a>
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](API_Price.md) object

 ** [recommendedPriceRange](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-recommendedPriceRange"></a>
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](API_PriceRange.md) object

 ** [summary](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-summary"></a>
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](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-unitPrices"></a>
Price per use of each action, for PER\_USE and PER\_USE\_SPLIT.  
Type: Array of [UnitPrice](API_UnitPrice.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 10 items.

 ** [verdict](#API_GetPlanRecommendation_ResponseSyntax) **   <a name="appmonetization-GetPlanRecommendation-response-verdict"></a>
Viability verdict.  
Type: String  
Valid Values: `HEALTHY | THIN_MARGIN | NOT_MONETIZABLE | COST_ONLY | COST_NOT_CHECKED` 

## Errors
<a name="API_GetPlanRecommendation_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** 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
<a name="API_GetPlanRecommendation_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/appmonetization-2022-07-26/GetPlanRecommendation) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appmonetization-2022-07-26/GetPlanRecommendation) 