Exportera Tjänsteguide
Export-API för hela Tjänsteguiden
FormatXML AuthLogin ConsumerStadsnät
list_offers
List all offers that are attached to services, with information of how they may change the monthly price
Request
GET /admin/edit/services/plain/api
Attributes
- optional
Data format: string
Example: json
What format should the response be in, valid values are 'xml' and 'json'
Example request
GET /admin/edit/services/plain/api?method=list_offers&hash=abcd
Response success: 200
HTTP/1.1 200
Content-Type: application/xml<list_offers> <response> <offers> <offer> <id>9</id> <headline>3 månader halva priset!</headline> <shortheadline>3 månader halva priset!</shortheadline> <shorttext></shorttext> <text>Kampanj 3 månader halva priset....</text> <url>http://www.bredband2.com</url> <image>/media/modules/serviceimages/SNF/2011/01/13/10/kampanj.jpg</image> <banner>/media/modules/serviceimages/SNF/2011/01/13/10/banner.jpg</banner> <start>2012-01-31</start> <stop>2012-12-31</stop> <xsp>29933</xsp> <link>/serviceguide/campaigns.php?id=9</link> <value> <monthly>100</monthly> <monthly_qualifier>amount</monthly_qualifier> <monthly_type>fixed price</monthly_type> <monthly_period>3</monthly_period> <addedvalue>777</addedvalue> <start>120</start> <commitment>3</commitment> <quit>1</quit> </value> <services> <service> <id>195</id> </service> <service> <id>196</id> </service> <service> <id>198</id> </service> <service> <id>207</id> </service> <service> <id>212</id> </service> <service> <id>216</id> </service> </services> </offer> </offers> </response> <status>success</status> </list_offers>
Definitions
Data format: array
Information about the value the campaign adds or removed from the base offering
Example: 1299
Used to signify if the offer provides an added value, and what that is in currency, such as a wifi-router.
Data format: integer
Example: 3
Used to set a new commitment time, in months, that is active during the offer period
Data format: integer
the value of how much the monthly price is affected by the campaign
Data format: integer
Denotes the period for which the campaign price is active for the service, value is an integer and is amount of months.
Data format: string
Example: percentage
In what way the value is affected by valuemonthly, "amount" for specific value, "percentage" for a percentage of the original monthly price
Data format: string
Example: rebate
Decides how the price should be affected, "rebate" for a reduction, "addon" for an added value and "fixed price" if the value of valuemonthly is the new monthly price
In the example output below, the monthly price of the service is 100 SEK during the offer period. If valuemonthly, valuemonthly_qualifier and valuemonthly_type is set to "50", "percentage" and "rebate" then the monthly price of the service should be shown to be 50% cheaper than the original value.
Data format: integer
Example: 199
Used to set a new startup fee that is active during the offer period