Frontend
Checkout
Order to sponsor an entity
GET
/
frontend
/
order
/
{client_id}
/
{program_id}
/
{session_id}
Checkout
curl --request GET \
--url https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}import requests
url = "https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_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.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}"
req, _ := http.NewRequest("GET", url, nil)
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.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"session_id": "abc123",
"client_id": 1,
"program_id": 1,
"signup_fields": [
"<string>"
],
"text_checkout": "Checkout",
"useCC": true,
"isDonorCardActive": true,
"session_logged_in": true,
"login_box": "Login Box",
"num_of_sponsorships": 1,
"payment_options": [
"<string>"
],
"hide_payment_method": false,
"default_payment_method": "Credit Card",
"months": {
"10": "10 - October",
"11": "11 - November",
"12": "12 - December",
"01": "01 - January",
"02": "02 - February",
"03": "03 - March",
"04": "04 - April",
"05": "05 - May",
"06": "06 - June",
"07": "07 - July",
"08": "08 - August",
"09": "09 - September"
},
"years": {
"2022": 2022,
"2023": 2023,
"2024": 2024,
"2025": 2025,
"2026": 2026,
"2027": 2027,
"2028": 2028,
"2029": 2029,
"2030": 2030,
"2031": 2031
},
"stripe_pubkey": "pk_test_1234",
"processing_fee": "$5.00",
"processing_percentage": "2.9%",
"num_sponsorships": 1
}
}{
"message": "Error: Administrator must enable a payment method in program settings.",
"status": "error"
}⌘I
Checkout
curl --request GET \
--url https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}import requests
url = "https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_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.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}"
req, _ := http.NewRequest("GET", url, nil)
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.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helpyousponsor.com/v1/frontend/order/{client_id}/{program_id}/{session_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"session_id": "abc123",
"client_id": 1,
"program_id": 1,
"signup_fields": [
"<string>"
],
"text_checkout": "Checkout",
"useCC": true,
"isDonorCardActive": true,
"session_logged_in": true,
"login_box": "Login Box",
"num_of_sponsorships": 1,
"payment_options": [
"<string>"
],
"hide_payment_method": false,
"default_payment_method": "Credit Card",
"months": {
"10": "10 - October",
"11": "11 - November",
"12": "12 - December",
"01": "01 - January",
"02": "02 - February",
"03": "03 - March",
"04": "04 - April",
"05": "05 - May",
"06": "06 - June",
"07": "07 - July",
"08": "08 - August",
"09": "09 - September"
},
"years": {
"2022": 2022,
"2023": 2023,
"2024": 2024,
"2025": 2025,
"2026": 2026,
"2027": 2027,
"2028": 2028,
"2029": 2029,
"2030": 2030,
"2031": 2031
},
"stripe_pubkey": "pk_test_1234",
"processing_fee": "$5.00",
"processing_percentage": "2.9%",
"num_sponsorships": 1
}
}{
"message": "Error: Administrator must enable a payment method in program settings.",
"status": "error"
}
