Get terms and conditions status
Allows you to check whether an account has already accepted the savings plan terms and conditions.
note
Terms and conditions acceptance is only required for USD savings plans. ARS plans do not require this step.
GET
/v1/savings/terms-and-conditions/{account_number}Request
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
account_number | number | Yes | Account number to query. |
Not applicable: Query Parameters, Body.
Response
2XX Success
| Field | Type | Description |
|---|---|---|
accepted | boolean | Indicates whether the account has accepted the terms and conditions. |
Error Codes
| Status | Condition |
|---|---|
403 | The token does not have access to the specified account. |
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.cloud/v1/savings/terms-and-conditions/12345678 \
-H "Authorization: Bearer ACCESS_TOKEN"
const accountNumber = 12345678;
const response = await fetch(
`https://b2b.allaria.cloud/v1/savings/terms-and-conditions/${accountNumber}`,
{
method: 'GET',
headers: {
'Authorization': 'Bearer ACCESS_TOKEN'
}
}
);
const data = await response.json();
console.log(data);
import requests
account_number = 12345678
response = requests.get(
f'https://b2b.allaria.cloud/v1/savings/terms-and-conditions/{account_number}',
headers={
'Authorization': 'Bearer ACCESS_TOKEN'
}
)
data = response.json()
print(data)
const axios = require('axios');
const accountNumber = 12345678;
const response = await axios.get(
`https://b2b.allaria.cloud/v1/savings/terms-and-conditions/${accountNumber}`,
{
headers: {
Authorization: 'Bearer ACCESS_TOKEN'
}
}
);
console.log(response.data);
2XX Success
{
"accepted": true
}