api

Atlas API

Methods
API Endpoint: XSP Beställningar
Endpoint URL http://www.stadsnatsportalen.se/plain/serviceguide_log
This API does not require granted privileges, and is open to any user API key This API does not require granted privileges, and is open to any user API key
  • Method: customer_info

  • Parameters
    1 hash string green ABC123 Login hash from api_login()
    2 id int green 1234 ID of customer
    Example Query:
    http://www.stadsnatsportalen.se/plain/serviceguide_log?method=customer_info&hash=ABC123&id=1234
  • success response


       <customer_info>
          <response>
             <customer>
                <id>10573</id>
                <socket>KC0101A06</socket>
                <serial>19700101010101</serial>
                <firstname>Susanne</firstname>
                <surname>Testqvist</surname>
                <email>testqvist@epost.se</email>
                <address>Testgatan10b</address>
                <zip>64430</zip>
                <city>Torshälla</city>
             </customer>
             <data>
                <phone>0708530013</phone>
                <premise>1002</premise>
             </data>
          </response>
          <status>success</status>
       </customer_info>
  • Method: customers

  • Parameters
    1 hash string green ABC123 Login hash from api_login()
    2 date string green 2018-01-04 Date from which to show new customers
    Example Query:
    http://www.stadsnatsportalen.se/plain/serviceguide_log?method=customers&hash=ABC123&date=2018-01-04
  • success response


       <customers>
          <response>
             <customer>
                <id>10573</id>
                <socket>KC0101A06</socket>
                <serial>19700101010101</serial>
                <firstname>Susanne</firstname>
                <surname>Testqvist</surname>
                <date>2018-01-01 12:34</date>
             </customer>
             <customer>
                <id>48962</id>
                <socket>CCTW0151B87</socket>
                <serial>190001010202</serial>
                <firstname>Anton</firstname>
                <surname>Testblom</surname>
                <date>2018-01-01 12:34</date>
             </customer>
          </response>
          <status>success</status>
       </customers>
  • Method: order_info

  • Parameters
    1 hash string green ABC123 Login hash from api_login()
    2 id int green 1234 The id for the order to show the info
    Example Query:
    http://www.stadsnatsportalen.se/plain/serviceguide_log?method=order_info&hash=ABC123&id=1234
  • success response


       <order_info>
          <response>
             <orderinfo>
                <date>2018-01-11 00:20</date>
                <ID>NORRSRV22018011172713</ID>
                <type>order</type>
                <status>delivered</status>
                <delivery>2018-01-12 00:00</delivery>
                <provider>Bredband2</provider>
                <service_id>2225</service_id>
                <service>1/1 Gbit/s</service>
                <category>Privatpersoner: Internet / Via fiber</category>
                <citynet>ServaNet</citynet>
             </orderinfo>
             <customer>
                <id>57333</id>
                <serial>197001012323</serial>
                <firstname>peter</firstname>
                <surname>Ledin</surname>
                <email>peter@epost.net</email>
                <address>Test Kvarn 456</address>
                <zip>87193</zip>
                <city>Härnösand</city>
                <approve>Jag har läst och godkänner villkoren</approve>
                <phone>07012345678</phone>
                <PUL-godkannande>1</PUL-godkannande>
             </customer>
             <logs>
                <log>
                   <date>2018-01-11 00:20:00</date>
                   <message>Saved order</message>
                   <type>system</type>
                </log>
                <log>
                   <date>2018-01-11 00:20:00</date>
                   <message>Attaching order to existing customer (197009227831)</message>
                   <type>system</type>
                </log>
                <log>
                   <date>2018-01-11 00:20:00</date>
                   <message>Found email address for XSP associated with service or company: bredband2@obc.bosscrm.se</message>
                </log>
                <log>
                   <date>2018-01-11 00:20:00</date>
                   <message>Sent order email to XSP: bredband2@obc.bosscrm.se</message>
                </log>
                <log>
                   <date>2018-01-11 00:20:00</date>
                   <message>Sent confirmation email to customer: peter@skugga.net</message>
                </log>
                <log>
                   <date>2018-01-18 09:45:00</date>
                   <message>Set status to delivered</message>
                   <type>update</type>
                </log>
             </logs>
             <serviceinfo>
                <data>
                   <name>invoice type</name>
                   <value>Autogiro</value>
                </data>
                <data>
                   <name>monthly fee</name>
                   <monthly>369</monthly>
                </data>
                <data>
                   <name>JUST NU! Vinterkampanj – 6 månader halva priset oc</name>
                </data>
             </serviceinfo>
          </response>
          <status>success</status>
       </order_info>
  • Method: order_log

  • Parameters
    1 hash string green ABC123 Login hash from api_login()
    2 id int green 1234 The id for the order to show the log
    Example Query:
    http://www.stadsnatsportalen.se/plain/serviceguide_log?method=order_log&hash=ABC123&id=1234
  • Method: orders

  • Parameters
    1 hash string green ABC123 Login hash from api_login()
    2 date string green 2018-01-04 The date from which to show new orders
    Example Query:
    http://www.stadsnatsportalen.se/plain/serviceguide_log?method=orders&hash=ABC123&date=2018-01-04
  • success response


       <orders>
          <response>
             <order>
                <id>72713</id>
                <uid>NORRSRV22018011172713</uid>
                <type>order</type>
                <date>2018-01-11 00:20:28</date>
                <status>delivered</status>
                <service>2225</service>
                <delivery>2018-01-12 00:00:00</delivery>
                <customer>57333</customer>
                <citynet>ServaNet</citynet>
             </order>
             <order>
                <id>72723</id>
                <uid>MNCMSN2018011172723</uid>
                <type>order</type>
                <date>2018-01-11 12:11:15</date>
                <status>new</status>
                <service>3860</service>
                <delivery>2018-02-05 00:00:00</delivery>
                <customer>57341</customer>
                <citynet>Fibra</citynet>
             </order>
          </response>
          <status>success</status>
       </orders>
  • Method: set_status

  • Parameters
    1 hash string green ABC123 Login hash from api_login()
    2 id int green 1234 ID of order
    3 status string green delivered New status for order
    Example Query:
    http://www.stadsnatsportalen.se/plain/serviceguide_log?method=set_status&hash=ABC123&id=1234&status=delivered
  • success response


       <set_status>
          <response>
             <message>Status changed to delivered for order 1234</message>
          </response>
          <status>success</status>
       </set_status>
#inlineditbutton