---
title: "UpsertTaxCodeRequest"
url: "https://nov18-dev.movespot.fyi/apis/konnect-metering-billing-private-0/versions/6e18e75c-446e-4fe4-8c39-2ccdd58e22a9/schemas/UpsertTaxCodeRequest"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-metering-billing-private-0/versions/6e18e75c-446e-4fe4-8c39-2ccdd58e22a9.md

# UpsertTaxCodeRequest

TaxCode upsert request.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect Metering & Billing
  version: 0.0.1
servers:
  - url: https://us.api.konghq.com/v3
    description: United-States Production region
  - url: https://eu.api.konghq.com/v3
    description: Europe Production region
  - url: https://au.api.konghq.com/v3
    description: Australia Production region
  - url: https://me.api.konghq.com/v3
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v3
    description: India Production region
  - url: https://sg.api.konghq.com/v3
    description: Singapore Production region
components:
  schemas:
    Labels:
      description: >
        Labels store metadata of an entity that can be used for filtering an
        entity list or for searching across entity types. 


        Keys must be of length 1-63 characters, and cannot start with "kong",
        "konnect", "mesh", "kic", or "_".
      type: object
      example:
        env: test
      additionalProperties:
        type: string
        pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
        minLength: 1
        maxLength: 63
      maxProperties: 50
      title: Labels
    BillingTaxCodeAppMapping:
      description: Mapping of app types to tax codes.
      type: object
      properties:
        app_type:
          description: The app type that the tax code is associated with.
          type: string
          enum:
            - sandbox
            - stripe
            - external_invoicing
          title: App type
        tax_code:
          description: Tax code.
          type: string
          title: Tax code
      required:
        - app_type
        - tax_code
    UpsertTaxCodeRequest:
      description: TaxCode upsert request.
      type: object
      properties:
        name:
          description: |-
            Display name of the resource.

            Between 1 and 256 characters.
          type: string
          maxLength: 256
          minLength: 1
        description:
          description: |-
            Optional description of the resource.

            Maximum 1024 characters.
          type: string
          maxLength: 1024
        labels:
          $ref: "#/components/schemas/Labels"
        app_mappings:
          description: Mapping of app types to tax codes.
          type: array
          items:
            $ref: "#/components/schemas/BillingTaxCodeAppMapping"
          title: App type to tax code mappings
      required:
        - name
        - app_mappings
```
