YM REST Services

<back to all web services

DonationFunds

Requires Authentication
Requires any of the roles:admin, oauthadminRequires the permission:/admin/donations/
The following routes are available for this service:
GET/Ams/{ClientID}/DonationFundsReturn a list of Donation Funds currently setup for this client.
GET/Ams/{ClientID}/DonationFunds/{fundId}Return the details of a specific Donation Fund.
DonationFunds Parameters:
NameParameterData TypeRequiredDescription
fundIdpathintNo
BaseDto Parameters:
NameParameterData TypeRequiredDescription
UsingRedisformboolNo
AppInitTimeformDateTimeNo
ServerIDformstringNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
DonationFundsResponse Parameters:
NameParameterData TypeRequiredDescription
fundListformList<DonationFundDetailed>No
DonationFundDetailed Parameters:
NameParameterData TypeRequiredDescription
fundDescriptionformstringNo
fundOptionsformList<DonationFundOptions>No
DonationFund Parameters:
NameParameterData TypeRequiredDescription
fundIdformintNo
fundNameformstringNo
fundOptionsCountformintNo
DonationFundOptions Parameters:
NameParameterData TypeRequiredDescription
DescriptionformstringNo
ValueformdoubleNo

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.

GET /Ams/{ClientID}/DonationFunds HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"fundList":[{"fundDescription":"String","fundOptions":[{"Description":"String","Value":0}],"fundId":0,"fundName":"String","fundOptionsCount":0}],"fundId":0,"UsingRedis":true,"AppInitTime":"2024-05-03T00:24:41.1317790-04:00","ServerID":"WS-4-69-031","ClientID":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"BypassCache":false,"DateCached":"2024-05-03T02:59:11.3844403-04:00","Device":"Desktop"}