Accept terms and conditions
Records the acceptance of the current terms and conditions for the specified account.
note
This step is required before creating a USD savings plan. ARS plans do not require terms and conditions acceptance.
POST
/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 accepting the terms and conditions. |
Not applicable: Query Parameters.
Body
This endpoint does not require a body.
Response
2XX Success
This endpoint does not return a body on success.
Error Codes
| Status | Condition |
|---|---|
403 | The token does not have access to the specified account. |
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X POST 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: 'POST',
headers: {
'Authorization': 'Bearer ACCESS_TOKEN'
}
}
);
import requests
account_number = 12345678
response = requests.post(
f'https://b2b.allaria.cloud/v1/savings/terms-and-conditions/{account_number}',
headers={
'Authorization': 'Bearer ACCESS_TOKEN'
}
)
const axios = require('axios');
const accountNumber = 12345678;
await axios.post(
`https://b2b.allaria.cloud/v1/savings/terms-and-conditions/${accountNumber}`,
null,
{
headers: {
Authorization: 'Bearer ACCESS_TOKEN'
}
}
);