Api/CommAgencies

From RPM Wiki

Table of contents

Summary

API: Get a commission metric report for all agencies

Request

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


Options for Var

  • NetBilled
  • GrossComm
  • AgentComm
  • GrossProfit
  • Referral
  • ReferralTo
  • 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/CommAgencies

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

Response

Returns agencies sorted A-Z by agency name

{"Result":
  {
    "Agencies": [
      {
        "Agency": "{agency name}",
        "AgencyID": "{agency id}",
        "Value": "{value}"
      },
      {repeat as needed}
    ]
  }
}   


Example

{"Result":
   {"Agencies":[
        {"Agency":"24Unet","AgencyID":493,"Value":1052429.04},
        {"Agency":"5280 Networks, LLC","AgencyID":388,"Value":10}
                ]
    }
}

Errors

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