# Set the tax category of an in-app purchase

> Have an Agent show the tax categories Apple offers for in-app purchases, give one purchase its own category, or have it use the app's category again.

Source: https://air.build/docs/app-store/set-an-in-app-purchases-tax-category/

Your app has a tax category in App Store Connect, and each in-app purchase uses it unless you choose another one for that purchase. Apple describes this in [Set a tax category for In-App Purchases](https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/set-a-tax-category-for-in-app-purchases). When a purchase needs a different category from the app's, an Agent can show you the categories, set the one you pick, or have the purchase use the app's category again.

> [!NOTE]
> AirBuild has no control for this: the **In-App Purchases** tab doesn't show tax categories. You ask an Agent in the Project's chat, and it uses `asc web iap tax-category` (listed under `iap` in [asc: web session commands](https://air.build/docs/cli/asc-web/#subcommands)), which the help describes as "Read or set an In-App Purchase tax category." It works with the Team owner's Apple sign-in. If that sign-in has expired, the owner signs in again: see [Connect your Apple Developer account](https://air.build/docs/app-store/connect-apple-developer-account/#sign-in-again).

## What a purchase starts with

The help says "An In-App Purchase without an explicit selection inherits the parent app's tax category". When the Agent reads such a purchase, it shows "Inherited from parent app", and the command doesn't say which category that is. To know, ask for the app's category too: the Agent reads it with `asc web apps tax-category view`, which the help says reports an app without its own choice as "App Store Software".

## Ask

Ask in the Project's chat, for example:

```text
Our "Recipe Pack" in-app purchase is a downloadable e-book. Show me its tax category now and the categories that could fit, and set the one I pick.
```

1. The Agent finds the purchase and reads its category with `asc web iap tax-category view`: a category of its own, or "Inherited from parent app".
2. It reads the categories Apple offers for in-app purchases with `asc web iap tax-category list`, the categories and conditions of Apple's In-App Purchase tax picker, and shows you the names that could fit. Some categories have subcategories, and some take conditions that describe the product further.
3. You pick the category, and the subcategory or conditions if it has them. The Agent can suggest one, but which category is right is your call.
4. The command that sets it needs `--confirm`, so the Agent tells you what it's about to set and asks you first.
5. It runs `asc web iap tax-category set`. The help says the category and every condition "are validated against the ADDON catalog before any write", and "The result is re-read and verified."
6. The Agent tells you the result: the category, the conditions, whether anything changed or it already matched, and that Apple confirmed it.

Name every condition you want. The help calls the condition set "declarative": the conditions the Agent sends replace the ones the purchase had, and sending none clears them.

Once a purchase has its own category, it no longer inherits the app's. To check it any time, ask "What's Recipe Pack's tax category?"

## Use the app's category again

Ask, for example:

```text
Make Recipe Pack use the app's tax category again.
```

The Agent runs `asc web iap tax-category reset`. The help says it "removes the explicit selection so the purchase inherits its parent app's tax category." It needs `--confirm`, so the Agent asks you first. Apple's page calls this "Match to parent app".

## Questions

**The Agent says the write outcome may be ambiguous and not to retry automatically.**

Apple didn't answer clearly, so the change may or may not have been made. Ask the Agent to read the purchase's category with `view` before trying again.

**The Agent says Apple denied the request (403).**

The message says "the account role likely lacks permission for this action, or the web session expired". Apple's [page](https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/set-a-tax-category-for-in-app-purchases) lists the roles that can change it. If the sign-in has expired, the Team owner signs in again: see [Connect your Apple Developer account](https://air.build/docs/app-store/connect-apple-developer-account/#sign-in-again).

**The Agent says the category requires a subcategory selection.**

That category has subcategories, and one of them has to be picked. Choose one from the list the Agent shows.

**The Agent says a condition is not compatible with the category.**

Each category takes only some conditions. Pick from the ones the Agent lists for that category, or leave them out.

**The Agent says the category was not returned by the ADDON tax catalog.**

Only the categories Apple offers for in-app purchases can be set here. Ask the Agent to list them again and pick one from that list.

**Does a new category change the price, or sales I've already made?**

That's Apple's to say: see Apple's [page](https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/set-a-tax-category-for-in-app-purchases). The command sets only the category and its conditions.

**Does it work for subscription plans?**

Apple's page covers in-app purchases and subscriptions. The `asc` help speaks only of In-App Purchases and doesn't say whether a subscription plan works too.

**Can an Agent change the app's own tax category?**

Yes, with `asc web apps tax-category set`, which needs `--confirm`, so the Agent asks you first. Purchases that use the app's category follow it.

**Can I see the tax category in AirBuild?**

No. Ask an Agent, or look in App Store Connect on the web.
