Get activities
Returns the list of available economic activities by person type. Query this endpoint to obtain the correct values for the activities field when submitting the onboarding.
GET
/v1/activitiesRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Not applicable: Path Parameters, Body.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Person type. Allowed values: PHYSICAL, JURIDICAL |
Response
2XX Success
| Field | Type | Description |
|---|---|---|
name | string | Value to use in the activities field in Submit onboarding |
Error Codes
| Status | Description |
|---|---|
401 | Unauthorized — invalid or missing token |
403 | Forbidden — unauthorized client |
422 | Validation Error — submitted parameters are invalid |
500 | Internal Server Error — internal server error |
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET "https://b2b.allaria.cloud/v1/activities?type=PHYSICAL" \
-H "Authorization: Bearer ACCESS_TOKEN"
const params = new URLSearchParams({
type: 'PHYSICAL'
});
const response = await fetch(`https://b2b.allaria.cloud/v1/activities?${params}`, {
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/activities',
headers={
'Authorization': 'Bearer ACCESS_TOKEN'
},
params={
'type': 'PHYSICAL'
}
)
data = response.json()
print(data)
const axios = require('axios');
const response = await axios.get(
'https://b2b.allaria.cloud/v1/activities',
{
headers: {
Authorization: 'Bearer ACCESS_TOKEN'
},
params: {
type: 'PHYSICAL'
}
}
);
console.log(response.data);
2XX Success
[
{
"name": "Employee"
},
{
"name": "Management and corporate governance"
}
]