Billhighway Cloud API

<back to all web services

DonationAchRequest

The following routes are available for this service:
POST/donations/ach
DonationAchRequest Parameters:
NameParameterData TypeRequiredDescription
DonorInfobodyDonationDonorInfoNoNot required if MemberInfo is present on request
MemberInfobodyDonationMemberInfoNoNot required if DonorInfo is present on request
CampaignIdbodyint?NoUse GET /campaigns to retreive valid list of campaignIDs
AchRefbodystringNoRoutingNumber and AccountNumber are not required if AchRef is provided
RoutingNumberbodystringNoRequired if AchRef is not provided
AccountNumberbodystringNoRequired if AchRef is not provided
DonationRequestBase Parameters:
NameParameterData TypeRequiredDescription
GroupIdformstringYesClient value for Group. String must already be configured in Billhighway system.
AmountformdecimalYesAmount of the payment. Must be an amount less than $10,000,000.00.
CurrencyCodeformstringNoThe currency the payment is being made in. Three digit currency code (see ISO 4217) for a valid currency supported by Billhighway. Defaults to USD
MemoformstringNoNotes about the donation. Maximum 70 characters.
DonationRecurringInfoformDonationRecurringInfoNo
MetaDataformJsonObjectNoCustom fields
DonationRecurringInfo Parameters:
NameParameterData TypeRequiredDescription
FrequencyformstringYesHow often donation is collected automatically

Allowable Values

  • Yearly
  • Monthly
  • Quarterly
NumberOfOccurrencesformintYesNumber of recurring donation cycles.
FutureDonationDateformDateTime?NoAllows the submitter to set a future date for the donation
DonationDonorInfo Parameters:
NameParameterData TypeRequiredDescription
FullNameformstringYesName of donor. Maximum 100 characters. Format must be Firstname {space} Lastname.
AddressformstringYesBilling address. Maximum 100 characters.
CityformstringYesBilling city. Maximum 100 characters.
StateformstringYesBilling state. Two characters, must match valid US state code.
PostalCodeformstringYesCredit Card billing address postal code. Maximum 10 characters.
EmailAddressformstringNoEmail address of donor. Maximum 100 characters. If provided, must be valid email format.
PhoneformstringNoPreferred phone number. Maximum 12 characters.
DonationMemberInfo Parameters:
NameParameterData TypeRequiredDescription
BhUserIdformintYes
DonationAchResponse Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformintNoLegacy ErrorCode
ErrorMessageformstringNo
IsErrorformboolNo
TransactionIdformstringNoDonation Transaction ID

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

HTTP + CSV

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

POST /donations/ach HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"DonorInfo":{"FullName":"String","Address":"String","City":"String","State":"String","PostalCode":"String","EmailAddress":"String","Phone":"String"},"MemberInfo":{"BhUserId":0},"CampaignId":0,"AchRef":"String","RoutingNumber":"String","AccountNumber":"String","GroupId":"String","Amount":0,"CurrencyCode":"String","Memo":"String","DonationRecurringInfo":{"Frequency":"String","NumberOfOccurrences":0,"FutureDonationDate":"0001-01-01T00:00:00.0000000"},"MetaData":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ErrorCode":0,"ErrorMessage":"String","IsError":false,"TransactionId":"String"}