View a markdown version of this page

ThirdPartyCostItem - AWS App Monetization

ThirdPartyCostItem

A seller-declared, non-AWS recurring cost for an app. A flat monthly charge that stands until the developer updates or removes it (no proration, no usage scaling).

Contents

amount

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

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

Pattern: -?[0-9]+(\.[0-9]+)?

Required: Yes

appId

The ID of the app the cost belongs to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [A-Za-z0-9_-]+

Required: Yes

costId

The ID of the cost.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [0-9a-z]{1,64}

Required: Yes

createdAt

The time the cost was created.

Type: Timestamp

Required: Yes

currency

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

Type: String

Valid Values: USD

Required: Yes

frequency

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

Type: String

Valid Values: MONTHLY

Required: Yes

label

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

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

updatedAt

The time the cost was last updated.

Type: Timestamp

Required: Yes

description

A free-form description of the cost.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 512.

Required: No

effectiveFrom

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

Type: String

Length Constraints: Fixed length of 7.

Pattern: \d{4}-(0[1-9]|1[0-2])

Required: No

effectiveTo

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

Type: String

Length Constraints: Fixed length of 7.

Pattern: \d{4}-(0[1-9]|1[0-2])

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: