NOTICE:  THIS VERSION OF THE API HAS BEEN DEPRECATED.  IT WILL CONTINUE TO WORK INDEFINITELY, BUT HAS INCREASED FUNCTIONALITY IN NEWER VERSIONS.

 

WSDL Page:  http://<your_domain_here>/affiliate/api/2/reports.asmx?op=Bills

 

Parameter Summary:

api_key / STRING = Affiliate API Key {See auth.asmx > Login}

affiliate_id / INT = Affiliate ID {See auth.asmx > Login}

start_at_row / INT = Starting Row Number [Usually "1", unless doing incremental API Calls]

row_limit / INT = Maximum Rows Returned ["0" = ALL Rows, "100000" = Maximum]

 

Parameter Types:

api_key - ID

affiliate_id - ID

start_at_row - ASSIGNABLE

row_limit - ASSIGNABLE

 

Sample GET Call:

https://demo.cakemarketing.com/affiliates/api/2/reports.asmx/Bills?api_key=s15Sl4xmfA&affiliate_id=2699&start_at_row=1&row_limit=3

 

Sample XML Response:

<bill_response>
   <success>true</success>
   <row_count>3</row_count>
   <bills>
      <bill>
         <bill_id>4071</bill_id>
         <start_date>2013-01-21T00:00:00</start_date>
         <end_date>2013-01-28T00:00:00</end_date>
         <date_paid />
         <bill_amount>2415.0000</bill_amount>
         <currency_symbol>£</currency_symbol>
      </bill>
      <bill>
         <bill_id>3937</bill_id>
         <start_date>2012-11-16T00:00:00</start_date>
         <end_date>2012-12-01T00:00:00</end_date>
         <date_paid />
         <bill_amount>1317.4680</bill_amount>
         <currency_symbol>£</currency_symbol>
      </bill>
      <bill>
         <bill_id>3341</bill_id>
         <start_date>2012-08-01T00:00:00</start_date>
         <end_date>2012-09-01T00:00:00</end_date>
         <date_paid>2012-11-19T12:44:35.25</date_paid>
         <bill_amount>106.8746</bill_amount>
         <currency_symbol>$</currency_symbol>
      </bill>
   </bills>
</bill_response>