Trips
Get a trip with setup details
Returns the trip profile, program bindings, cover image, budget items, tasks and fundraising totals in the authenticated organization.
GET
/
admin
/
trips
/
{id}
Get a trip with setup details
curl --request GET \
--url https://api.gratona.com/v1/admin/trips/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/trips/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gratona.com/v1/admin/trips/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gratona.com/v1/admin/trips/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/admin/trips/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gratona.com/v1/admin/trips/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/trips/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"slug": "<string>",
"status": "<string>",
"fundraising_goal": 123,
"total_raised": 123,
"progress_percent": 123,
"participant_count": 123,
"is_sample_trip": true,
"sample_seed_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"destination": "<string>",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"description": "<string>",
"cover_image_id": 123,
"total_budget": 123,
"default_participant_goal": 123,
"suggested_participant_goal": 123,
"settings": {
"donor_hysform_id": 123,
"program_setting_id": 123,
"emailset_id": 123,
"show_donor_names": "full",
"default_participant_goal_mode": "equal_split",
"default_participant_goal_amount": 499999999.995,
"required_esign_templates": [
"<string>"
],
"background_check_validity_months": 60,
"background_check_cost_mode": "org",
"show_donation_amounts": true,
"allow_recurring_donations": true,
"completed_accept_donations": true,
"show_participant_goals": true,
"allow_anonymous_donations": true,
"sync_budget_to_goal": true,
"allow_participant_visibility_opt_out": true,
"request_to_join_enabled": true
},
"program_binding": {
"program_id": 123,
"donor_hysform_id": 123,
"program_setting_id": 123,
"emailset_id": 123
},
"cover_image": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"budget_items": [
{
"id": 123,
"trip_id": 123,
"category": "<string>",
"description": "<string>",
"amount": 123,
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"tasks": [
{
"id": 123,
"title": "<string>",
"description": "<string>",
"due_date": "2023-12-25",
"is_required": true,
"requires_document": true,
"requires_approval": true,
"sort_order": 123
}
]
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}Authorizations
bearerAuthapiKeyAuth
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Record ID within the organization and any parent resource in this route.
Response
Get a trip with setup details response.
Trip-specific settings merged with saved settings on update. Binding IDs must belong to this organization. background_check_validity_months is validated but stripped before storage; Checkr owns validity. sample_seed is preserved and cannot be supplied by callers.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Get a trip with setup details
curl --request GET \
--url https://api.gratona.com/v1/admin/trips/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/trips/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gratona.com/v1/admin/trips/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gratona.com/v1/admin/trips/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/admin/trips/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gratona.com/v1/admin/trips/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/trips/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"slug": "<string>",
"status": "<string>",
"fundraising_goal": 123,
"total_raised": 123,
"progress_percent": 123,
"participant_count": 123,
"is_sample_trip": true,
"sample_seed_version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"destination": "<string>",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"description": "<string>",
"cover_image_id": 123,
"total_budget": 123,
"default_participant_goal": 123,
"suggested_participant_goal": 123,
"settings": {
"donor_hysform_id": 123,
"program_setting_id": 123,
"emailset_id": 123,
"show_donor_names": "full",
"default_participant_goal_mode": "equal_split",
"default_participant_goal_amount": 499999999.995,
"required_esign_templates": [
"<string>"
],
"background_check_validity_months": 60,
"background_check_cost_mode": "org",
"show_donation_amounts": true,
"allow_recurring_donations": true,
"completed_accept_donations": true,
"show_participant_goals": true,
"allow_anonymous_donations": true,
"sync_budget_to_goal": true,
"allow_participant_visibility_opt_out": true,
"request_to_join_enabled": true
},
"program_binding": {
"program_id": 123,
"donor_hysform_id": 123,
"program_setting_id": 123,
"emailset_id": 123
},
"cover_image": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"budget_items": [
{
"id": 123,
"trip_id": 123,
"category": "<string>",
"description": "<string>",
"amount": 123,
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"tasks": [
{
"id": 123,
"title": "<string>",
"description": "<string>",
"due_date": "2023-12-25",
"is_required": true,
"requires_document": true,
"requires_approval": true,
"sort_order": 123
}
]
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Something went wrong. Please try again.",
"status": "error",
"error": "invalid_request",
"code": "DONOR_NOT_FOUND"
}{
"message": "Not Found",
"status": "error"
}