API - Missions Listing Follow
The missions listing endpoint will return a list of mission trips that the organization has set up regardless of the status. The missions api endpoint using pagination in order to filter results. The max pageSize can be 200. In the headers of the response will be a header "X-Pagination" which will hold pagination information to identify the total count of trips and what the url is for the prev and next set of trips.
Request
Below is an example request. Please replace <TENANT_API_URL> with the URL is that presented under the license key section for settings inside of the platform. Refer to the authentication section of the document for instructions on how to find this URL.
URL: https://<TENANT_API_URL>/1.0/missions?page=1&pageSize=20
Request Headers:
Authorization: Basic 239848923sdfhs93jsdf0u2h3
Content-Type: application/json
Host: 52projects.focusmissions.com
Response:
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
Set-Cookie: .ASPXANONYMOUS=XRdMygx5HU6ZEcf49Mbwdn_v3mnDtQ-HbxG-rPGqcJ0fIyriul33HaZmz_jSfGkCPYu6evUWvM9mDwUOoCiQKZseKAA5gTo_5wkvW9stpmMtz7SiEK6H_RRgc8ArQpTjU_oyIg2; expires=Thu, 30-Mar-2017 10:18:32 GMT; path=/; HttpOnly
X-Pagination:{"totalCount":96,"totalPages":5,"prevPageLink":"","nextPageLink":"https://52projects.focusmissions.com/api/1.0/missions?page=2&pageSize=20"}
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 19 Jan 2017 23:38:32 GMT
Content-Length: 70308
[
{
"id": 6071,
"name": "AFC Prague - Springbreak 2019",
"description": "Join The King's University in Prague",
"costInCents": 50000,
"initialDepositInCents": 300,
"travelStartDate": "2019-11-09T00:00:00",
"travelEndDate": "2019-11-16T00:00:00",
"registrationStartDate": "2017-10-10T00:00:00",
"registrationEndDate": null,
"minAge": 18,
"maxAge": 99,
"maximumHeadCount": 6,
"minimumGroupCount": null,
"maximumGroupCount": null,
"teamLeaderCount": 1,
"participantCount": 3,
"applicantCount": 0,
"eventCode": "TKU",
"showDonationGoal": false,
"showDestination": false,
"showOnPublicPages": true,
"isPrivate": false,
"allowAnonymousGiving": true,
"showGivingButton": true,
"missionStatus": {
"id": 1,
"name": "Launched"
},
"payStructure":{
"id":1,
"name":"None"
},
"operatedBy": {
"id": 1,
"name": "52projects Church"
},
"destination": {
"country": "Czech Republic",
"city": "Prague"
},
"affinityGroup": null,
"missionUrl": "http://fcsmnstry.io/52/Q9Z3yx",
"customDomainMissionUrl": null,
"registerUrl": "https://52projects.focusmissions.com/public/missions/6071/signup/#/",
"customDomainRegisterUrl": null,
"applicationUrl": null,
"customDomainApplicationUrl": null,
"previewImageUrl": "https://prodmissionsstorage01.blob.core.windows.net/missionimages/1/1969_preview.jpg",
"overviewImageUrl": "https://prodmissionsstorage01.blob.core.windows.net/missionimages/1/1969_overview.jpg",
"contactperson": null,
"filtertypes": [],
"paymentduedates": [],
"customFields": [
{
"id": 219,
"name": "Parent Information",
"isRequired": false,
"isVisibleToPublic": true,
"sort": 16,
"answers": []
},
{
"id": 254,
"name": "MinistryPlatform Tips",
"isRequired": false,
"isVisibleToPublic": true,
"sort": 18,
"answers": []
},
{
"id": 299,
"name": "Member Donation Links",
"isRequired": false,
"isVisibleToPublic": true,
"sort": 24,
"answers": []
}
],
"statusEntries": [
{
"id": 1562,
"oldValue": {
"id": 0,
"name": "Setup"
},
"newValue": {
"id": 0,
"name": "Setup"
},
"createdDateTime": "2017-10-10T15:13:47.937"
},
{
"id": 2320,
"oldValue": {
"id": 0,
"name": "Setup"
},
"newValue": {
"id": 1,
"name": "Launched"
},
"createdDateTime": "2017-11-14T17:29:12.66"
}
],
"memberTypes":[
{
"id":7080,
"name":"Team Member",
"description":"Team Members that are registering",
"participantType":{
"id":1,
"name":"Team Member"
},
"showApplicationDescription":true,
"isActive":false,
"autoApprove":false,
"inviteOnly":false,
"invoiceCode":"225246",
"requiresBackgroundCheck":false,
"requiresReferences":false,
"isDeleted":false,
"pricing":[
],
"application":{
"id":4581,
"name":"Adult Team Registration"
}
},
{
"id":7081,
"name":"Team Leader",
"description":"Team Leaders that are registering",
"participantType":{
"id":2,
"name":"Team Leader"
},
"showApplicationDescription":true,
"isActive":false,
"autoApprove":false,
"inviteOnly":true,
"invoiceCode":"596529",
"requiresBackgroundCheck":false,
"requiresReferences":false,
"isDeleted":false,
"pricing":[
],
"application":{
"id":4581,
"name":"Adult Team Registration"
}
}
],
"donationSuggestions": [],
"createdDateTime": "2017-10-10T15:13:47.907",
"lastUpdatedDateTime": "2017-10-10T15:13:47.907"
}
]