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}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO
Imports BH.CloudAPI.Common.DTO

Namespace Global

    Namespace BH.CloudAPI.Common.DTO

        Public Partial Class CreditCardUsed
            Public Overridable Property CardHolderName As String
            Public Overridable Property Icon As String
            Public Overridable Property CaptureSource As String
            Public Overridable Property Last4Digits As String
            Public Overridable Property Type As String
        End Class

        Public Partial Class DonationLocation
            Public Overridable Property Longitude As Double
            Public Overridable Property Latitude As Double
        End Class

        Public Partial Class DonationReceiptsResponse
            Public Overridable Property Id As Integer
            Public Overridable Property Status As String
            Public Overridable Property CampaignName As String
            Public Overridable Property CampaignId As Integer
            Public Overridable Property [Date] As String
            Public Overridable Property Amount As Decimal
            Public Overridable Property CreditCard As CreditCardUsed
            Public Overridable Property Location As DonationLocation
            Public Overridable Property Transaction As DonationTransaction
        End Class

        Public Partial Class DonationTransaction
            Public Overridable Property Id As Integer
            Public Overridable Property Status As String
            Public Overridable Property DetailUri As String
            Public Overridable Property CancelUri As String
            Public Overridable Property CreatedBy As Integer
            Public Overridable Property ClientId As Integer
            Public Overridable Property GroupId As Integer
        End Class
    End Namespace

    Namespace BH.CloudAPI.Common4.DTO

        Public Partial Class GetDonation
            Inherits GetDonation
            Implements IReturnLegacyException
        End Class
    End Namespace
End Namespace

VB.NET GetDonation 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.

GET /v1.1/Donations/Get/{id} HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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}}