AppMonetization / Client / list_one_time_prices
list_one_time_prices¶
- AppMonetization.Client.list_one_time_prices(**kwargs)¶
Lists the one-time prices for an app. Returns a paginated list; use the nextToken value to retrieve additional pages.
See also: AWS API Documentation
Request Syntax
response = client.list_one_time_prices( appId='string', stage='DRAFT'|'PUBLISHED', maxResults=123, nextToken='string', scope='sandbox'|'live' )
- Parameters:
appId (string) –
[REQUIRED]
The ID of the app whose one-time prices are listed.
stage (string) – The offering stage to list one-time prices from: DRAFT (the latest authored draft) or PUBLISHED (the published offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox.
maxResults (integer) – The maximum number of one-time prices to return in a single call. To retrieve the remaining results, make another call with the nextToken value that is returned in the response.
nextToken (string) – The pagination token that is returned by a previous call. Use it to retrieve the next page of results. Omit this parameter on the first call.
scope (string) –
[REQUIRED]
Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app’s draft (what the sandbox runs).
- Return type:
dict
- Returns:
Response Syntax
{ 'oneTimePrices': [ { 'arn': 'string', 'appId': 'string', 'oneTimePriceId': 'string', 'definition': { 'name': 'string', 'price': { 'currencyCode': 'string', 'amount': 'string' }, 'metricId': 'string', 'capacity': 123 }, 'stage': 'DRAFT'|'PUBLISHED' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
Output for ListOneTimePrices.
oneTimePrices (list) –
The one-time prices for the app.
(dict) –
A one-time price for an app: a usage pack a buyer can purchase once to credit a metric.
arn (string) –
The Amazon Resource Name (ARN) of the one-time price.
appId (string) –
The ID of the app the one-time price belongs to.
oneTimePriceId (string) –
The service-assigned ID of the one-time price.
definition (dict) –
The definition of the one-time price, including its display name, price, metric, and credited capacity.
name (string) –
A human-readable display name for the one-time price.
price (dict) –
The amount and currency charged for one purchase of the one-time price.
currencyCode (string) –
The ISO 4217 currency code (three uppercase letters, for example, “USD”).
amount (string) –
An arbitrary-precision decimal represented as a string (for example, “9.99”).
metricId (string) –
The metric one purchase credits.
capacity (integer) –
The units of metricId one purchase credits.
stage (string) –
The offering stage the one-time price was read from.
nextToken (string) –
The pagination token to use in a subsequent call to retrieve the next page of results. This value is absent when there are no more results to return.
Exceptions
AppMonetization.Client.exceptions.AccessDeniedExceptionAppMonetization.Client.exceptions.ValidationExceptionAppMonetization.Client.exceptions.InternalServerExceptionAppMonetization.Client.exceptions.ResourceNotFoundExceptionAppMonetization.Client.exceptions.ThrottlingException