Can someone who uses CJ's Commission Detail Service (REST) tell me what a sample XML response is for this query.
None of CJ's Web Services documentation indicates exactly how the XML is formatted and as I don't have any commission payments yet I can only guess the result.
I just used simplexml_load_string( $response ) to get it as xml feed as already answered but the object would appear as follows:
All the above answers are now outdated. The new response contains the total of 20 different items. Recently I've raised a ticket on CJ and this is the response I got.
I have written one python script for polling commission detail service api. I have covered all parts of commission detail service api by fetching original_action_id of the first response(Commissions Resource) and calling the 2nd part of it(Item-Detail Resource). Finally I'm merging both those XML into a single dictionary.
Found out the hard way by signing up to one of my publishers :
THis is an example which will read each node in the your above sample XML report. you can extract the required values and save them into the DB...... smiles :).