Price changes (pricechange)
Price changes. Domain: Stock.
Output (get)
Query (get)
| Parameter | Description |
token | interface token (required) |
get | 1 |
what | pricechange |
number | optional filter |
date1 | period start |
date2 | period end |
stock | optional filter |
ts | changed-since (for syncing) |
| XML field | SQL field | Type | Length | UI label | Description |
number | number | int | | | |
date | aeg | date | | | |
project | projekt | string | | | |
object | objekt | string | | | |
stock | ladu | string | | | |
sum1 | summa1 | decimal | | | |
sum2 | summa2 | decimal | | | |
confirmed | kinnitatud | int | | | |
ts | ts | dateTime | | | |
Rows
| XML field | SQL field | Type | Length | UI label | Description |
item | artikkel | string | | | |
name | nimetus | string | | | |
quantity | kogus | decimal | | | |
price1 | hind1 | decimal | | | |
price2 | hind2 | decimal | | | |
project | r_projekt | string | | | |
object | r_objekt | string | | | |
stock | r_ladu | string | | | |
Attachments: not supported. Approvals: not supported.
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
number | number | int | | | | |
stock | ladu | string | | | | |
date | aeg | dateTime | | | | |
account | konto | string | | | | |
comment | kommentaar | string | | | | |
confirm | kinnita | int | | | | “1” - confirm document, “2” confirm and create invoice |
Do not send:
Rows
| XML field | SQL field | Type | Length | Mandatory | UI label | Description |
item | artikkel | string | | | | |
description | seletus | string | | | | |
stockprice | hind1 | decimal | | | | |
newstockprice | hind2 | decimal | | | | |
quantity | kogus | decimal | | | | |
serialnumber | seerianumber | string | | | | |
rn | rn | int | | | | |
Transport parameters
Configured on the token (interface), not sent in xmldata. PARAMETER 2 = document type.
| TYPE | CODE | PARAMETER 1 | PARAMETER 2 | DESCRIPTION |
| XML | xd_confirm | 0 | PRICECHANGE | Auto-confirm document; also via XML field confirm |
| XML | xd_object | VEEB | PRICECHANGE | Default object if not sent |
| XML | xd_stock | PL | PRICECHANGE | Default warehouse if not sent |
Response
docid = number of the created/updated document. Error codes: Responses and error codes.
<results>
<Result Type="0" Desc="Created" docid="100001" doctype="PRICECHANGE" submit="Price changes"/>
</results>