regis

<back to all web services

CRMTaxReceiptsRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/TaxReceipts
POST/DynamicsCRM/TaxReceipts/{regent_id}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using regis.DynamicsCRM.Requests;
using regis.DynamicsCRM.Responses;

namespace regis.DynamicsCRM.Requests
{
    public partial class CRMTaxReceiptsRequest
    {
        public virtual int? regent_id { get; set; }
        public virtual DateTime? from_date { get; set; }
        public virtual DateTime? to_date { get; set; }
        public virtual bool has_document { get; set; }
        public virtual int? year { get; set; }
    }

}

namespace regis.DynamicsCRM.Responses
{
    public partial class CRMTaxReceiptResponse
    {
        public virtual int regent_id { get; set; }
        public virtual string donor_first_name { get; set; }
        public virtual string donor_last_name { get; set; }
        public virtual string guid { get; set; }
        public virtual string title { get; set; }
        public virtual decimal total_paid_amount { get; set; }
        public virtual decimal total_receipt_amount { get; set; }
        public virtual bool is_annual { get; set; }
        public virtual int? year { get; set; }
        public virtual bool has_document { get; set; }
        public virtual string tax_receipt_send_method { get; set; }
        public virtual string status { get; set; }
        public virtual string tax_receipt_template_guid { get; set; }
        public virtual string tax_receipt_template_name { get; set; }
        public virtual string tax_receipt_email { get; set; }
        public virtual DateTime? email_sent_date { get; set; }
        public virtual string email_sent_to { get; set; }
        public virtual DateTime? gift_date { get; set; }
        public virtual DateTime? sent_date { get; set; }
    }

    public partial class CRMTaxReceiptsResponse
    {
        public CRMTaxReceiptsResponse()
        {
            tax_receipts = new List<CRMTaxReceiptResponse>{};
        }

        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual List<CRMTaxReceiptResponse> tax_receipts { get; set; }
        public virtual DateTime? from_date { get; set; }
        public virtual DateTime? to_date { get; set; }
    }

}

C# 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

HTTP + JSON

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"}