HTTP Operation Type Object DTO Why-DTOs?
Mutation createProduct ProductCreateGLDtoInput
Mutation updateProduct ProductUpdateGLDtoInput
Mutation deleteProduct ProductDeleteGLDtoInput
Query products filtered by id Why?  
Query products  
         

Description

Products, both identified as Product in the API context and in the product interface, serve as the foundational elements for creating and managing sales transactions.

In the scope of sales documents, such as quotes, orders, delivery notes, and invoices, the Products entity plays a pivotal role.
Each product entry can include a comprehensive set of details, from basic identifiers like the product code and name, to more complex attributes like tax codes, discount rates, and stock levels.
This enables seamless generation and manipulation of various sales documents, ensuring both accuracy and consistency across transactions.

Additionally, the Products entity can be associated with various pricing models, such as standard rates, special discounts, promotional offers, and tiered pricing strategies. These associations help in automating the calculation of final costs in sales documents, making the process more efficient and less prone to errors.

img

To see examples of mutations that include the adding of :
download the Postman collection: Quick start / 5. Test your first query in Postman

graphQL Mutation
mutation ($values: ProductCreateGLDtoInput!) {  
    createProduct(input: $values) {
    id
  }
}
graphQL Variables
{
  "values":{
      "code": "SILVRING",
      "name": "Silver Ring",
      "lineDescription": "This ring showcases a timeless design that complements any outfit.",
      "comments": "This ring has been a bestseller in previous collections.",
      "salesUnitPrice": 400,
      "taxGroupId":"{taxGroupId}",
  }
} 
Key Value
Authorization Bearer Current access Token How to find?
X-TenantId Current tenant id How to find?
X-OrganizationId Current organization Id How to find?
x-api-key Primary or secondary subscription key of your app How to find?

products

Fields Type Description Length
id UUID ID  
creationDate DateTime Creation Date  
modificationDate DateTime Modification Date  
       
category
  • PRODUCT
  • SERVICE
Product Category  
code String Product Code 15
name String Product Name 50
registrationDate DateTime Timestamp for tracking and auditing  
obsolete Boolean Whether the product is obsolete  
obsoleteDate DateTime Date when obsolete was enabled  
       
lineDescription String Online Description 250
comments String Additional comments 250
       
taxes[] Array List of taxes from the product’s tax group.  
taxGroupId UUID Tax Group ID  
salesAccountingAccount Sales Accounting Account Fields of Sales Accounting Account  
salesAccountingAccountid UUID Sales Accounting Account ID  
       
salesUnitPrice Decimal Sales Unit Price  
salesVatPercentage Decimal Sales VAT Percentage  
firstSalesDiscount Decimal First Sales Discount  
       
salesOrderBlockingEnabled Boolean Is Sales Order Blocking Enabled  
salesOrderBlockingDate DateTime Date when Sales Order Blocking was enabled  
salesDeliveryNoteBlockingEnabled Boolean Is Sales Delivery Note Blocking Enabled  
salesDeliveryNoteBlockingDate DateTime Date when Sales Delivery Note Blocking was enabled  
salesInvoiceBlockingEnabled Boolean Is Sales Invoice Blocking Enabled  
salesInvoiceBlockingDate DateTime Date when Sales Invoice Blocking was enabled  
Info
  • category: Optional enum value specifying the general type of the item, either PRODUCT or SERVICE.
    Default value is PRODUCT.
  • obsolete: Optional Boolean flag to indicate if the product is obsolete or discontinued.
    Default value is false. It can only be set when modifying a product, not during creation.
  • lineDescription: A text field serving as the product description, containing information that can be visible to the customer.
  • comments: A text field for defining internal information, for example, a sales argument.

  • taxGroupId: Optional unique identifier (UUID) specifying the tax group applicable to the product.
    Default value is the one defined in Configuration / Company / Sales and Operations / Tax group.
img

  • salesAccountingAccountId: Optional unique identifier (UUID) specifying the Sales Accounting Account associated with the product.
    Default value is the one defined in Configuration / Company / Accounting / Sales account.

img

  • salesVatPercentage: Retrieved from taxes via taxGroupId / percentage, corresponds to the VAT rate of the item.
    On the product interface, it is used to calculate Gross Price from Net Price.