Get User Investments
curl --request POST \
--url https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"investment_types": [
"<string>"
],
"investment_categories": [
"<string>"
],
"currencies": [
"<string>"
]
}
'import requests
url = "https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}"
payload = {
"investment_types": ["<string>"],
"investment_categories": ["<string>"],
"currencies": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
investment_types: ['<string>'],
investment_categories: ['<string>'],
currencies: ['<string>']
})
};
fetch('https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}', 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://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'investment_types' => [
'<string>'
],
'investment_categories' => [
'<string>'
],
'currencies' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}"
payload := strings.NewReader("{\n \"investment_types\": [\n \"<string>\"\n ],\n \"investment_categories\": [\n \"<string>\"\n ],\n \"currencies\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"investment_types\": [\n \"<string>\"\n ],\n \"investment_categories\": [\n \"<string>\"\n ],\n \"currencies\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"investment_types\": [\n \"<string>\"\n ],\n \"investment_categories\": [\n \"<string>\"\n ],\n \"currencies\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "User investments successfully returned",
"data": [
{
"tokenId": "683ef69f70457700022e091b",
"balance": 90.02,
"lien": 9.98,
"balance_value": 900200,
"lien_value": 99800,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Debt Note",
"name": "FCMB Debt Note",
"symbol": "FDNE",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1748956437/getequity/profiles/user/vkxslmd8wwwicawnhb8d.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 20000000,
"interest": 23
},
{
"tokenId": "682b2f367732900002613bfc",
"balance": 93.44,
"lien": 116.56,
"balance_value": 934400,
"lien_value": 1165600,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Ojaja Pan African LTD Series 2 Commercial Paper",
"symbol": "OPAS2",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1747660006/getequity/profiles/user/awdrtenbvofwworewikc.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 100000000,
"interest": 29
},
{
"tokenId": "6749cbc398b58800023c869d",
"balance": 90,
"lien": 10,
"balance_value": 900000,
"lien_value": 100000,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Debt Note",
"name": "CredPal Debt Capital",
"symbol": "CDCL",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1732889376/getequity/profiles/user/pneolukhhtxhozblth51.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 100000000,
"interest": 31
},
{
"tokenId": "66d8fc02dde72d0002907df3",
"balance": 1,
"lien": 0,
"balance_value": 10000,
"lien_value": 0,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Desperado 25",
"symbol": "D2A5",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10,
"exchange": 10000
},
"raise_amount": 2000000,
"interest": 31
},
{
"tokenId": "66d8ef4eaaec01000251c6d7",
"balance": 102.5,
"lien": 297.5,
"balance_value": 1025000,
"lien_value": 2975000,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Desperado NGN",
"symbol": "D2A3",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 6000000,
"interest": 30
},
{
"tokenId": "65c2497a0d174a0002e11571",
"balance": 1059.99,
"lien": 0.01,
"balance_value": 10599900,
"lien_value": 100,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "DAMO",
"symbol": "DAMO",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 10000000,
"interest": 10
}
]
}
Credit Loan
Get User Investments
Retrieves the investments that belong to a user.
POST
/
api
/
credit
/
user
/
portfolio
/
{userId}
Get User Investments
curl --request POST \
--url https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"investment_types": [
"<string>"
],
"investment_categories": [
"<string>"
],
"currencies": [
"<string>"
]
}
'import requests
url = "https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}"
payload = {
"investment_types": ["<string>"],
"investment_categories": ["<string>"],
"currencies": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
investment_types: ['<string>'],
investment_categories: ['<string>'],
currencies: ['<string>']
})
};
fetch('https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}', 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://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'investment_types' => [
'<string>'
],
'investment_categories' => [
'<string>'
],
'currencies' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}"
payload := strings.NewReader("{\n \"investment_types\": [\n \"<string>\"\n ],\n \"investment_categories\": [\n \"<string>\"\n ],\n \"currencies\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"investment_types\": [\n \"<string>\"\n ],\n \"investment_categories\": [\n \"<string>\"\n ],\n \"currencies\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ge-exchange-staging-1.herokuapp.com/v1/api/credit/user/portfolio/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"investment_types\": [\n \"<string>\"\n ],\n \"investment_categories\": [\n \"<string>\"\n ],\n \"currencies\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "User investments successfully returned",
"data": [
{
"tokenId": "683ef69f70457700022e091b",
"balance": 90.02,
"lien": 9.98,
"balance_value": 900200,
"lien_value": 99800,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Debt Note",
"name": "FCMB Debt Note",
"symbol": "FDNE",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1748956437/getequity/profiles/user/vkxslmd8wwwicawnhb8d.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 20000000,
"interest": 23
},
{
"tokenId": "682b2f367732900002613bfc",
"balance": 93.44,
"lien": 116.56,
"balance_value": 934400,
"lien_value": 1165600,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Ojaja Pan African LTD Series 2 Commercial Paper",
"symbol": "OPAS2",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1747660006/getequity/profiles/user/awdrtenbvofwworewikc.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 100000000,
"interest": 29
},
{
"tokenId": "6749cbc398b58800023c869d",
"balance": 90,
"lien": 10,
"balance_value": 900000,
"lien_value": 100000,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Debt Note",
"name": "CredPal Debt Capital",
"symbol": "CDCL",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1732889376/getequity/profiles/user/pneolukhhtxhozblth51.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 100000000,
"interest": 31
},
{
"tokenId": "66d8fc02dde72d0002907df3",
"balance": 1,
"lien": 0,
"balance_value": 10000,
"lien_value": 0,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Desperado 25",
"symbol": "D2A5",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10,
"exchange": 10000
},
"raise_amount": 2000000,
"interest": 31
},
{
"tokenId": "66d8ef4eaaec01000251c6d7",
"balance": 102.5,
"lien": 297.5,
"balance_value": 1025000,
"lien_value": 2975000,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Desperado NGN",
"symbol": "D2A3",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 6000000,
"interest": 30
},
{
"tokenId": "65c2497a0d174a0002e11571",
"balance": 1059.99,
"lien": 0.01,
"balance_value": 10599900,
"lien_value": 100,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "DAMO",
"symbol": "DAMO",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 10000000,
"interest": 10
}
]
}
The user to fetch investments for.
Array of investment types to filter for. Valid investment types include:
- Equity
- SAFE
- Debt
- Fixed Interest
Array of investment categories to filter for. Valid investment categories include:
“ETF” | “Bond” | “Commercial Paper” | “Debt Note” | “Real Estate” | “Private Business” | “Startup” | “Commodities” | “Fund” | “Art” | “Music” | “Movie” | “Charity”
Array of currencies to filter for. Supported currencies include:
- NGN
- USD
- KES
{
"status": "success",
"message": "User investments successfully returned",
"data": [
{
"tokenId": "683ef69f70457700022e091b",
"balance": 90.02,
"lien": 9.98,
"balance_value": 900200,
"lien_value": 99800,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Debt Note",
"name": "FCMB Debt Note",
"symbol": "FDNE",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1748956437/getequity/profiles/user/vkxslmd8wwwicawnhb8d.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 20000000,
"interest": 23
},
{
"tokenId": "682b2f367732900002613bfc",
"balance": 93.44,
"lien": 116.56,
"balance_value": 934400,
"lien_value": 1165600,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Ojaja Pan African LTD Series 2 Commercial Paper",
"symbol": "OPAS2",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1747660006/getequity/profiles/user/awdrtenbvofwworewikc.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 100000000,
"interest": 29
},
{
"tokenId": "6749cbc398b58800023c869d",
"balance": 90,
"lien": 10,
"balance_value": 900000,
"lien_value": 100000,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Debt Note",
"name": "CredPal Debt Capital",
"symbol": "CDCL",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1732889376/getequity/profiles/user/pneolukhhtxhozblth51.png",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 100000000,
"interest": 31
},
{
"tokenId": "66d8fc02dde72d0002907df3",
"balance": 1,
"lien": 0,
"balance_value": 10000,
"lien_value": 0,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Desperado 25",
"symbol": "D2A5",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10,
"exchange": 10000
},
"raise_amount": 2000000,
"interest": 31
},
{
"tokenId": "66d8ef4eaaec01000251c6d7",
"balance": 102.5,
"lien": 297.5,
"balance_value": 1025000,
"lien_value": 2975000,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "Desperado NGN",
"symbol": "D2A3",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 6000000,
"interest": 30
},
{
"tokenId": "65c2497a0d174a0002e11571",
"balance": 1059.99,
"lien": 0.01,
"balance_value": 10599900,
"lien_value": 100,
"currency": "NGN",
"investment_type": "Debt",
"investment_category": "Commercial Paper",
"name": "DAMO",
"symbol": "DAMO",
"image": "https://res.cloudinary.com/djalafcj9/image/upload/v1701207039/getequity/profiles/user/utqxfubmpmxtiktg68is.jpg",
"price": {
"buy": 10000,
"sell": 10000,
"exchange": 10000
},
"raise_amount": 10000000,
"interest": 10
}
]
}
Was this page helpful?
⌘I
