> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paypal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create taxes

<div className="m-badge-page-wrapper">
  <Badge stroke color="orange" size="sm">Limited Release</Badge>
</div>

A tax configuration defines a reusable tax rate that the system automatically applies to calculate taxes.

You can apply taxes to:

* <a href="/limited-release/usage-based-billing/set-up-billing-process/create-billing-entities" target="_blank" rel="noopener noreferrer">Billing entities</a> for regional tax requirements.
* <a href="/limited-release/usage-based-billing/set-up-billing-process/register-customers" target="_blank" rel="noopener noreferrer">Customers</a> for customer-specific tax rates.
* <a href="/limited-release/usage-based-billing/set-up-billing-process/create-pricing-plans" target="_blank" rel="noopener noreferrer">Pricing plans</a> and their components (base fees, usage charges, minimum commitments).
* <a href="/limited-release/usage-based-billing/set-up-billing-process/create-subscriptions" target="_blank" rel="noopener noreferrer">Subscriptions</a> through plan overrides.

## 1. Understand tax configuration

Before you create a tax, decide on these configuration details based on your business requirements and regional regulations. Then, you can make a POST call to the <a href="/reference/api/rest/taxes/create-a-tax" target="_blank" rel="noopener noreferrer">Create tax</a> endpoint to send the information to PayPal. It is your responsibility to ensure the accuracy of the tax calculation and to remit such taxes to the appropriate tax authorities.

**Basic identification**

* **Name**: Set a descriptive name that identifies the tax.
* **Code**: Create a unique identifier to reference the tax in API calls.
* **Description**: Add a detailed description for the tax configuration.

**Tax calculation**

**Rate**: Specify the percentage rate for the tax.

<Warning>
  After you create a tax, you cannot change its code. You can only update the name, rate, and description. For more information, see <a href="/limited-release/usage-based-billing/manage-entities/manage-taxes#update-tax-details" target="_blank" rel="noopener noreferrer">Update tax details</a>.
</Warning>

## 2. Create tax

Use a <a href="/developer/how-to/api/get-started#2-get-an-access-token" target="_blank" rel="noopener noreferrer">valid access token</a> and make a POST call to the `/v1/commerce/billing/taxes` endpoint. Include the following parameters:

| <span style={{textAlign: 'left', display: 'block'}}>Parameter</span>                                                                               | <span style={{textAlign: 'left', display: 'block'}}>Action</span>                                                                            |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`<br /><span style={{color: 'red', fontSize: 'smaller'}}>Required</span>, <span style={{color: '#95a5a6', fontSize: 'smaller'}}>string</span> | Provide a descriptive name that identifies the tax.                                                                                          |
| `code`<br /><span style={{color: 'red', fontSize: 'smaller'}}>Required</span>, <span style={{color: '#95a5a6', fontSize: 'smaller'}}>string</span> | Set a unique code to identify this tax.                                                                                                      |
| `rate`<br /><span style={{color: 'red', fontSize: 'smaller'}}>Required</span>, <span style={{color: '#95a5a6', fontSize: 'smaller'}}>string</span> | Specify the percentage rate for the tax. Use a decimal value from `0.01` to `100.00` with exactly two decimal places (for example, `20.00`). |
| `description`<br /><span style={{color: '#95a5a6', fontSize: 'smaller'}}>string</span>                                                             | Provide additional details about the tax configuration.                                                                                      |

For information on all parameters, see <a href="/reference/api/rest/taxes/create-a-tax" target="_blank" rel="noopener noreferrer">API reference</a>.

<CodeGroup>
  ```shell lines title="Sample request" theme={null}
  curl -X POST 'https://api-m.sandbox.paypal.com/v1/commerce/billing/taxes' \
      -H 'Content-Type: application/json' \
      -H 'Authorization: Bearer <ACCESS-TOKEN>' \
      -d '{
        "name": "Standard VAT",
        "code": "standard_vat",
        "rate": "20.00",
        "description": "Standard Value Added Tax"
      }'
  ```

  ```json lines title="Sample response" theme={null}
  {
        "id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
        "name": "Standard VAT",
        "code": "standard_vat",
        "description": "Standard Value Added Tax",
        "rate": "20.00",
        "created_at": "2023-07-06T14:35:58Z"
      }
  ```
</CodeGroup>

A successful call returns a `201 Created` response. The response includes the following parameter:

| <span style={{textAlign: 'left', display: 'block'}}>Parameter</span>            | <span style={{textAlign: 'left', display: 'block'}}>Description</span> | <span style={{textAlign: 'left', display: 'block'}}>Further action</span>                                                         |
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `code`<br /><span style={{color: '#95a5a6', fontSize: 'smaller'}}>string</span> | Unique code for the tax configuration.                                 | Use this `code` when <a href="#3-apply-taxes">applying taxes</a> to billing entities, customers, pricing plans, or subscriptions. |

For information on all parameters, see <a href="/reference/api/rest/taxes/create-a-tax" target="_blank" rel="noopener noreferrer">API reference</a>.

## 3. Apply taxes

After creating your tax configurations, you can apply them throughout your billing system:

| <span style={{textAlign: 'left', display: 'block'}}>Action</span> | <span style={{textAlign: 'left', display: 'block'}}>How to apply taxes</span>                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Apply to billing entities**                                     | After <a href="/limited-release/usage-based-billing/set-up-billing-process/create-billing-entities" target="_blank" rel="noopener noreferrer">creating billing entities</a>, <a href="/limited-release/usage-based-billing/manage-entities/manage-billing-entities#update-billing-entity-details" target="_blank" rel="noopener noreferrer">update them</a> to include `tax_codes` with the tax codes that apply to that entity.             |
| **Apply to customers**                                            | When <a href="/limited-release/usage-based-billing/set-up-billing-process/register-customers" target="_blank" rel="noopener noreferrer">registering customers</a>, include `tax_codes` in your request body with the tax codes that apply to that customer.                                                                                                                                                                                  |
| **Apply to pricing plans**                                        | When <a href="/limited-release/usage-based-billing/set-up-billing-process/create-pricing-plans" target="_blank" rel="noopener noreferrer">creating pricing plans</a>:<br />• Include `tax_codes` at the plan level for taxes on the base fee<br />• Use `usage_based_charges[].tax_codes` for taxes on specific usage charges<br />• Use `minimum_commitment.tax_codes` for taxes on minimum commitments                                     |
| **Apply to subscriptions**                                        | When <a href="/limited-release/usage-based-billing/set-up-billing-process/create-subscriptions" target="_blank" rel="noopener noreferrer">creating subscriptions</a>, use the `plan_overrides` object to customize tax codes:<br />• `plan_overrides.tax_codes` for plan-level taxes<br />• `plan_overrides.charges[].tax_codes` for charge-specific taxes<br />• `plan_overrides.minimum_commitment.tax_codes` for minimum commitment taxes |
| **Manage existing taxes**                                         | Use the tax management APIs to list all configured taxes, retrieve specific tax details, and update tax rates or descriptions as regulatory requirements change. For more information, see <a href="/limited-release/usage-based-billing/manage-entities/manage-taxes" target="_blank" rel="noopener noreferrer">Manage taxes</a>.                                                                                                           |
