

# Troubleshooting AWS App Monetization

This chapter helps you resolve common issues when you set up and run AWS App Monetization. It covers the AWS App Monetization skill installation, moving from test mode to live, and verifying quota enforcement.

**Topics**
+ [The AWS App Monetization skill fails to install](#troubleshooting-sdk-install)
+ [Confirming your setup before you go live](#troubleshooting-test-live)
+ [Quota enforcement does not behave as expected](#troubleshooting-enforcement)
+ [An invoice line shows no tax](#troubleshooting-tax-no-line)
+ [An invoice shows no tax for a state where you're registered](#troubleshooting-tax-no-state)
+ [The tax amount looks wrong](#troubleshooting-tax-wrong)
+ [A buyer asks for a tax invoice](#troubleshooting-tax-invoice)
+ [A buyer says they're tax-exempt](#troubleshooting-tax-exempt)

## The AWS App Monetization skill fails to install
<a name="troubleshooting-sdk-install"></a>

The AWS App Monetization skill is installed with a package command, and the installation fails.

### Common cause
<a name="troubleshooting-sdk-install-cause"></a>

Installation most often fails because your credentials have expired, your package registry authentication is not configured, or your Node.js version is not compatible.

### Resolution
<a name="troubleshooting-sdk-install-resolution"></a>

1. Refresh your AWS credentials, and confirm that they have not expired.

1. Confirm that your package manager is authenticated to the package registry.

1. Confirm that your Node.js version meets the minimum version that the AWS App Monetization skill requires.

1. Install the AWS App Monetization skill again.

## Confirming your setup before you go live
<a name="troubleshooting-test-live"></a>

Use the following checklist to confirm that your setup works before you enable live payments. Validate each item in test mode first.

### Resolution
<a name="troubleshooting-test-live-resolution"></a>

1. Confirm that your plans, metering, and entitlements behave as expected in test mode.

1. Complete a test checkout, and confirm that the buyer portal and the resulting invoice are correct.

1. Connect a payout account and complete business verification. For more information, see [Payments and payouts](seller-profile.md#seller-payments-payouts).

1. Enable live payments, and complete one live transaction to confirm that checkout works.

## Quota enforcement does not behave as expected
<a name="troubleshooting-enforcement"></a>

A customer is charged for overage when you expected their access to gate at the tier limit, or enforcement does not apply.

### Common cause
<a name="troubleshooting-enforcement-cause"></a>

This issue usually results from an entitlement rule set to allow overage instead of to gate, or from a metering hook that does not record usage against the correct meter.

### Resolution
<a name="troubleshooting-enforcement-resolution"></a>

1. Confirm that the entitlement's enforcement behavior for the plan tier is set correctly.

1. Confirm that your metering hooks record usage against the correct meter.

1. In test mode, generate usage up to the quota limit, and confirm that access gates or allows overage as you defined.

1. If the behavior is still incorrect, review the usage records for the customer to find where the metered usage differs from the quota.

## An invoice line shows no tax
<a name="troubleshooting-tax-no-line"></a>

### Common cause
<a name="troubleshooting-tax-no-line-cause"></a>

The buyer's jurisdiction doesn't tax the transaction, the buyer is a business that accounts for the tax under reverse charge, or AWS App Monetization doesn't calculate tax in the buyer's location.

### Resolution
<a name="troubleshooting-tax-no-line-resolution"></a>

1. Read the reason on the invoice line.

1. For what each reason means and what to do, see [Tax on invoices](tax-on-invoices.md).

## An invoice shows no tax for a state where you're registered
<a name="troubleshooting-tax-no-state"></a>

### Common cause
<a name="troubleshooting-tax-no-state-cause"></a>

The registration for that state isn't in your business profile.

### Resolution
<a name="troubleshooting-tax-no-state-resolution"></a>

1. Open your business profile, and check your tax registrations.

1. Add the missing state registration. Later invoices to buyers in that state include tax. For more information, see [Tax registrations](tax-registrations.md).

## The tax amount looks wrong
<a name="troubleshooting-tax-wrong"></a>

### Common cause
<a name="troubleshooting-tax-wrong-cause"></a>

One of the inputs to the tax calculation is incorrect.

### Resolution
<a name="troubleshooting-tax-wrong-resolution"></a>

1. Check the buyer's billing address.

1. Check your tax registrations in your business profile.

1. Check the product tax code for the charge type.

1. Check whether the buyer checked out as a business.

For more information, see [Tax calculation](tax-calculation.md).

## A buyer asks for a tax invoice
<a name="troubleshooting-tax-invoice"></a>

### Common cause
<a name="troubleshooting-tax-invoice-cause"></a>

The invoice shows Tax calculation not supported, so AWS App Monetization didn't calculate tax for the buyer's location.

### Resolution
<a name="troubleshooting-tax-invoice-resolution"></a>

As the seller of record, provide the tax invoice yourself.

## A buyer says they're tax-exempt
<a name="troubleshooting-tax-exempt"></a>

### Common cause
<a name="troubleshooting-tax-exempt-cause"></a>

Tax exemptions aren't supported. Tax is charged as calculated.

### Resolution
<a name="troubleshooting-tax-exempt-resolution"></a>

Discuss the buyer's request with your tax professional.