Billhighway Cloud API

<back to all web services

GetDonation

The following routes are available for this service:
GET/v1.1/Donations/Get/{id}
GET/v1.2/Donations/Get/{id}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BH.CloudAPI.Common4.DTO;
using BH.CloudAPI.Common.DTO;

namespace BH.CloudAPI.Common.DTO
{
    public partial class CreditCardUsed
    {
        public virtual string CardHolderName { get; set; }
        public virtual string Icon { get; set; }
        public virtual string CaptureSource { get; set; }
        public virtual string Last4Digits { get; set; }
        public virtual string Type { get; set; }
    }

    public partial class DonationLocation
    {
        public virtual double Longitude { get; set; }
        public virtual double Latitude { get; set; }
    }

    public partial class DonationReceiptsResponse
    {
        public virtual int Id { get; set; }
        public virtual string Status { get; set; }
        public virtual string CampaignName { get; set; }
        public virtual int CampaignId { get; set; }
        public virtual string Date { get; set; }
        public virtual decimal Amount { get; set; }
        public virtual CreditCardUsed CreditCard { get; set; }
        public virtual DonationLocation Location { get; set; }
        public virtual DonationTransaction Transaction { get; set; }
    }

    public partial class DonationTransaction
    {
        public virtual int Id { get; set; }
        public virtual string Status { get; set; }
        public virtual string DetailUri { get; set; }
        public virtual string CancelUri { get; set; }
        public virtual int CreatedBy { get; set; }
        public virtual int ClientId { get; set; }
        public virtual int GroupId { get; set; }
    }

}

namespace BH.CloudAPI.Common4.DTO
{
    public partial class GetDonation
        : GetDonation, IReturnLegacyException
    {
    }

}

C# GetDonation DTOs

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

HTTP + JSV

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

GET /v1.1/Donations/Get/{id} HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	Status: String,
	CampaignName: String,
	CampaignId: 0,
	Date: String,
	Amount: 0,
	CreditCard: 
	{
		CardHolderName: String,
		Icon: String,
		CaptureSource: String,
		Last4Digits: String,
		Type: String
	},
	Location: 
	{
		Longitude: 0,
		Latitude: 0
	},
	Transaction: 
	{
		Id: 0,
		Status: String,
		DetailUri: String,
		CancelUri: String,
		CreatedBy: 0,
		ClientId: 0,
		GroupId: 0
	}
}