Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Language

...

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

productidjaYesproductid=14obligatoriskRequiredID-

businessunitids

nejNo

businessunitids=1,2,3

endast priser som gäller för dessa anläggningarOnly prices for specified business units

ID-listalist

AllaAll

pricelistidnejNopricelistid=3enbart 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 prislistorAll price lists
datejaYes/nej No (se förklaringsee description)date=2014-11-13priser som gäller denna dag. Om date anges så måste även time anges.DatumIdagtimeja/nej (se förklaringThe prices valid for the specified date. If the date is specified the time must also be specified.DateToday
timeYes/No (see description)time=12:00priser som gäller denna tid. Om time anges så måste även date anges.TidNu

 

...

The prices valid for the specified time. If the time is specfied the date must also be specified.TimeNow

 

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
pricelistidID
<pricelistid>7</pricelistid>
priset avser personer med denna prislista
businessunitidID
<businessunitid>1</businessunitid>
priset gäller för denna anläggning
priceincvatNummer
<priceincvat>25000</priceincvat>
belopp inkl moms
priceexvatNummer
<priceexvat>20000</priceexvat>
belopp exkl moms
starttimeTidpunkt tidpunkt då priset är giltigt från
endtimeTidpunkt tidpunkt då priset är giltigt till
forinternetBoolean
<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.

...