https://app.mojotxt.com/api/v1/{phone_number}/donations/list
Parameters can be sent in the URL querystring or as POST variables.
Parameter | Options | Description |
---|---|---|
Sort | DonationID, Keyword, FundName, DefaultAmount, RecurringScheduleID, CCBFund | Sort the list by a field. |
SortDirection | ASC, DESC | Sort Ascending or Descending |
Limit | Any Integer | Limit the results to a certain number of records. |
Page | Any Integer | If Limit is specified, return a certain page of results. |
Stats | 1, 0 | Include statistical information about each keyword in the list (TotalAmountDonated, TotalDonations, LastDonationTime) |
GET https://app.mojotxt.com/api/v1/+16146827117/donations/list?Sort=Keyword&SortDirection=ASC&Stats=1
{
"result":"success",
"timestamp":1445807373,
"request":{
"phone":"+16146827117",
"object":"donations",
"verb":"list",
"Sort":"Keyword",
"SortDirection":"ASC",
"Stats":"1"
},
"record_count":2,
"records":[
{
"DonationID":103,
"Keyword":"building",
"FundName":"Building Fund",
"DefaultAmount":null,
"RecurringScheduleID":0,
"CCBFund":null,
"TotalAmountDonated": 44625.6, /* These fields are included */
"TotalDonations": 396, /* only when the Stats parameter */
"LastDonationTime": 1441961723 /* is set to "1" */
},
{
"DonationID":8,
"Keyword":"give",
"FundName":"Tithes\/Offerings",
"DefaultAmount":null,
"RecurringScheduleID":2,
"CCBFund":1,
"TotalAmountDonated": 0,
"TotalDonations": 0,
"LastDonationTime": 0
}
]
}