> ## Documentation Index
> Fetch the complete documentation index at: https://nayax-44d6e37b-docs-marshall-faq-redistribution.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Product Group Tax

> Creates new tax details for a specific product group, identified by the ProductGroupID. The request body contains the tax information to be added.



## OpenAPI

````yaml /openapi/lynx.yaml post /v1/productGroups/{ProductGroupID}/tax
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v1/productGroups/{ProductGroupID}/tax:
    post:
      tags:
        - Product Groups
      summary: Create Product Group Tax
      description: >-
        Creates new tax details for a specific product group, identified by the
        ProductGroupID. The request body contains the tax information to be
        added.
      operationId: create-product-group-tax
      parameters:
        - name: ProductGroupID
          in: path
          description: The unique identifier of the product group.
          required: true
          schema:
            type: integer
            format: int32
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/VatRequest'
      responses:
        '200':
          description: The newly created tax details for the specified product group.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VatDTO'
components:
  schemas:
    VatRequest:
      type: object
      properties:
        CountryID:
          type: integer
          format: int32
          description: The unique identifier of the country where the tax applies.
        CityID:
          type: integer
          format: int32
          nullable: true
          description: The unique identifier of the city where the tax applies.
        RegionID:
          type: integer
          format: int32
          nullable: true
          description: >-
            The unique identifier of the region where the tax applies (if
            applicable).
        TaxValue:
          type: number
          format: double
          nullable: true
          description: The value or rate of the tax to be created.
        TaxCode:
          type: integer
          format: int32
          nullable: true
          description: The code associated with the tax to be created.
        VatName:
          type: string
          nullable: true
          description: The name of the VAT (Value Added Tax) associated with the tax entry.
        TaxId:
          type: string
          nullable: true
          description: The tax identification number associated with the tax entry.
        TaxIncluded:
          type: boolean
          nullable: true
          description: Indicates whether the tax is included in the product price.
      additionalProperties: false
    VatDTO:
      type: object
      properties:
        TaxRowID:
          type: integer
          format: int32
          description: The unique identifier of the tax row.
        ProductGroupID:
          type: integer
          format: int32
          description: The unique identifier of the product group associated with the tax.
        CountryID:
          type: integer
          format: int32
          description: The unique identifier of the country where the tax applies.
        CityID:
          type: integer
          format: int32
          description: The unique identifier of the city where the tax applies.
        RegionID:
          type: integer
          format: int32
          nullable: true
          description: >-
            The unique identifier of the region where the tax applies (if
            applicable).
        TaxValue:
          type: number
          format: double
          nullable: true
          description: The value or rate of the tax.
        TaxCode:
          type: integer
          format: int32
          nullable: true
          description: The code associated with the tax.
        CreatedBy:
          type: integer
          format: int64
          nullable: true
          description: The identifier of the user who created the tax entry.
        CreatedDT:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the tax entry was created.
        UpdatedBy:
          type: integer
          format: int64
          nullable: true
          description: The identifier of the user who last updated the tax entry.
        UpdatedDT:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the tax entry was last updated.
        VatName:
          type: string
          nullable: true
          description: The name of the VAT (Value Added Tax) associated with the tax entry.
        TaxId:
          type: string
          nullable: true
          description: The tax identification number associated with the tax entry.
        TaxIncluded:
          type: boolean
          nullable: true
          description: Indicates whether the tax is included in the product price.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````