...
Implemented in version 25.585
Lista priser
Listar priser för angiven produkt. Vid produkter av typ paket så listas delarnas priser individuellt. Resurser tas ej i beaktande.
Anrop
...
List prices
Lists prices for specified product. For packages the price is listed individually per item. Resources are not used.
Call
HTTP GET to /prices
Filter
namnName | obligatoriskRequired | exempelvärdeExample value | förklaringDescription | VärdemängdValue / DatatypData type | Default | ||||
---|---|---|---|---|---|---|---|---|---|
productid | jaYes | productid=14 | obligatoriskRequired | ID | - | ||||
businessunitids | nejNo | businessunitids=1,2,3 | endast priser som gäller för dessa anläggningarOnly prices for specified business units | ID-listalist | AllaAll | ||||
pricelistid | nejNo | pricelistid=3 | enbart för personer som har denna prislista. Om pricelistid=0 så erhålls enbart standardpriset i svaretOnly for people with specified price list. When pricelistid=0 the default price will be returnd. | IDAlla prislistor | All price lists | ||||
date | jaYes/nej No (se förklaringsee description) | date=2014-11-13 | priser som gäller denna dag. Om date anges så måste även time anges. | Datum | Idag | time | ja/nej (se förklaringThe prices valid for the specified date. If the date is specified the time must also be specified. | Date | Today |
time | Yes/No (see description) | time=12:00 | priser som gäller denna tid. Om time anges så måste även date anges. | Tid | Nu |
...
The prices valid for the specified time. If the time is specfied the date must also be specified. | Time | Now |
Example:
Code Block |
---|
GET:APIURL/prices.xml?apikey=338934897438&productid=14&date=2014-11-13&time=12:00 |
...
Responses for alla product types except packages
Tag | Format | ExempelExample | FörklaringDescription |
---|---|---|---|
prices | prices | -taggen omsluter priserThe prices tag encloses the prices | |
price | representerar ett pris | ||
pricelistid | ID | <pricelistid>7</pricelistid> | priset avser personer med denna prislista |
businessunitid | ID | <businessunitid>1</businessunitid> | priset gäller för denna anläggning |
priceincvat | Nummer | <priceincvat>25000</priceincvat> | belopp inkl moms |
priceexvat | Nummer | <priceexvat>20000</priceexvat> | belopp exkl moms |
starttime | Tidpunkt | tidpunkt då priset är giltigt från | |
endtime | Tidpunkt | tidpunkt då priset är giltigt till | |
forinternet | Boolean | <forinternet>true</forinternet> | priset gäller endast internetbokningar |
schedule | <schedule><id>3</id><name>efter lunch</name></schedule> | Representerar ett schema. Priset gäller vissa tider på dagen. |
...