WAPI – account-list

Use this command to get dump of movements on your credit account in selected period.

Parameters

  • date_from – start date of printed movements
  • date_to – finish date of printed movements

Return values

  • 1000 – alright
  • 3004 – wrong input data – period is not specified
  • 3005 – wrong input data – wrong date

Return data

The command returns a list of credit account items

Example

XML query:

<request>
 <user>tester</user>
 <auth>463870369aef393f3b82274107c9ade4b5b2a414</auth>
 <command>account-list/command>
 <clTRID>ngfNVDQxhWf3</clTRID>
 <data>
  <date_from>2013-01-01</date_from>
  <date_to>2013-03-31</date_to>
 </data>
</request>

XML reply:

<response>
 <code>1000</code>
 <result>OK</result>
 <timestamp>1365149913</timestamp>
 <clTRID>ngfNVDQxhWf3</clTRID>
 <svTRID>1365149913.8683.29010.1</svTRID>
 <command>account-list</command>
 <data>
  <3068>
   <ID>3068</ID>
   <type>payment</type>
   <num>3113000018</num>
   <description>test.cz</description>
   <amount>-125.00</amount>
   <bill_num></bill_num>
   <bill_date></bill_date>
   <blocked>0</blocked>
   <created_date>2013-01-17 13:36:14</created_date>
  </3068>
  <3121>
   <ID>3121</ID>
   <type>payment</type>
   <num>3313000052</num>
   <description>15 GB HDD, 512 MB RAM, 1 proc., CentOS 6.3</description>
   <amount>-110.00</amount>
   <bill_num></bill_num>
   <bill_date></bill_date>
   <blocked>0</blocked>
   <created_date>2013-03-21 16:10:04</created_date>
  </3121>
 </data>
</response>
Děkujeme za zpětnou vazbu!