Required role: | REGISUserRole |
POST | /DynamicsCRM/PaymentsDatamart | ||
---|---|---|---|
POST | /DynamicsCRM/PaymentsDatamart/{regent_id} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports regis.DynamicsCRM.Requests
Imports regis.DynamicsCRM.Responses
Namespace Global
Namespace regis.DynamicsCRM.Requests
Public Partial Class CRMPaymentsDatamartRequest
Public Overridable Property regent_id As Integer
End Class
End Namespace
Namespace regis.DynamicsCRM.Responses
Public Partial Class CRMPaymentDatamartResponse
Public Overridable Property guid As String
Public Overridable Property regent_id As Integer
Public Overridable Property addressee As String
Public Overridable Property soft_credit_regent_id As Nullable(Of Integer)
Public Overridable Property second_soft_credit_regent_id As Nullable(Of Integer)
Public Overridable Property donation_id As String
Public Overridable Property designation As String
Public Overridable Property pretty_designation As String
Public Overridable Property pledged As Decimal
Public Overridable Property paid As Decimal
Public Overridable Property paid_canadian As Decimal
Public Overridable Property payment_date As Date
End Class
Public Partial Class CRMPaymentsDatamartResponse
Public Sub New()
personal_payments = New List(Of CRMPaymentDatamartResponse)
other_payments = New List(Of CRMPaymentDatamartResponse)
End Sub
Public Overridable Property personal_payments As List(Of CRMPaymentDatamartResponse)
Public Overridable Property other_payments As List(Of CRMPaymentDatamartResponse)
End Class
End Namespace
End Namespace
VB.NET CRMPaymentsDatamartRequest DTOs
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 /DynamicsCRM/PaymentsDatamart HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"regent_id":0}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"personal_payments":[{"guid":"String","regent_id":0,"addressee":"String","soft_credit_regent_id":0,"second_soft_credit_regent_id":0,"donation_id":"String","designation":"String","pretty_designation":"String","pledged":0,"paid":0,"paid_canadian":0,"payment_date":"0001-01-01T00:00:00.0000000"}],"other_payments":[{"guid":"String","regent_id":0,"addressee":"String","soft_credit_regent_id":0,"second_soft_credit_regent_id":0,"donation_id":"String","designation":"String","pretty_designation":"String","pledged":0,"paid":0,"paid_canadian":0,"payment_date":"0001-01-01T00:00:00.0000000"}]}