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}
namespace BH.CloudAPI.Common.DTO

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type CreditCardUsed() = 
        member val CardHolderName:String = null with get,set
        member val Icon:String = null with get,set
        member val CaptureSource:String = null with get,set
        member val Last4Digits:String = null with get,set
        member val Type:String = null with get,set

    [<AllowNullLiteral>]
    type DonationLocation() = 
        member val Longitude:Double = new Double() with get,set
        member val Latitude:Double = new Double() with get,set

    [<AllowNullLiteral>]
    type DonationTransaction() = 
        member val Id:Int32 = new Int32() with get,set
        member val Status:String = null with get,set
        member val DetailUri:String = null with get,set
        member val CancelUri:String = null with get,set
        member val CreatedBy:Int32 = new Int32() with get,set
        member val ClientId:Int32 = new Int32() with get,set
        member val GroupId:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type DonationReceiptsResponse() = 
        member val Id:Int32 = new Int32() with get,set
        member val Status:String = null with get,set
        member val CampaignName:String = null with get,set
        member val CampaignId:Int32 = new Int32() with get,set
        member val Date:String = null with get,set
        member val Amount:Decimal = new Decimal() with get,set
        member val CreditCard:CreditCardUsed = null with get,set
        member val Location:DonationLocation = null with get,set
        member val Transaction:DonationTransaction = null with get,set

    [<AllowNullLiteral>]
    type GetDonation() = 
        inherit GetDonation()

F# GetDonation DTOs

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

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DonationReceiptsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common.DTO">
  <Amount>0</Amount>
  <CampaignId>0</CampaignId>
  <CampaignName>String</CampaignName>
  <CreditCard>
    <CaptureSource>String</CaptureSource>
    <CardHolderName>String</CardHolderName>
    <Icon>String</Icon>
    <Last4Digits>String</Last4Digits>
    <Type>String</Type>
  </CreditCard>
  <Date>String</Date>
  <Id>0</Id>
  <Location>
    <Latitude>0</Latitude>
    <Longitude>0</Longitude>
  </Location>
  <Status>String</Status>
  <Transaction>
    <CancelUri>String</CancelUri>
    <ClientId>0</ClientId>
    <CreatedBy>0</CreatedBy>
    <DetailUri>String</DetailUri>
    <GroupId>0</GroupId>
    <Id>0</Id>
    <Status>String</Status>
  </Transaction>
</DonationReceiptsResponse>