
Maintenance
We are currently working on upgrading this service, this may lead to unexpected functionality
Direct Activation 1.1
API for direct activation of services from Tjänsteguiden connecting to an API server on the CO premises
FormatXML AuthLogin OriginStadsnät ConsumerTjänsteguiden
port_status
Acquire port status on a specific accessId
Request
GET https://www.citynet.com/[api]
Attributes
- mandatory
Data format: string
Example: 123-456-ABC
User socket
Example request
GET /[api]?method=port_status&socket=123-456-ABC
Response success: 200
HTTP/1.1 200
Content-Type: application/xml<port_status> <response> <info> <message>Port avstängd på grund av utebliven betalning</message> <nettype>LAYER2</nettype> <media>FTTH</media> <portcapacity>100</portcapacity> <cpecapacity>1000</cpecapacity> <cocpe>YES</cocpe> <dhcpoption>5216010765746820302F31020B31302E</dhcpoption> <serviceport>ASAP</serviceport> </info> <services> <service> <id>12</id> <date>2010-12-03</date> <name>T3 50/50 Mbit Privat</name> <commitment>2030-01-01</commitment> <release>0</release> <message>Tjänst aktiverad via BRF Föreningen</message> </service> <service> <id>13</id> <date>2010-08-21</date> <name>AllTele Telefoni Privat</name> <commitment>2011-06-25</commitment> <release>2030-01-01</release> </service> </services> </response> <status>success</status> </port_status>
Definitions
- optional
Data format: string
Example: Port avstängd på grund av utebliven betalning
Message to end user about port - mandatory
Data format: date
Example: 2021-06-12
Date for earliest deactivation - mandatory
Data format: date
Example: 2021-01-03
Date for activation - mandatory
Data format: service_uid
Example: BB100100
Service ID in system, same as service_uid in Tjänsteguiden - optional
Data format: string
Message about service, shown to customer under "My Pages" - optional
Data format: string
Example: 100 / 100 Mbit/s
Service name in system (is used if id can't be mapped to a service_uid) - optional
Data format: date
Example: 2021-08-01
Date for scheduled deactivation