List savings plans
Returns all savings plans available to subscribe to. Use this endpoint to discover the plan_id values needed when creating a subscription.
GET
/v1/savings/investment-plansRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Not applicable: Path Parameters, Query Parameters, Body.
Response
2XX Success
| Field | Type | Description |
|---|---|---|
plan_id | number | Plan identifier. Use this value as plan_id when creating a subscription. |
code | string | Plan code. |
name | string | Plan name. |
currency | string | Plan currency. Possible values: ARS, USD. |
year_variation | number | Projected annual variation of the plan. |
horizon | string | Investment horizon. Allowed values: SHORT_TERM, MEDIUM_TERM, LONG_TERM. |
risk | string | Plan risk level. Allowed values: LOW, MEDIUM, HIGH. |
minimum_investment | number | Minimum investment amount in the plan's currency. |
funds | array | List of funds that make up the plan. |
funds[].code | string | Fund code. |
funds[].name | string | Fund name. |
funds[].percentage | number | Fund participation percentage in the plan. |
Error Codes
| Status | Condition |
|---|---|
403 | The token does not have the required role to operate this endpoint. |
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.cloud/v1/savings/investment-plans \
-H "Authorization: Bearer ACCESS_TOKEN"
const response = await fetch(
'https://b2b.allaria.cloud/v1/savings/investment-plans',
{
method: 'GET',
headers: {
'Authorization': 'Bearer ACCESS_TOKEN'
}
}
);
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://b2b.allaria.cloud/v1/savings/investment-plans',
headers={
'Authorization': 'Bearer ACCESS_TOKEN'
}
)
data = response.json()
print(data)
const axios = require('axios');
const response = await axios.get(
'https://b2b.allaria.cloud/v1/savings/investment-plans',
{
headers: {
Authorization: 'Bearer ACCESS_TOKEN'
}
}
);
console.log(response.data);
2XX Success
[
{
"plan_id": 1,
"code": "SHORT_ARS",
"name": "Plan Corto Plazo en ARS",
"currency": "ARS",
"year_variation": 0.38,
"horizon": "SHORT_TERM",
"risk": "LOW",
"minimum_investment": 5000.00,
"funds": [
{
"code": "FCI_001",
"name": "Fondo Común de Inversión ARS",
"percentage": 100.00
}
]
},
{
"plan_id": 2,
"code": "MEDIUM_USD",
"name": "Plan Mediano Plazo en USD",
"currency": "USD",
"year_variation": 0.05,
"horizon": "MEDIUM_TERM",
"risk": "LOW",
"minimum_investment": 100.00,
"funds": [
{
"code": "FCI_USD_001",
"name": "Fondo Común de Inversión USD",
"percentage": 100.00
}
]
}
]