Api/CommAgency

From RPM Wiki

Table of contents

Summary

API: Get a commission metric report for an agency for all commission months.

Request

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


Options for Var

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


Example

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

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

Response

Returns a property showing the Var passed into the api call as well as a list of commission month, value pairs.

{"Result":
  {
    "Val":"NetBilled",
    "Values": [
      {
        "Run": "{comm month (yyyymm)}",
        "Value": "{value}"
      },
      {repeat as needed}
    ]
  }
}   


Example

{"Result":
  {"Val":"NetBilled",
   "Values":[
      {"Run":"200507","Value":12562.79},
      {"Run":"200508","Value":16366.83},
      {"Run":"200509","Value":19041.51}
   ]
  }
}

Errors

  • "Unrecognized Var parameter"
  • "User lacks permission"
  • This page was last modified 16:09, 28 Oct 2010.
  • This page has been accessed 510 times.