CommAccounts(
    string Run 
)

Get a Commission metric report for all Accounts.

Request

Request Data:

  • (string) Run(required) – Which Run to report:
    • yyyymm – A commission run described in the year/month format
    • yyyy – Commission runs for the year
    • all – All commission runs
    • this – The currently open run
    • prev – The previous run
    • closed – The most recently closed run
{
    "Run": <string>
}

Response

{
    "Result": {
        "Accounts": [
            {
                "Account"    : <string>,
                "AccountID"  : <int>,
                "NetBilled"  : <double>,
                "SalesComm"  : <double>,
                "GrossComm"  : <double>,
                "GrossProfit": <double>,
                "Referral"   : <double>
            },
            // More reports for each account
        ]
    }
}

Errors

  • “Unrecognized Run parameter”
  • “User lacks permission”