AppMonetization / Client / get_third_party_cost

get_third_party_cost

AppMonetization.Client.get_third_party_cost(**kwargs)

Returns a single third-party cost by its identifier. An unknown cost identifier returns a ResourceNotFoundException.

See also: AWS API Documentation

Request Syntax

response = client.get_third_party_cost(
    appId='string',
    costId='string'
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The ID of the app.

  • costId (string) –

    [REQUIRED]

    The ID of the cost to return.

Return type:

dict

Returns:

Response Syntax

{
    'item': {
        'appId': 'string',
        'costId': 'string',
        'label': 'string',
        'amount': 'string',
        'frequency': 'MONTHLY',
        'currency': 'USD',
        'description': 'string',
        'effectiveFrom': 'string',
        'effectiveTo': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    Output for GetThirdPartyCost.

    • item (dict) –

      The requested third-party cost.

      • appId (string) –

        The ID of the app the cost belongs to.

      • costId (string) –

        The ID of the cost.

      • label (string) –

        A human-readable label for the cost (for example, “Anthropic API”).

      • amount (string) –

        The flat monthly amount as a decimal string (for example, “12.50”).

      • frequency (string) –

        How often the cost recurs. MONTHLY is the only value today.

      • currency (string) –

        The currency of the amount. USD is the only supported currency.

      • description (string) –

        A free-form description of the cost.

      • effectiveFrom (string) –

        First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.

      • effectiveTo (string) –

        Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month.

      • createdAt (datetime) –

        The time the cost was created.

      • updatedAt (datetime) –

        The time the cost was last updated.

Exceptions

  • AppMonetization.Client.exceptions.AccessDeniedException

  • AppMonetization.Client.exceptions.ValidationException

  • AppMonetization.Client.exceptions.InternalServerException

  • AppMonetization.Client.exceptions.ResourceNotFoundException

  • AppMonetization.Client.exceptions.ThrottlingException