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

# Add/modify a product

> This endpoint provides the means for adding/updating sale invoice products for later use in the system



## OpenAPI

````yaml /openapi/openapi.json post /company/products
openapi: 3.1.0
info:
  title: OpenAPI
  version: '1.0'
  summary: OpenApi
  contact:
    name: Altera Support
    url: https://altera.co
    email: wsparcie@altera.co
  description: ''
  license:
    url: https://altera.co/regulamin
    name: Terms of services for Altera.app
servers:
  - url: https://api.altera.co
    description: Production endpoint (proxied)
security:
  - Authorization: []
tags:
  - name: Configuration
  - name: Data export
  - name: Expenses
  - name: Sales
paths:
  /company/products:
    parameters: []
    post:
      tags:
        - Configuration
      summary: Add/modify a product
      description: >-
        This endpoint provides the means for adding/updating sale invoice
        products for later use in the system
      operationId: postcompany-products
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoiceProduct'
              x-examples:
                Example 1:
                  productId: 7638
                  itemType: PRODUCT
                  productName: Accurate made letter
                  unit: m2
                  price: '98.00'
                  vatPerc: 23%
                  pkwiu: 3.2.7
                  gtu: '04'
                  category: 15465
                  favourite: false
                  enabled: false
            examples:
              Example 1:
                value:
                  productId: 7638
                  itemType: PRODUCT
                  productName: Accurate made letter
                  unit: m2
                  price: '98.00'
                  vatPerc: 23%
                  pkwiu: 3.2.7
                  gtu: '04'
                  category: 15465
                  favourite: false
                  enabled: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                x-examples:
                  Example 1:
                    result: OK
                    data:
                      productId: 7638
                properties:
                  result:
                    type: string
                    default: OK
                  data:
                    type: object
                    properties:
                      productId:
                        type: integer
              examples:
                Example 1:
                  value:
                    result: OK
                    data:
                      productId: 7638
components:
  schemas:
    InvoiceProduct:
      x-examples:
        Example 1:
          productId: 7638
          itemType: PRODUCT
          productName: Accurate made letter
          unit: m2
          price: '98.00'
          vatPerc: 23%
          pkwiu: 3.2.7
          gtu: '04'
          category: 15465
          favourite: false
          enabled: false
      type: object
      examples:
        - productId: 7638
          itemType: PRODUCT
          productName: Accurate made letter
          unit: m2
          price: '98.00'
          vatPerc: 23%
          pkwiu: 3.2.7
          gtu: '04'
          category: 15465
          favourite: false
          enabled: false
      properties:
        productId:
          type: integer
        itemType:
          type: string
          enum:
            - PRODUCT
            - SERVICE
        productName:
          type: string
        unit:
          type: string
        price:
          type: string
        vatPerc:
          type: string
        pkwiu:
          type: string
        gtu:
          type: string
        category:
          type: integer
        favourite:
          type: boolean
        enabled:
          type: boolean
  securitySchemes:
    Authorization:
      name: Authorization
      type: apiKey
      in: header
      description: OpenApi Key created within Altera.app for a certain company

````