Api/CommCustomers

From RPM Wiki

Table of contents

Summary

API: Get a commission metric report for all customers

Request

{
  "Key":"{api key}",
  "Var":"{the variable}",
  "Run":"{the run}"
}


Options for Var

  • NetBilled
  • GrossComm
  • AgentComm
  • GrossProfit
  • Referral
  • ContractVal
  • Margin
  • Wholesale

Options for Run

  • 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)

Example

http://demo.rpmsoftware.com/rpm/Api.svc/CommCustomers

{
   "Key":"abcdefg",
   "Var":"NetBilled",
   "Run":"all"
}

Response

Returns customers sorted A-Z by customer name

{"Result":
  {
    "Customers": [
      {
        "Customer": "{customer name}",
        "CustomerID": "{customer id}",
        "Value": "{value}"
      },
      {repeat as needed}
    ]
  }
}   


Example

{"Result":
   {"Customers":[
        {"Customer":"24Unet","CustomerID":493,"Value":1052429.04},
        {"Customer":"5280 Networks, LLC","CustomerID":388,"Value":10}
                ]
    }
}

Errors

  • "Unrecognized Var parameter"
  • "Unrecognized Run parameter"
  • "User lacks permission"
  • This page was last modified 19:00, 25 Oct 2010.
  • This page has been accessed 320 times.