Required role: | REGISUserRole |
POST | /DynamicsCRM/TaxReceipts | ||
---|---|---|---|
POST | /DynamicsCRM/TaxReceipts/{regent_id} |
import java.math.*
import java.util.*
import net.servicestack.client.*
open class CRMTaxReceiptsRequest
{
var regent_id:Int? = null
var from_date:Date? = null
var to_date:Date? = null
var has_document:Boolean? = null
var year:Int? = null
}
open class CRMTaxReceiptsResponse
{
var responseStatus:ResponseStatus? = null
var tax_receipts:ArrayList<CRMTaxReceiptResponse> = ArrayList<CRMTaxReceiptResponse>()
var from_date:Date? = null
var to_date:Date? = null
}
open class CRMTaxReceiptResponse
{
var regent_id:Int? = null
var donor_first_name:String? = null
var donor_last_name:String? = null
var guid:String? = null
var title:String? = null
var total_paid_amount:BigDecimal? = null
var total_receipt_amount:BigDecimal? = null
var is_annual:Boolean? = null
var year:Int? = null
var has_document:Boolean? = null
var tax_receipt_send_method:String? = null
var status:String? = null
var tax_receipt_template_guid:String? = null
var tax_receipt_template_name:String? = null
var tax_receipt_email:String? = null
var email_sent_date:Date? = null
var email_sent_to:String? = null
var gift_date:Date? = null
var sent_date:Date? = null
}
Kotlin CRMTaxReceiptsRequest 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/TaxReceipts HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"regent_id":0,"from_date":"0001-01-01T00:00:00.0000000","to_date":"0001-01-01T00:00:00.0000000","has_document":false,"year":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"}},"tax_receipts":[{"regent_id":0,"donor_first_name":"String","donor_last_name":"String","guid":"String","title":"String","total_paid_amount":0,"total_receipt_amount":0,"is_annual":false,"year":0,"has_document":false,"tax_receipt_send_method":"String","status":"String","tax_receipt_template_guid":"String","tax_receipt_template_name":"String","tax_receipt_email":"String","email_sent_date":"0001-01-01T00:00:00.0000000","email_sent_to":"String","gift_date":"0001-01-01T00:00:00.0000000","sent_date":"0001-01-01T00:00:00.0000000"}],"from_date":"0001-01-01T00:00:00.0000000","to_date":"0001-01-01T00:00:00.0000000"}