| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,OPTIONS | /v1/Ledger/{LedgerId} | ||
|---|---|---|---|
| GET,POST,OPTIONS | /v1/Ledger |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class Ledger
Public Overridable Property LedgerId As Integer
Public Overridable Property AgentId As Integer
Public Overridable Property CommissionBatchId As Integer
Public Overridable Property Rank As String
Public Overridable Property Commissions As Decimal
Public Overridable Property Clawbacks As Decimal
Public Overridable Property Adjustments As Decimal
Public Overridable Property PreviousBalance As Decimal
Public Overridable Property ASAPCharges As Decimal
Public Overridable Property Payout As Decimal
Public Overridable Property BalanceForward As Decimal
End Class
Public Partial Class LedgerExtended
Inherits Ledger
Public Overridable Property AgentFirstName As String
Public Overridable Property AgentLastName As String
Public Overridable Property AgentName As String
Public Overridable Property AgentLevel As Decimal
Public Overridable Property PayChexId As String
End Class
Public Partial Class LedgerRequest
Public Overridable Property Ledger As List(Of LedgerExtended) = New List(Of LedgerExtended)
End Class
Public Partial Class LedgerResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Ledger As List(Of LedgerExtended) = New List(Of LedgerExtended)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Ledger HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Ledger":[{"AgentFirstName":"String","AgentLastName":"String","AgentName":"String","AgentLevel":0,"PayChexId":"String","LedgerId":0,"AgentId":0,"CommissionBatchId":0,"Rank":"String","Commissions":0,"Clawbacks":0,"Adjustments":0,"PreviousBalance":0,"ASAPCharges":0,"Payout":0,"BalanceForward":0}]}
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","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Ledger":[{"AgentFirstName":"String","AgentLastName":"String","AgentName":"String","AgentLevel":0,"PayChexId":"String","LedgerId":0,"AgentId":0,"CommissionBatchId":0,"Rank":"String","Commissions":0,"Clawbacks":0,"Adjustments":0,"PreviousBalance":0,"ASAPCharges":0,"Payout":0,"BalanceForward":0}]}