Bombshell Agency Platform Service

<back to all web services

TeamEarningsRequest

The following routes are available for this service:
GET,OPTIONS/v1/TeamEarnings

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/TeamEarningsRequest HTTP/1.1 
Host: api2.exactmedicare.com 
Content-Type: application/json
Content-Length: length

{"RootAgentId":0,"BatchIds":[0],"ComparisonBatchIds":[0],"IncludeInactive":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]},"RootAgentId":0,"Agents":[{"AgentId":0,"FirstName":"String","LastName":"String","AgentNumber":"String","AgentStatus":"String","Rank":"String","ParentAgentId":0,"ParentName":"String","Depth":0,"TreePath":"String","MasterAccount":0,"PersonId":0,"IsRoot":false}],"Earnings":[{"AgentId":0,"BatchId":0,"Advance":0,"AsEarned":0,"Backend":0,"OverrideBonus":0,"Residual":0,"SurvivalBonus":0,"OtherBonus":0,"Clawback":0,"BackendClawback":0,"BackendClawbackForgiven":0,"Other":0,"PositiveTotal":0,"NegativeTotal":0,"ListingsNet":0,"DownlineOverrideAmount":0,"PersonalProductionAmount":0,"AdjustmentCredit":0,"AdjustmentDebit":0,"AdjustmentLead":0,"AdjustmentNet":0,"NetEarnings":0,"ListingCount":0,"PayoutPolicyCount":0,"ClawbackPolicyCount":0}],"Batches":[{"BatchId":0,"CommissionStartDate":"0001-01-01T00:00:00.0000000","CommissionEndDate":"0001-01-01T00:00:00.0000000","PaymentDate":"0001-01-01T00:00:00.0000000","Label":"String","IsUnbatched":false}]}