I have a small job that requires a PHP script to be setup to do the following.
The client has 2 websites. The main website and an affiliate system site. We are looking at having the main website talk to the affiliate system site to update orders daily.
The main website will produce a CSV file daily that needs to be cross referenced to the affiliate system. The affiliate system being used is “Post Affiliate Pro”.
Post Affiliate Pro provides an API script that can do what we are looking for.
We are looking for a programmer to do the following:
The developer should write a script, that would read the 'order id' from your CSV and then that order id would be passed to the API that will change the particular order to "Declined", so that the 'Automatic approval of commission".
The script will need to do the following:
1. If the total price is the same, then nothing need be done.
2. If the price is lower (or zero) than the original order, then a debit commission needs to be entered.
3. If the price is higher a credit commission need be entered.
The script only needs to worry about the pending orders (by which I mean if a commission is showing up as approved)
I have attached an example of the API and the website CSV dump.