The following data should be transmitted with your commission calls (shown as standard JSON array):
              
                {
                  "apikey": "YOUR API KEY",
                  "affiliate": "AFFILIATE CODE",
                  "commission": {
                    "product": "PRODUCT ID",
                    "saletotal": "SALE TOTAL",
                    "commtotal": "COMMISSION VALUE",
                    "notes": "OPTIONAL NOTES HERE",
                    "ip": "SALE IP ADDRESS"
                  },
                  "emails": {
                    "affiliate": "yes",
                    "admin": "no"
                  },
                  "custom": {}
                }
                
              
              apikey = Your api key as set in the 
settings. This must be included with all calls.
              
affiliate = Affiliate code, this would come from the cookie that is set (see below).
              
commission = Commission array containing the following:
              
              product = Product ID corresponding to product in your Maian Affiliate system.
              saletotal = Sale total. No currency symbols or commas. Examples: 9.99, 45.78, 1245.76 etc
              commtotal = Commission total. No currency symbols or commas. Examples: 9.99, 45.78, 1245.76 etc. Does not
              need to be included if custom commission set for affiliate. See note above.
              notes = Optional notes. Not seen by affiliate. These are logged in the database and are viewable in your
              Maian Affiliate admin area.
              ip = Sale IP address.
              
              emails = Email array if you wish to suppress emails from being sent. By default, emails are on, so you only need to include these if
              you wish to deactivate any emails. In the above example, the admin email is not sent.
              
custom = Option custom array. Key / value pairs that are included in the email sent to the webmaster. These are not logged in the system. This
              is optional and does not need to be included unless you require it.