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 |
|---|---|---|---|---|
order |
`` | 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_ |
varchar2 |
Company Code | writable | Partition code, segmenting the data. | |
COMPANY_ |
varchar2 |
Company Name | writable | Name of the partition. | |
discount |
double |
itgen_vnet_discountamount | filters on the platform, writable, discount |
The amount of the discount | |
discount |
varchar2 |
itgen_vnet_discountid | filters on the platform, writable, discount |
The identifier of the discount applied to the order | |
discount |
double |
Discount Percent | filters on the platform, writable, discount |
The discount percent, if the discount is defined to be calculated as a percentage | |
discount |
varchar2 |
itgen_vnet_discountsequenceid | filters on the platform, writable, discount |
The identifier of the discount sequence of the discount ID applied to the order | |
discountable |
double |
itgen_vnet_discountableamount | filters on the platform, writable, discountable |
The amount used as a base for discount calculation if the discount is based on amount. | |
discountable |
double |
itgen_vnet_discountablequantity | filters on the platform, writable, discountable |
The quantity used as a base for discount calculation if the discount is based on quantity. | |
free |
double |
itgen_vnet_freeitemquantity | filters on the platform, writable, free |
The quantity of the free item. Used to set the quantity for the order line generate by a free item discount | |
free |
varchar2 |
itgen_vnet_freeitem_description | filters on the platform, writable, free |
The description | |
free |
varchar2 |
itgen_vnet_freeitem_id | filters on the platform, writable, free |
The id | |
is |
char |
itgen_vnet_ismanual | filters on the platform, writable, is |
Indicates that the discount has been applied manually | |
manual |
int32 |
itgen_vnet_manualorderindex | filters on the platform, writable, manual |
The number of discount line set for the order | |
skip |
char |
itgen_vnet_skipdiscount | filters on the platform, writable, skip |
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: