AppMonetization / Client / get_one_time_price

get_one_time_price

AppMonetization.Client.get_one_time_price(**kwargs)

Returns the details of a one-time price.

See also: AWS API Documentation

Request Syntax

response = client.get_one_time_price(
    appId='string',
    oneTimePriceId='string',
    scope='sandbox'|'live'
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The ID of the app the one-time price belongs to.

  • oneTimePriceId (string) –

    [REQUIRED]

    The ID of the one-time price to return.

  • scope (string) –

    [REQUIRED]

    Required. The environment: live or sandbox. live reads the published offering; sandbox reads the app’s draft (what the sandbox runs).

Return type:

dict

Returns:

Response Syntax

{
    'oneTimePrice': {
        'arn': 'string',
        'appId': 'string',
        'oneTimePriceId': 'string',
        'definition': {
            'name': 'string',
            'price': {
                'currencyCode': 'string',
                'amount': 'string'
            },
            'metricId': 'string',
            'capacity': 123
        },
        'stage': 'DRAFT'|'PUBLISHED'
    }
}

Response Structure

  • (dict) –

    Output for GetOneTimePrice.

    • oneTimePrice (dict) –

      The requested one-time price.

      • 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.

Exceptions