Skip to content

PutThirdPartyCostRequest

Source code in docs_src/capo_appmonetization/types/put_third_party_cost_request.py
class PutThirdPartyCostRequest(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app the cost belongs to."""
    cost_id: NotRequired[
        "capo_appmonetization.types.third_party_cost_id.ThirdPartyCostId"
    ]
    """The ID of the cost. Omit it to create a new cost, or supply an existing cost ID to update that cost in place."""
    label: "capo_appmonetization.types.third_party_cost_label.ThirdPartyCostLabel"
    """A human-readable label for the cost (for example, "Anthropic API")."""
    amount: "capo_appmonetization.types.cost_value.CostValue"
    """A flat monthly amount as a decimal string (for example, "12.50")."""
    frequency: NotRequired[
        "capo_appmonetization.types.third_party_cost_frequency.ThirdPartyCostFrequency"
    ]
    """How often the cost recurs. MONTHLY is the only value today."""
    currency: NotRequired["capo_appmonetization.types.currency.Currency"]
    """The currency of the amount. Defaults to USD when omitted (USD is the only supported currency)."""
    description: NotRequired[
        "capo_appmonetization.types.third_party_cost_description.ThirdPartyCostDescription"
    ]
    """A free-form description of the cost."""
    effective_from: NotRequired[
        "capo_appmonetization.types.third_party_cost_month.ThirdPartyCostMonth"
    ]
    """First month (YYYY-MM) the cost applies in. Absent means the cost has no start month."""
    effective_to: NotRequired[
        "capo_appmonetization.types.third_party_cost_month.ThirdPartyCostMonth"
    ]
    """Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month. When both are present, effectiveFrom must not be after effectiveTo."""
    client_token: NotRequired["capo_appmonetization.types.client_token.ClientToken"]
    """AWS App Monetization does not use this value for this operation. To retry without creating a duplicate cost, pass the `costId` returned by the first call."""

amount instance-attribute

amount: CostValue

A flat monthly amount as a decimal string (for example, "12.50").

app_id instance-attribute

app_id: AppId

The ID of the app the cost belongs to.

client_token instance-attribute

client_token: NotRequired[ClientToken]

AWS App Monetization does not use this value for this operation. To retry without creating a duplicate cost, pass the costId returned by the first call.

cost_id instance-attribute

cost_id: NotRequired[ThirdPartyCostId]

The ID of the cost. Omit it to create a new cost, or supply an existing cost ID to update that cost in place.

currency instance-attribute

currency: NotRequired[Currency]

The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).

description instance-attribute

description: NotRequired[ThirdPartyCostDescription]

A free-form description of the cost.

effective_from instance-attribute

effective_from: NotRequired[ThirdPartyCostMonth]

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

effective_to instance-attribute

effective_to: NotRequired[ThirdPartyCostMonth]

Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month. When both are present, effectiveFrom must not be after effectiveTo.

frequency instance-attribute

frequency: NotRequired[ThirdPartyCostFrequency]

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

label instance-attribute

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