invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

SalesOrderDiscountsByTypeOrderId: Visma.net Financials itgen_vnet_salesorderdiscountsbytypeorderid_plural

read only REST

  • Catalog: NgSalesOrders
  • Schema: SalesOrders
  • Label: itgen_vnet_salesorderdiscountsbytypeorderid_plural

Gets discount details information for a single sales order Sample request:

GET /salesorders/SO/000101/discounts

Can only retrieve data.

Summary

Sample request:

GET /salesorders/SO/000101/discounts

API Source

  • Endpoint: /api/v3/SalesOrders/{type}/{orderId}/discounts
  • Operation: get /api/v3/SalesOrders/{type}/{orderId}/discounts

Performance Characteristics

Characteristic Value
Average access latency (ms) 155
Full scan rows per minute 29,100
Point query rows per minute 387

The result can be cached on the client.

Parameters

Name Data Type Required Default Documentation
orderId `` The id of the sales order to get
type `` The type of sales order to get

Table Columns

The columns of the table SalesOrderDiscountsByTypeOrderId are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

Name Data Type Label Required Marks Documentation
COMPANY_CODE varchar2(30) Company Code writable Partition code, segmenting the data.
COMPANY_NAME varchar2(240) Company Name writable Name of the partition.
discountAmount double itgen_vnet_discountamount filters on the platform, writable, discountAmount The amount of the discount
discountId varchar2 itgen_vnet_discountid filters on the platform, writable, discountId The identifier of the discount applied to the order
discountPercent double Discount Percent filters on the platform, writable, discountPercent The discount percent, if the discount is defined to be calculated as a percentage
discountSequenceId varchar2 itgen_vnet_discountsequenceid filters on the platform, writable, discountSequenceId The identifier of the discount sequence of the discount ID applied to the order
discountableAmount double itgen_vnet_discountableamount filters on the platform, writable, discountableAmount The amount used as a base for discount calculation if the discount is based on amount.
discountableQuantity double itgen_vnet_discountablequantity filters on the platform, writable, discountableQuantity The quantity used as a base for discount calculation if the discount is based on quantity.
freeItemQuantity double itgen_vnet_freeitemquantity filters on the platform, writable, freeItemQuantity The quantity of the free item. Used to set the quantity for the order line generate by a free item discount
freeItem_description varchar2 itgen_vnet_freeitem_description filters on the platform, writable, freeItem.description The description
freeItem_id varchar2 itgen_vnet_freeitem_id filters on the platform, writable, freeItem.id The id
isManual char itgen_vnet_ismanual filters on the platform, writable, isManual Indicates that the discount has been applied manually
manualOrderIndex int32 itgen_vnet_manualorderindex filters on the platform, writable, manualOrderIndex The number of discount line set for the order
skipDiscount char itgen_vnet_skipdiscount filters on the platform, writable, skipDiscount Indicates if the discount has been cancelled for the order and is not applicable
type varchar2 Type filters on the platform, writable, type The type of discount whose sequence was applied to the document(Group or Document)

Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver: