Price changes. Domain: Stock.
| what | pricechange |
|---|---|
| Direction | Output (get), Input (put) |
| Endpoint | POST https://login.directo.ee/xmlcore/cap_xml_direct/xmlcore.asp |
| Schema (output) | ws_hinnamuutused.xsd |
| Schema (input) | xml_IN_hinnamuutused.xsd |
| 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 |
| 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 |
xd_update=1 and posting the whole document. Default values (ALT.FROM): Mandatory fields.
Type=14).confirm (in addition to xd_confirm).| 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:
session_id – for internal use at Directo side, do not send this field!| 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 |
Component-specific; add from the source wiki if this component has parameters.
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>