From RPM Wiki
| Table of contents |
[edit]
Summary
API: Get a commission metric report for all customers
[edit]
Request
{
"Key":"{api key}",
"Var":"{the variable}",
"Run":"{the run}"
}
[edit]
Options for Var
- NetBilled
- GrossComm
- AgentComm
- GrossProfit
- Referral
- ContractVal
- Margin
- Wholesale
[edit]
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)
[edit]
Example
http://demo.rpmsoftware.com/rpm/Api.svc/CommCustomers
{
"Key":"abcdefg",
"Var":"NetBilled",
"Run":"all"
}
[edit]
Response
Returns customers sorted A-Z by customer name
{"Result":
{
"Customers": [
{
"Customer": "{customer name}",
"CustomerID": "{customer id}",
"Value": "{value}"
},
{repeat as needed}
]
}
}
[edit]
Example
{"Result":
{"Customers":[
{"Customer":"24Unet","CustomerID":493,"Value":1052429.04},
{"Customer":"5280 Networks, LLC","CustomerID":388,"Value":10}
]
}
}
[edit]
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.
