CommCustomers

CommCustomers(
    string Run
)

Get a Commission metric report for all Customers.

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

Returns the Customers sorted by Name.

{
    "Result": {
        "Customers": [
            {
                "Customer"   : <string>,
                "CustomerID" : <int>,
                "NetBilled"  : <double>,
                "SalesComm"  : <double>,
                "GrossComm"  : <double>,
                "GrossProfit": <double>,
                "Referral"   : <double>
            },
            // More reports for each customer
        ]
    }
}

Errors

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