$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Implemented in version 25.585

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

Name

Required

Example value

Description

Value / Data type

Default

productidYesproductid=14RequiredID-

businessunitids

No

businessunitids=1,2,3

Only prices for specified business units

ID-list

All

pricelistidNopricelistid=3Only for people with specified price list. When pricelistid=0 the default price will be returnd.IDAll price lists
dateYes/No (see description)date=2014-11-13The prices valid for the specified date. If the date is specified the time must also be specified.DateToday
timeYes/No (see description)time=12:00The prices valid for the specified time. If the time is specfied the date must also be specified.TimeNow

 

Example:

GET:APIURL/prices.xml?apikey=338934897438&productid=14&date=2014-11-13&time=12:00

Responses for alla product types except packages

Tag

Format

Example

Description

prices  The prices tag encloses the prices.
price  Represents a price.
pricelistidID
<pricelistid>7</pricelistid>
The price is valid for persons with specified price list.
businessunitidID
<businessunitid>1</businessunitid>
The price is valid for this business unit.
priceincvatInteger
<priceincvat>25000</priceincvat>
Price including VAT.
priceexvatInteger
<priceexvat>20000</priceexvat>
Price excluding VAT.
starttimeTime Time from when the price is valid.
endtimeTime Time from when the price no longer is valid.
forinternetBoolean
<forinternet>true</forinternet>

The price is only valid for Internet bookings

schedule 
<schedule><id>3</id><name>after lunch</name></schedule>
Represents a schedule. The price is only valid during certain times throughout the day.
<prices>
	<price>
		<pricelistid>7</pricelistid>			
		<businessunitid>134</businessunitid>
		<priceincvat>25000</priceincvat>
		<priceexvat>20000</priceexvat>
		<schedule>
			<id>3</id>
			<name>efter lunch</name>
		</schedule>
		<starttime>
			<timepoint>
        		<timestamp>1102082400</timestamp>
        		<datetime>2012-05-18 12:00</datetime>
        		<date>2012-05-18</date>
        		<time>12:00</time>
      		</timepoint>
		</starttime>
		<endtime>
			<timepoint>
        		<timestamp>1102082400</timestamp>
        		<datetime>2012-06-18 12:00</datetime>
        		<date>2012-06-18</date>
        		<time>12:00</time>
      		</timepoint>
		</endtime>
		<forinternet>true</forinternet>
	</price>
	<price>
		<pricelistid>8</pricelistid>			
		<businessunitid>134</businessunitid>
		<priceincvat>25000</priceincvat>
		<priceexvat>20000</priceexvat>
		<starttime>
			<timepoint>
        		<timestamp>1102082400</timestamp>
        		<datetime>2007-01-01 00:00</datetime>
        		<date>2007-01-01</date>
        		<time>00:00</time>
      		</timepoint>
		</starttime>
		<starttime><timepoint><date>2007-01-01</date><time>00:00</time></timepoint></starttime>
		<forinternet>true</forinternet>
	</price>
	
	<price>	
		<businessunitid>134</businessunitid>
		<priceincvat>25000</priceincvat>
		<priceexvat>20000</priceexvat>
		<forinternet>true</forinternet>		
	</price>
</prices>

Svar som erhålls om produkten är av typ paket

Tag

Exempel

Format

Förklaring

packageparts<packageparts> Lista av paketdelar

packagepart

<packagepart>

 Paketdel

productid

<id>2</id>

 IdProduktens id

productname

<name>Lager 1</name>

Sträng

Produktens namn

perpackage<perpackage>true</perpackage>BooleanEn per antal eller en för hela bokningen*
day<day>1</day>NummerVilken dag paketdelen infaller på (1 = startdagen)
relativetime<relativetime>01:00</relativetime>TidRelativ startid utifrån paketets start**
fixedtime<fixedtime>14:00</fixedtime>TidFast tid för paketdelen**
pricesse ovan prices-taggen omsluter priser. Som ovanstående för icke-paket-produkter

* Om true så ska det vara lika många av paketdelen som av paketet annars endast 1 för hela paketet.

** Endast en av dessa är satta.

<packageparts>
	<packagepart>
		<productid>32</productid>
		<productname>Massage</productname>
		<perpackage>true</perpackage>
		<day>1</day>
		<relativetime>00:00</relativetime>
		<fixedtime></fixedtime>
		<prices>
			<price>
				<priceincvat>425,00</priceincvat>
				<priceexvat>340,00</priceexvat>
				<forinternet>true</forinternet>
				<pricelistid>1</pricelistid>
				<starttime><timepoint><timestamp>1167606000</timestamp><datetime>2007-01-01 00:00</datetime><date>2007-01-01</date><time>00:00</time></timepoint></starttime>
			</price>
		</prices>
	</packagepart>


	<packagepart>
		<productid>32</productid>
		<productname>Massage</productname>
		<perpackage>true</perpackage>
		<day>1</day>
		<relativetime>01:00</relativetime>
		<fixedtime></fixedtime>
		<prices>
			<price>
				<priceincvat>425,00</priceincvat>
				<priceexvat>340,00</priceexvat>
				<forinternet>true</forinternet>
				<pricelistid>1</pricelistid>
				<starttime><timepoint><timestamp>1167606000</timestamp><datetime>2007-01-01 00:00</datetime><date>2007-01-01</date><time>00:00</time></timepoint></starttime>
			</price>
		</prices>
	</packagepart>
</packageparts>

 

 

  • No labels