The goals a contributor may put money into, for its beneficiary.
curl --request GET \
--url http://localhost:8080/goals/contributableimport requests
url = "http://localhost:8080/goals/contributable"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/goals/contributable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/goals/contributable",
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 := "http://localhost:8080/goals/contributable"
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("http://localhost:8080/goals/contributable")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/goals/contributable")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"account_id": "<string>",
"contribution_ratio": {
"self_contribution": {
"currency": "INR",
"value": 123
},
"sponsor_contribution": {
"currency": "INR",
"value": 123
}
},
"created_at": "<string>",
"currency": "INR",
"id": "<string>",
"last_modified_at": "<string>",
"others_accumulated": {
"currency": "INR",
"value": 123
},
"periodicity": "<string>",
"purpose": {
"category": "healthcare",
"kind": "CATEGORY"
},
"self_accumulated": {
"currency": "INR",
"value": 123
},
"self_spent": {
"currency": "INR",
"value": 123
},
"sponsor_accumulated": {
"currency": "INR",
"value": 123
},
"sponsor_spent": {
"currency": "INR",
"value": 123
},
"status": "ACTIVE",
"target_amount": {
"currency": "INR",
"value": 123
},
"target_met": true,
"user_id": "012345678901",
"purpose_details": {
"category": "<string>",
"kind": "CATEGORY"
},
"end_date": "2027-01-15",
"mandate_id": "<string>",
"start_date": "2026-01-15",
"contribution_presets": [
{
"currency": "INR",
"value": 123
}
],
"max_contribution_amount": {
"currency": "INR",
"value": 123
}
}
],
"total": 123
}Goals
List Contributable Goals
Called straight after POST /auth/contributor_token. Takes no user_id label —
the beneficiary is the token’s, or x-user-id when the token carries none.
Returns the driver’s ACTIVE goals, and for an INDIRECT token only those whose
linked mandate is LIVE; an empty list is a 200, not a 404.
GET
/
goals
/
contributable
The goals a contributor may put money into, for its beneficiary.
curl --request GET \
--url http://localhost:8080/goals/contributableimport requests
url = "http://localhost:8080/goals/contributable"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/goals/contributable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/goals/contributable",
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 := "http://localhost:8080/goals/contributable"
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("http://localhost:8080/goals/contributable")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/goals/contributable")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"account_id": "<string>",
"contribution_ratio": {
"self_contribution": {
"currency": "INR",
"value": 123
},
"sponsor_contribution": {
"currency": "INR",
"value": 123
}
},
"created_at": "<string>",
"currency": "INR",
"id": "<string>",
"last_modified_at": "<string>",
"others_accumulated": {
"currency": "INR",
"value": 123
},
"periodicity": "<string>",
"purpose": {
"category": "healthcare",
"kind": "CATEGORY"
},
"self_accumulated": {
"currency": "INR",
"value": 123
},
"self_spent": {
"currency": "INR",
"value": 123
},
"sponsor_accumulated": {
"currency": "INR",
"value": 123
},
"sponsor_spent": {
"currency": "INR",
"value": 123
},
"status": "ACTIVE",
"target_amount": {
"currency": "INR",
"value": 123
},
"target_met": true,
"user_id": "012345678901",
"purpose_details": {
"category": "<string>",
"kind": "CATEGORY"
},
"end_date": "2027-01-15",
"mandate_id": "<string>",
"start_date": "2026-01-15",
"contribution_presets": [
{
"currency": "INR",
"value": 123
}
],
"max_contribution_amount": {
"currency": "INR",
"value": 123
}
}
],
"total": 123
}