Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer your-token".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
ACL
Endpoints for managing roles and permissions.
Roles
Endpoints for managing roles.
List
requires authentication
List roles.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles?q=Role+name" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles"
);
const params = {
"q": "Role name",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "quidem",
"display_name": "Qui commodi incidunt iure odit.",
"permissions_count": null
},
{
"id": "fa253524-dd6a-3fdb-a788-0cabcf134db7",
"name": "modi",
"display_name": "Nostrum omnis autem et consequatur aut.",
"permissions_count": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Create a new role.
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"display_name\": \"Example Name\",
\"permissions\": [
\"bfc53181-d647-36b2-9080-f9c2b76006f4\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"display_name": "Example Name",
"permissions": [
"bfc53181-d647-36b2-9080-f9c2b76006f4"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a role.
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"display_name\": \"Example Name\",
\"permissions\": [
\"bfc53181-d647-36b2-9080-f9c2b76006f4\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"display_name": "Example Name",
"permissions": [
"bfc53181-d647-36b2-9080-f9c2b76006f4"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a role.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "quidem",
"display_name": "Qui commodi incidunt iure odit.",
"permissions_count": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Role Permissions
requires authentication
List permissions associated with a role.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1/permissions" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1/permissions"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": null,
"name": "quidem",
"display_name": "Qui commodi incidunt iure odit."
},
{
"id": null,
"name": "modi",
"display_name": "Nostrum omnis autem et consequatur aut."
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a role.
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/roles/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Permissions
Endpoints for managing permissions.
List
requires authentication
List permissions.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions?q=Permission+name" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions"
);
const params = {
"q": "Permission name",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": null,
"name": "quidem",
"display_name": "Qui commodi incidunt iure odit."
},
{
"id": null,
"name": "modi",
"display_name": "Nostrum omnis autem et consequatur aut."
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Create a new permission.
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"display_name\": \"Example Name\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"display_name": "Example Name"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Update a permission.
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"display_name\": \"Example Name\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"display_name": "Example Name"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show
requires authentication
Show a permission.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": null,
"name": "quidem",
"display_name": "Qui commodi incidunt iure odit."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
requires authentication
Delete a permission.
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/acl/permissions/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Accounts Payable Receivable
Endpoints for accounts payable receivable
List reminders for accounts payable receivable
requires authentication
List reminders for accounts payable receivable that are about to expire soon
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/reminders" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/reminders"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"type": "saída",
"payment_method": "cheque",
"amount": 6092.26,
"due_date": "2025-12-27T03:00:00.000000Z",
"status": null,
"payment_date": null,
"description": "Iure odit et et modi ipsum nostrum omnis autem et consequatur aut dolores.",
"is_recurring": null,
"recurrence_config": null,
"parent_id": null,
"recurrence_order": 1,
"total_recurrences": null,
"children_count": 0,
"remaining_recurrences": null,
"has_children": false,
"field1": "enim",
"field2": 62,
"field3": true,
"notes": "Veniam corporis dolorem mollitia.",
"created_at": null,
"updated_at": null
},
{
"id": "0733da06-3f67-3b0d-b923-684c336397e5",
"type": "saída",
"payment_method": "boleto",
"amount": 8204.46,
"due_date": "2025-12-27T03:00:00.000000Z",
"status": null,
"payment_date": null,
"description": "Fugit qui repudiandae laboriosam est alias tenetur ratione nemo voluptate.",
"is_recurring": null,
"recurrence_config": null,
"parent_id": null,
"recurrence_order": 1,
"total_recurrences": null,
"children_count": 0,
"remaining_recurrences": null,
"has_children": false,
"field1": "accusamus",
"field2": 84,
"field3": true,
"notes": "Modi rerum ex repellendus assumenda et tenetur.",
"created_at": null,
"updated_at": null
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark reminders as read
requires authentication
Mark reminders for accounts payable receivable as read
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/reminders/mark-as-read?items[]=architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/reminders/mark-as-read"
);
const params = {
"items[0]": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List accounts payable receivable
requires authentication
List all accounts payable receivable
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable?sortBy=created_at&sortDesc=1&q=Salary&type=entrada&customers[]=architecto&suppliers[]=architecto&statuses[]=vencido&payment_method=cheque&date_start=2023-01-01&date_end=2023-12-31&has_children=&is_recurring=" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Salary",
"type": "entrada",
"customers[0]": "architecto",
"suppliers[0]": "architecto",
"statuses[0]": "vencido",
"payment_method": "cheque",
"date_start": "2023-01-01",
"date_end": "2023-12-31",
"has_children": "0",
"is_recurring": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "a4855dc5-0acb-33c3-b921-f4291f719ca0",
"type": "saída",
"payment_method": "cheque",
"amount": 5750.1,
"due_date": "2026-01-12T03:00:00.000000Z",
"status": null,
"payment_date": null,
"description": "Sunt nihil accusantium harum mollitia modi deserunt aut.",
"is_recurring": null,
"recurrence_config": null,
"parent_id": null,
"recurrence_order": 1,
"total_recurrences": null,
"children_count": 0,
"remaining_recurrences": null,
"has_children": false,
"field1": "ab",
"field2": 49,
"field3": true,
"notes": "Iure odit et et modi ipsum nostrum omnis.",
"created_at": null,
"updated_at": null
},
{
"id": "59183559-65ff-3076-b8ca-d2d03d26a42a",
"type": "entrada",
"payment_method": "boleto",
"amount": 8676.17,
"due_date": "2025-12-29T03:00:00.000000Z",
"status": null,
"payment_date": null,
"description": "Quis adipisci molestias fugit deleniti distinctio eum doloremque id aut libero.",
"is_recurring": null,
"recurrence_config": null,
"parent_id": null,
"recurrence_order": 1,
"total_recurrences": null,
"children_count": 0,
"remaining_recurrences": null,
"has_children": false,
"field1": "aliquam",
"field2": 75,
"field3": true,
"notes": "Mollitia deleniti nemo odit quia officia.",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create accounts payable receivable
requires authentication
Create a new accounts payable receivable
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"Example Type\",
\"payment_method\": \"Example Payment method\",
\"due_date\": \"2024-01-01\",
\"amount\": 1,
\"description\": \"Example Description\",
\"supplier_id\": \"bfc53181-d647-36b2-9080-f9c2b76006f4\",
\"customer_id\": \"c71cb930-01f3-381c-9172-e1c70e63388f\",
\"status\": \"Example Status\",
\"custom_fields\": [
\"example1\",
\"example2\"
],
\"is_recurring\": false,
\"recurrence_config\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"frequency_type\": \"Example Recurrence config frequency type\",
\"frequency_value\": 1,
\"end_date\": \"2024-01-01\",
\"max_occurrences\": 1,
\"generation_days_ahead\": 1
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "Example Type",
"payment_method": "Example Payment method",
"due_date": "2024-01-01",
"amount": 1,
"description": "Example Description",
"supplier_id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"customer_id": "c71cb930-01f3-381c-9172-e1c70e63388f",
"status": "Example Status",
"custom_fields": [
"example1",
"example2"
],
"is_recurring": false,
"recurrence_config": {
"0": "example1",
"1": "example2",
"frequency_type": "Example Recurrence config frequency type",
"frequency_value": 1,
"end_date": "2024-01-01",
"max_occurrences": 1,
"generation_days_ahead": 1
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get accounts payable receivable
requires authentication
Get an accounts payable receivable
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"type": "saída",
"payment_method": "cheque",
"amount": 6092.26,
"due_date": "2025-12-27T03:00:00.000000Z",
"status": null,
"payment_date": null,
"description": "Iure odit et et modi ipsum nostrum omnis autem et consequatur aut dolores.",
"is_recurring": null,
"recurrence_config": null,
"parent_id": null,
"recurrence_order": 1,
"total_recurrences": null,
"children_count": 0,
"remaining_recurrences": null,
"has_children": false,
"field1": "enim",
"field2": 62,
"field3": true,
"notes": "Veniam corporis dolorem mollitia.",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update accounts payable receivable
requires authentication
Update an accounts payable receivable
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"Example Type\",
\"payment_method\": \"Example Payment method\",
\"due_date\": \"2024-01-01\",
\"amount\": 1,
\"description\": \"Example Description\",
\"supplier_id\": \"bfc53181-d647-36b2-9080-f9c2b76006f4\",
\"customer_id\": \"c71cb930-01f3-381c-9172-e1c70e63388f\",
\"status\": \"Example Status\",
\"payment_date\": \"2024-01-01\",
\"custom_fields\": [
\"example1\",
\"example2\"
],
\"is_recurring\": false,
\"recurrence_config\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"frequency_type\": \"Example Recurrence config frequency type\",
\"frequency_value\": 1,
\"end_date\": \"2024-01-01\",
\"max_occurrences\": 1,
\"generation_days_ahead\": 1
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "Example Type",
"payment_method": "Example Payment method",
"due_date": "2024-01-01",
"amount": 1,
"description": "Example Description",
"supplier_id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"customer_id": "c71cb930-01f3-381c-9172-e1c70e63388f",
"status": "Example Status",
"payment_date": "2024-01-01",
"custom_fields": [
"example1",
"example2"
],
"is_recurring": false,
"recurrence_config": {
"0": "example1",
"1": "example2",
"frequency_type": "Example Recurrence config frequency type",
"frequency_value": 1,
"end_date": "2024-01-01",
"max_occurrences": 1,
"generation_days_ahead": 1
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete accounts payable receivable
requires authentication
Delete an accounts payable receivable
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/accounts-payable-receivable/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Authentication
Endpoints for authentication
Login
Login with email and password
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\",
\"password\": \"password\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net",
"password": "password"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"token": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Me
requires authentication
Get the current user
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/user" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/user"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Miss Pearl Hauck",
"username": "pfritsch",
"email": "leo34@example.net",
"ability": [
{
"action": "read",
"subject": "Auth"
},
{
"action": "listar",
"subject": "padrão"
}
],
"roles": [],
"preferences": [],
"sectors": [],
"image": {
"id": null,
"url": null
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Profile
requires authentication
Update the current user profile
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/user" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"email\": \"user@example.com\",
\"username\": \"christian51\",
\"password\": \"password123\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"name\": \"Example Name\",
\"extension\": \"Example Image extension\",
\"size\": \"Example Image size\"
},
\"sectors\": [
\"3457a2ff-ae91-3fa6-b7ef-d2a3b0cb075b\"
],
\"roles\": [
\"3637ab3b-64aa-3e77-a6a7-c306cb6519a5\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/user"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"email": "user@example.com",
"username": "christian51",
"password": "password123",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"name": "Example Name",
"extension": "Example Image extension",
"size": "Example Image size"
},
"sectors": [
"3457a2ff-ae91-3fa6-b7ef-d2a3b0cb075b"
],
"roles": [
"3637ab3b-64aa-3e77-a6a7-c306cb6519a5"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout
requires authentication
Logout the current user
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/logout" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/logout"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get user preferences
requires authentication
Get all user preferences
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/preferences" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/preferences"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"theme": "dark",
"language": "pt-br",
"notifications": {
"email": true,
"sms": false
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Set user preference
requires authentication
Set or update a user preference
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/preferences" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"key\": \"b\",
\"value\": []
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/preferences"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"key": "b",
"value": []
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "Preference saved successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete user preference
requires authentication
Delete a specific user preference
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/preferences/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/auth/preferences/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Preference deleted successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Bank Accounts
Endpoints for bank accounts
Get bank account balance summary
requires authentication
Get the balance summary of all bank accounts
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/balance-summary" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/balance-summary"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"totalBalancePositive": "number",
"totalBalanceNegative": "number",
"totalLimit": "number",
"sumLimitAndBalancePositive": "number",
"accounts": {
"*": {
"id": "string",
"bank": "string",
"balance": "number",
"limit": "number"
}
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List bank accounts
requires authentication
List all bank accounts
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts?sortBy=created_at&sortDesc=1&q=name" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "name",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"agency": "0949",
"account": "2170043-2",
"type": "poupança",
"balance": 4254.04,
"holder_type": "pf",
"alias": "iure",
"limit": 1223.92,
"bank": {
"id": null,
"name": null,
"code": null
},
"created_at": null,
"updated_at": null
},
{
"id": "fa253524-dd6a-3fdb-a788-0cabcf134db7",
"agency": "1627",
"account": "5913505-2",
"type": "corrente",
"balance": 442.88,
"holder_type": "pf",
"alias": "et",
"limit": 4927.89,
"bank": {
"id": null,
"name": null,
"code": null
},
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create bank account
requires authentication
Create a new bank account
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"agency\": \"Example Agency\",
\"account\": \"2170043-2\",
\"bank_id\": \"fa253524-dd6a-3fdb-a788-0cabcf134db7\",
\"type\": \"Example Type\",
\"holder_type\": \"Example Holder type\",
\"alias\": \"Example Alias\",
\"balance\": 1,
\"limit\": 1
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"agency": "Example Agency",
"account": "2170043-2",
"bank_id": "fa253524-dd6a-3fdb-a788-0cabcf134db7",
"type": "Example Type",
"holder_type": "Example Holder type",
"alias": "Example Alias",
"balance": 1,
"limit": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update bank account
requires authentication
Update a bank account
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"agency\": \"Example Agency\",
\"account\": \"2170043-2\",
\"bank_id\": \"fa253524-dd6a-3fdb-a788-0cabcf134db7\",
\"type\": \"Example Type\",
\"holder_type\": \"Example Holder type\",
\"alias\": \"Example Alias\",
\"balance\": 1,
\"limit\": 1
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"agency": "Example Agency",
"account": "2170043-2",
"bank_id": "fa253524-dd6a-3fdb-a788-0cabcf134db7",
"type": "Example Type",
"holder_type": "Example Holder type",
"alias": "Example Alias",
"balance": 1,
"limit": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show bank account
requires authentication
Show a bank account
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"agency": "0949",
"account": "2170043-2",
"type": "poupança",
"balance": 4254.04,
"holder_type": "pf",
"alias": "iure",
"limit": 1223.92,
"bank": {
"id": null,
"name": null,
"code": null
},
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete bank account
requires authentication
Delete a bank account
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/bank-accounts/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Banks
Endpoints for banks
List banks
requires authentication
List all banks
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/banks?sortBy=created_at&sortDesc=1&q=Permission+name" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Permission name",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Cortês Comercial Ltda.",
"code": "881"
},
{
"id": "0a9446d3-4070-3757-8926-67a9d2adbc0e",
"name": "Urias e Caldeira",
"code": "744"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create bank
requires authentication
Create a new bank
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"code\": \"Example Code\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"code": "Example Code"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update bank
requires authentication
Update a bank
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"code\": \"Example Code\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"code": "Example Code"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show bank
requires authentication
Show a bank
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/banks/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Cortês Comercial Ltda.",
"code": "881"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete bank
requires authentication
Delete a bank
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/banks/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
CEP
Search CEP
requires authentication
Search for address information by CEP (Brazilian postal code)
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/cep/01001000" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cep/01001000"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, CEP found successfully):
{
"data": {
"cep": "01001000",
"street": "Praça da Sé",
"district": "Sé",
"city": "São Paulo",
"state": "SP",
"complement": "lado ímpar",
"ibge": "3550308",
"ddd": "11",
"siafi": "7107"
}
}
Example response (200, CEP not found):
{
"data": {
"cep": "99999999",
"street": null,
"district": null,
"city": null,
"state": null,
"complement": null,
"ibge": null,
"ddd": null,
"siafi": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cash Flow
Endpoints for cash flow
Get cash flow summary
requires authentication
Get cash flow summary
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/summary?sortBy=created_at&sortDesc=1&q=Salary&cash_session=uuid&type=entrada&description=Eius+et+animi+quos+velit+et.&categories[]=architecto&date_start=2021-01-01&date_end=2021-01-31&bank_accounts[]=architecto&customers[]=architecto&suppliers[]=architecto&works[]=architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/summary"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Salary",
"cash_session": "uuid",
"type": "entrada",
"description": "Eius et animi quos velit et.",
"categories[0]": "architecto",
"date_start": "2021-01-01",
"date_end": "2021-01-31",
"bank_accounts[0]": "architecto",
"customers[0]": "architecto",
"suppliers[0]": "architecto",
"works[0]": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"total_income": "number",
"total_expense": "number",
"total_fee": "number",
"total_balance": "number"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List cash flow
requires authentication
List all cash flow
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows?sortBy=created_at&sortDesc=1&q=Salary&cash_session=uuid&type=entrada&description=Eius+et+animi+quos+velit+et.&categories[]=architecto&date_start=2021-01-01&date_end=2021-01-31&bank_accounts[]=architecto&customers[]=architecto&suppliers[]=architecto&works[]=architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Salary",
"cash_session": "uuid",
"type": "entrada",
"description": "Eius et animi quos velit et.",
"categories[0]": "architecto",
"date_start": "2021-01-01",
"date_end": "2021-01-31",
"bank_accounts[0]": "architecto",
"customers[0]": "architecto",
"suppliers[0]": "architecto",
"works[0]": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "a4855dc5-0acb-33c3-b921-f4291f719ca0",
"type": "tarifa",
"amount": -8754.55,
"description": "Et fugiat sunt nihil accusantium.",
"transaction_date": "1990-07-03T03:00:00.000000Z",
"transaction_category": {
"id": null,
"name": null,
"type": null
},
"created_at": null,
"updated_at": null
},
{
"id": "cd1eb1ea-4697-3b9a-9dd0-988044a83af6",
"type": "entrada",
"amount": 6303.26,
"description": "Provident perspiciatis quo omnis nostrum aut adipisci quidem.",
"transaction_date": "2015-01-19T02:00:00.000000Z",
"transaction_category": {
"id": null,
"name": null,
"type": null
},
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create cash flow
requires authentication
Create a new cash flow
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"Example Type\",
\"cash_session_id\": \"bfc53181-d647-36b2-9080-f9c2b76006f4\",
\"transaction_category_id\": \"fa253524-dd6a-3fdb-a788-0cabcf134db7\",
\"bank_account_id\": \"45d1e1f4-e38d-3971-92c7-6d933b3b67fa\",
\"customer_id\": \"8c352249-2535-3e45-8de4-d6620458a778\",
\"supplier_id\": \"61733391-0acb-3d07-80fa-6a559e639b13\",
\"work_id\": \"338aa13c-ee9b-3c59-9dad-eeca56f85ba2\",
\"amount\": 1,
\"description\": \"Example Description\",
\"transaction_date\": \"2024-01-01\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "Example Type",
"cash_session_id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"transaction_category_id": "fa253524-dd6a-3fdb-a788-0cabcf134db7",
"bank_account_id": "45d1e1f4-e38d-3971-92c7-6d933b3b67fa",
"customer_id": "8c352249-2535-3e45-8de4-d6620458a778",
"supplier_id": "61733391-0acb-3d07-80fa-6a559e639b13",
"work_id": "338aa13c-ee9b-3c59-9dad-eeca56f85ba2",
"amount": 1,
"description": "Example Description",
"transaction_date": "2024-01-01"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show cash flow
requires authentication
Show a cash flow
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"type": "transferência",
"amount": -6620.31,
"description": "Commodi incidunt iure odit.",
"transaction_date": "1977-08-15T03:00:00.000000Z",
"transaction_category": {
"id": null,
"name": null,
"type": null
},
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update cash flow
requires authentication
Update a cash flow
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"Example Type\",
\"cash_session_id\": \"bfc53181-d647-36b2-9080-f9c2b76006f4\",
\"transaction_category_id\": \"fa253524-dd6a-3fdb-a788-0cabcf134db7\",
\"bank_account_id\": \"45d1e1f4-e38d-3971-92c7-6d933b3b67fa\",
\"customer_id\": \"8c352249-2535-3e45-8de4-d6620458a778\",
\"supplier_id\": \"61733391-0acb-3d07-80fa-6a559e639b13\",
\"work_id\": \"338aa13c-ee9b-3c59-9dad-eeca56f85ba2\",
\"amount\": 1,
\"description\": \"Example Description\",
\"transaction_date\": \"2024-01-01\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "Example Type",
"cash_session_id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"transaction_category_id": "fa253524-dd6a-3fdb-a788-0cabcf134db7",
"bank_account_id": "45d1e1f4-e38d-3971-92c7-6d933b3b67fa",
"customer_id": "8c352249-2535-3e45-8de4-d6620458a778",
"supplier_id": "61733391-0acb-3d07-80fa-6a559e639b13",
"work_id": "338aa13c-ee9b-3c59-9dad-eeca56f85ba2",
"amount": 1,
"description": "Example Description",
"transaction_date": "2024-01-01"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete cash flow
requires authentication
Delete a cash flow
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-flows/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cash Session
Endpoints for cash session
List cash session
requires authentication
List all cash session
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "1df968e6-90db-3611-81f9-c7f45b58e0a1",
"opened_by": null,
"opened_at": "2016-05-12T22:44:37.000000Z",
"closed_by": null,
"closed_at": "1983-03-07T00:25:49.000000Z",
"opening_balance": 8121.66,
"closing_balance": 4402.35,
"total_income": 0,
"total_expense": 0,
"total_balance": 0,
"status": "Fechado",
"created_at": "2012-01-06T14:50:57.000000Z",
"updated_at": "1972-09-05T13:35:03.000000Z"
},
{
"id": "7b423e64-d218-321d-86b5-809e403dd4f2",
"opened_by": null,
"opened_at": "2019-10-27T12:33:09.000000Z",
"closed_by": null,
"closed_at": "2014-01-22T04:01:47.000000Z",
"opening_balance": 1968.75,
"closing_balance": 4231.98,
"total_income": 0,
"total_expense": 0,
"total_balance": 0,
"status": "Fechado",
"created_at": "1995-02-10T23:01:27.000000Z",
"updated_at": "2020-04-11T00:35:48.000000Z"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Open cash session
requires authentication
Open a new cash session
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/open" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/open"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"opened_by": null,
"opened_at": "2023-04-14T10:16:46.000000Z",
"closed_by": null,
"closed_at": "2020-05-23T06:21:42.000000Z",
"opening_balance": 3669.26,
"closing_balance": 6620.31,
"total_income": 0,
"total_expense": 0,
"total_balance": 0,
"status": "Fechado",
"created_at": "1983-05-17T03:07:42.000000Z",
"updated_at": "1990-06-04T05:06:06.000000Z"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Close cash session
requires authentication
Close a cash session
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/close/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/close/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show cash session
requires authentication
Show a cash session
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"opened_by": null,
"opened_at": "2023-04-14T10:16:46.000000Z",
"closed_by": null,
"closed_at": "2020-05-23T06:21:42.000000Z",
"opening_balance": 3669.26,
"closing_balance": 6620.31,
"total_income": 0,
"total_expense": 0,
"total_balance": 0,
"status": "Fechado",
"created_at": "1983-05-17T03:07:42.000000Z",
"updated_at": "1990-06-04T05:06:06.000000Z"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete cash session
requires authentication
Delete a cash session
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/cash-sessions/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Customers
Endpoints for customers
List customers
requires authentication
List all customers
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/customers?sortBy=created_at&sortDesc=1&q=Customer+name" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Customer name",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"email": "yohanna44@example.org",
"phone": "(94) 94866-9606",
"document": "790.915.066-01",
"type": "pj",
"responsible": "Sra. Katherine de Arruda",
"image": {
"id": null,
"url": null
},
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"documents_count": 0
},
{
"id": "c71cb930-01f3-381c-9172-e1c70e63388f",
"name": "Liz Sueli Pacheco Neto",
"email": "jrosa@example.net",
"phone": "(49) 3996-5127",
"document": "869.737.788-95",
"type": "pf",
"responsible": "Sr. Rodrigo Gil",
"image": {
"id": null,
"url": null
},
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"documents_count": 0
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create customer
requires authentication
Create a new customer
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"email\": \"user@example.com\",
\"phone\": \"(11) 99999-9999\",
\"document\": \"Example Document\",
\"type\": \"Example Type\",
\"responsible\": \"Example Responsible\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"name\": \"Example Name\",
\"extension\": \"Example Image extension\",
\"size\": \"Example Image size\"
},
\"address\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"street\": \"Example Address street\",
\"number\": \"Example Address number\",
\"complement\": \"Example Address complement\",
\"neighborhood\": \"Example Address neighborhood\",
\"city\": \"Example Address city\",
\"state\": \"Example Address state\",
\"zip_code\": \"Example Address zip code\"
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"email": "user@example.com",
"phone": "(11) 99999-9999",
"document": "Example Document",
"type": "Example Type",
"responsible": "Example Responsible",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"name": "Example Name",
"extension": "Example Image extension",
"size": "Example Image size"
},
"address": {
"0": "example1",
"1": "example2",
"street": "Example Address street",
"number": "Example Address number",
"complement": "Example Address complement",
"neighborhood": "Example Address neighborhood",
"city": "Example Address city",
"state": "Example Address state",
"zip_code": "Example Address zip code"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get customer
requires authentication
Get a customer
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/customers/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"email": "yohanna44@example.org",
"phone": "(94) 94866-9606",
"document": "790.915.066-01",
"type": "pj",
"responsible": "Sra. Katherine de Arruda",
"image": {
"id": null,
"url": null
},
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"documents_count": 0
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update customer
requires authentication
Update a customer
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"email\": \"user@example.com\",
\"phone\": \"(11) 99999-9999\",
\"document\": \"Example Document\",
\"type\": \"Example Type\",
\"responsible\": \"Example Responsible\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"name\": \"Example Name\",
\"extension\": \"Example Image extension\",
\"size\": \"Example Image size\"
},
\"address\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"street\": \"Example Address street\",
\"number\": \"Example Address number\",
\"complement\": \"Example Address complement\",
\"neighborhood\": \"Example Address neighborhood\",
\"city\": \"Example Address city\",
\"state\": \"Example Address state\",
\"zip_code\": \"Example Address zip code\"
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"email": "user@example.com",
"phone": "(11) 99999-9999",
"document": "Example Document",
"type": "Example Type",
"responsible": "Example Responsible",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"name": "Example Name",
"extension": "Example Image extension",
"size": "Example Image size"
},
"address": {
"0": "example1",
"1": "example2",
"street": "Example Address street",
"number": "Example Address number",
"complement": "Example Address complement",
"neighborhood": "Example Address neighborhood",
"city": "Example Address city",
"state": "Example Address state",
"zip_code": "Example Address zip code"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete customer
requires authentication
Delete a customer
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/customers/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Document Categories
Endpoints for document categories
List document categories
requires authentication
List all document categories
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories?q=Contracts&module=employee" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories"
);
const params = {
"q": "Contracts",
"module": "employee",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"description": "Et et modi ipsum nostrum. Autem et consequatur aut dolores enim non facere tempora.",
"module": "document"
},
{
"id": "690f4e21-70e0-3516-8ade-d6c679dacb9e",
"name": "Juliano Cléber Dias Filho",
"description": "Fugit qui repudiandae laboriosam est alias. Ratione nemo voluptate accusamus ut et recusandae modi rerum. Repellendus assumenda et tenetur ab reiciendis.",
"module": "document"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show document category
requires authentication
Show a document category
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"description": "Et et modi ipsum nostrum. Autem et consequatur aut dolores enim non facere tempora.",
"module": "document"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create document category
requires authentication
Create a new document category
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"description\": \"Example Description\",
\"module\": \"Example Module\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"description": "Example Description",
"module": "Example Module"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update document category
requires authentication
Update a document category
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"description\": \"Example Description\",
\"module\": \"Example Module\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"description": "Example Description",
"module": "Example Module"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete document category
requires authentication
Delete a document category
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/document-categories/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Documents
Endpoints for documents
List documents
requires authentication
List all documents
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/documents?sortBy=created_at&sortDesc=1&q=Document+name&categories[]=architecto&documentable_type=architecto&customers[]=architecto&suppliers[]=architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/documents"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Document name",
"categories[0]": "architecto",
"documentable_type": "architecto",
"customers[0]": "architecto",
"suppliers[0]": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "a4855dc5-0acb-33c3-b921-f4291f719ca0",
"name": "Sr. Emerson Torres Ferminiano",
"file": {
"id": null,
"url": null,
"extension": null
},
"created_at": null,
"updated_at": null
},
{
"id": "5707ca55-f609-3528-be8b-1baeaee1567e",
"name": "Srta. Rayane Galindo",
"file": {
"id": null,
"url": null,
"extension": null
},
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create document
requires authentication
Create a new document
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/documents" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"category_id\": \"bfc53181-d647-36b2-9080-f9c2b76006f4\",
\"file\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example File path\",
\"name\": \"Example Name\",
\"extension\": \"Example File extension\",
\"size\": \"Example File size\"
},
\"documentable_type\": \"Example Documentable type\",
\"documentable_id\": \"Example Documentable id\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/documents"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"category_id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"file": {
"0": "example1",
"1": "example2",
"path": "Example File path",
"name": "Example Name",
"extension": "Example File extension",
"size": "Example File size"
},
"documentable_type": "Example Documentable type",
"documentable_id": "Example Documentable id"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update document
requires authentication
Update a document
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/documents/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"category_id\": \"bfc53181-d647-36b2-9080-f9c2b76006f4\",
\"file\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example File path\",
\"name\": \"Example Name\",
\"extension\": \"Example File extension\",
\"size\": \"Example File size\"
},
\"documentable_type\": \"Example Documentable type\",
\"documentable_id\": \"Example Documentable id\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/documents/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"category_id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"file": {
"0": "example1",
"1": "example2",
"path": "Example File path",
"name": "Example Name",
"extension": "Example File extension",
"size": "Example File size"
},
"documentable_type": "Example Documentable type",
"documentable_id": "Example Documentable id"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete document
requires authentication
Delete a document
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/documents/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/documents/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Employee Roles
Endpoints for employee roles
List employee roles
requires authentication
List all employee roles
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles?sortBy=created_at&sortDesc=1&q=Manager" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Manager",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "4b10163d-9774-463b-830c-69db5f4c9961",
"name": "qui",
"description": "Autem similique alias unde tempora dolor.",
"created_at": null,
"updated_at": null
},
{
"id": "fc6edff4-feff-491d-9e2e-d996da99e33b",
"name": "vitae",
"description": "Tempore perferendis soluta et recusandae ut aliquam repellat.",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show employee role
requires authentication
Show an employee role
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "d45457c8-f6da-4b26-82b9-febe8201591c",
"name": "aut",
"description": "Nostrum qui commodi incidunt iure.",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create employee role
requires authentication
Create a new employee role
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update employee role
requires authentication
Update an employee role
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete employee role
requires authentication
Delete an employee role
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employee-roles/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Employees
Endpoints for employees
List employees
requires authentication
List all employees
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/employees?sortBy=created_at&sortDesc=1&q=Jo%C3%A3o+Silva" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "JoΓ£o Silva",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "8c49a5c4-3b48-47af-9e97-19ade813731b",
"name": "Rodrigo Leon",
"cpf": "421.700.432-81",
"rg": "590214902",
"ctps": null,
"phone": null,
"birthdate": "1982-07-07",
"email": "valdez.jacomo@example.org",
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"employee_role": {
"id": null,
"name": null
},
"created_at": null,
"updated_at": null
},
{
"id": "d99c1afa-16b2-4e9e-81ae-773e5bc35b27",
"name": "Elaine Kamila Serna Neto",
"cpf": "323.759.947-24",
"rg": "504415490",
"ctps": "691282316",
"phone": "(93) 3757-0170",
"birthdate": null,
"email": null,
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"employee_role": {
"id": null,
"name": null
},
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show employee
requires authentication
Show an employee
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/employees/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "7da16195-eb59-4320-8cb3-73ae155d7123",
"name": "Rodrigo Leon",
"cpf": "421.700.432-81",
"rg": "590214902",
"ctps": null,
"phone": null,
"birthdate": "1982-07-07",
"email": "valdez.jacomo@example.org",
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"employee_role": {
"id": null,
"name": null
},
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create employee
requires authentication
Create a new employee
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"cpf\": \"ngzmiyvdljnikh\",
\"rg\": \"waykcmyuwpwlvqwr\",
\"ctps\": \"sitcpscqldzsnrwt\",
\"phone\": \"ujwvlxjklqppwqbe\",
\"birthdate\": \"2025-12-15T21:01:53\",
\"email\": \"kutch.cynthia@example.org\",
\"employee_role_id\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"cpf": "ngzmiyvdljnikh",
"rg": "waykcmyuwpwlvqwr",
"ctps": "sitcpscqldzsnrwt",
"phone": "ujwvlxjklqppwqbe",
"birthdate": "2025-12-15T21:01:53",
"email": "kutch.cynthia@example.org",
"employee_role_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update employee
requires authentication
Update an employee
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"cpf\": \"ngzmiyvdljnikh\",
\"rg\": \"waykcmyuwpwlvqwr\",
\"ctps\": \"sitcpscqldzsnrwt\",
\"phone\": \"ujwvlxjklqppwqbe\",
\"birthdate\": \"2025-12-15T21:01:53\",
\"email\": \"kutch.cynthia@example.org\",
\"employee_role_id\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"cpf": "ngzmiyvdljnikh",
"rg": "waykcmyuwpwlvqwr",
"ctps": "sitcpscqldzsnrwt",
"phone": "ujwvlxjklqppwqbe",
"birthdate": "2025-12-15T21:01:53",
"email": "kutch.cynthia@example.org",
"employee_role_id": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete employee
requires authentication
Delete an employee
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/employees/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Endpoints
GET api/reports/cash-flow
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/reports/cash-flow" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/reports/cash-flow"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/reports/accounts-payable-receivable
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/reports/accounts-payable-receivable" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/reports/accounts-payable-receivable"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/up
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/up" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/up"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "API is running"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Files
Endpoints for files
Delete file
requires authentication
Delete a file
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get file info
requires authentication
Get file information
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/files/6ff8f7f6-1eb3-3525-be4a-3932c805afed/info" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/6ff8f7f6-1eb3-3525-be4a-3932c805afed/info"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"uuid": "string",
"name": "string",
"size": "integer",
"type": "string",
"extension": "string",
"path": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generate download URL
requires authentication
Generate a signed URL for downloading a file
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/files/6ff8f7f6-1eb3-3525-be4a-3932c805afed/download" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/6ff8f7f6-1eb3-3525-be4a-3932c805afed/download"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"url": "string",
"filename": "string",
"size": "integer",
"type": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generate upload URL
requires authentication
Generate a signed URL for uploading a file
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/generate-upload-url" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"path\": \"Example Path\",
\"mimetype\": \"Example Mimetype\",
\"public\": false
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/generate-upload-url"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"path": "Example Path",
"mimetype": "Example Mimetype",
"public": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"url": "string",
"path": "string",
"headers": "array"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generate bulk upload URL
requires authentication
Generate signed URLs for uploading multiple files
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/generate-bulk-upload-url" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"files\": [
{
\"path\": \"Example Files * path\",
\"mimetype\": \"Example Files * mimetype\",
\"public\": false
},
null
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/files/generate-bulk-upload-url"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"files": [
{
"path": "Example Files * path",
"mimetype": "Example Files * mimetype",
"public": false
},
null
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
[
{
"url": "string",
"path": "string",
"headers": "array"
}
]
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Import
Endpoints for managing NFe imports and product processing.
NFe Imports
Import and process Brazilian electronic invoice (NFe) files.
Create NFe Import
requires authentication
Upload and process a Brazilian NFe (Nota Fiscal EletrΓ΄nica) XML file. The file should be uploaded to S3 first, then this endpoint processes it asynchronously.
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/nfe/products" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"s3_file_path\": \"imports\\/nfe_12345.xml\",
\"original_filename\": \"nota_fiscal_001.xml\",
\"import_type\": \"nfe\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/nfe/products"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"s3_file_path": "imports\/nfe_12345.xml",
"original_filename": "nota_fiscal_001.xml",
"import_type": "nfe"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201, Import created successfully):
{
"import_id": "9d2f8e4a-1b3c-4d5e-6f7a-8b9c0d1e2f3a",
"status": "pending",
"channel": "import-progress.9d2f8e4a-1b3c-4d5e-6f7a-8b9c0d1e2f3a"
}
Example response (404, File not found in S3):
{
"error": "Arquivo não encontrado no S3"
}
Example response (422, Invalid XML or not a valid NFe):
{
"error": "Arquivo XML inválido ou não é uma NFe"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List User Imports
requires authentication
List all NFe imports for the authenticated user with filtering and pagination options.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/imports?sortBy=created_at&sortDesc=1&status=completed&import_type=nfe&per_page=15" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/imports"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"status": "completed",
"import_type": "nfe",
"per_page": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Imports retrieved successfully):
{
"data": [
{
"id": "9d2f8e4a-1b3c-4d5e-6f7a-8b9c0d1e2f3a",
"status": "completed",
"import_type": "nfe",
"original_filename": "nota_fiscal_001.xml",
"nfe_number": "123456",
"nfe_date": "2023-12-01",
"total_products": 15,
"processed_products": 15,
"progress_percentage": 100,
"imported_at": "2023-12-01T10:30:00.000Z",
"supplier": {
"name": "Fornecedor Ltda",
"document": "12345678000199"
}
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Import Details
requires authentication
Retrieve detailed information about a specific NFe import, including progress and supplier data.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Import details retrieved successfully):
{
"import_id": "9d2f8e4a-1b3c-4d5e-6f7a-8b9c0d1e2f3a",
"status": "completed",
"import_type": "nfe",
"original_filename": "nota_fiscal_001.xml",
"nfe_number": "123456",
"nfe_date": "2023-12-01",
"total_products": 15,
"processed_products": 10,
"progress_percentage": 66.67,
"imported_by": "João Silva",
"imported_at": "2023-12-01T10:30:00.000Z",
"supplier": {
"id": "supplier-uuid",
"name": "Fornecedor Ltda",
"document": "12345678000199"
},
"channel": "import-progress.9d2f8e4a-1b3c-4d5e-6f7a-8b9c0d1e2f3a"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Import Products
requires authentication
List all products from a specific NFe import with filtering and pagination options.
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/architecto/products?sortBy=created_at&sortDesc=1&status=pending&q=Produto+ABC&per_page=15" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/architecto/products"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"status": "pending",
"q": "Produto ABC",
"per_page": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Products retrieved successfully):
{
"import": {
"id": "9d2f8e4a-1b3c-4d5e-6f7a-8b9c0d1e2f3a",
"total_products": 15,
"processed_products": 10,
"progress_percentage": 66.67
},
"products": {
"data": [
{
"id": "product-uuid",
"supplier_product_code": "ABC123",
"ean_code": "7891234567890",
"name": "Nome do Produto",
"unit": "UN",
"quantity": 10,
"unit_price": 15.5,
"total_price": 155,
"is_processed": false,
"system_product": null,
"linked_at": null,
"linked_by": null
}
]
},
"pagination": {
"current_page": 1,
"per_page": 15,
"total": 15,
"last_page": 1
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Link Products
requires authentication
Inicia, de forma assΓncrona, a vinculaΓ§Γ£o de produtos do fornecedor a produtos do sistema ou criaΓ§Γ£o de novos itens no estoque. Retorna 202 com o canal para acompanhar o progresso.
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/architecto/products/link" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mappings\": [
\"architecto\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/imports/architecto/products/link"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mappings": [
"architecto"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (202, Linking accepted and started asynchronously):
{
"message": "Vinculação de produtos iniciada com sucesso",
"total_mappings": 2,
"channel": "imports.{import-uuid}"
}
Example response (422, Error linking products):
{
"error": "Erro ao vincular produtos: Product not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notifications
Endpoints for user notifications
List notifications
requires authentication
List user notifications
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications?sortBy=created_at&sortDesc=1&per_page=1&module=CashFlow&type=success&priority=10&unread_only=1&read_status=unread&date_start=2024-01-01&date_end=2024-12-31&q=erro+faturamento" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"per_page": "1",
"module": "CashFlow",
"type": "success",
"priority": "10",
"unread_only": "1",
"read_status": "unread",
"date_start": "2024-01-01",
"date_end": "2024-12-31",
"q": "erro faturamento",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark notifications as read
requires authentication
Mark one or many notifications as read
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/mark-as-read" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"notifications\": [
\"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/mark-as-read"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notifications": [
"6ff8f7f6-1eb3-3525-be4a-3932c805afed"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark notifications as unread
requires authentication
Mark one or many notifications as unread
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/mark-as-unread" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"notifications\": [
\"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/mark-as-unread"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notifications": [
"6ff8f7f6-1eb3-3525-be4a-3932c805afed"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark all notifications as read
requires authentication
Mark all user notifications as read
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/mark-all-as-read" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/mark-all-as-read"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unread notifications count
requires authentication
Count of unread notifications for the user
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/unread-count" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/notifications/unread-count"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Permission Groups
Endpoints for permission groups
List permission groups
requires authentication
List all permission groups
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "nostrum-qui",
"display_name": "commodi incidunt iure",
"created_at": null,
"updated_at": null
},
{
"id": "d9be5934-80e7-34a9-a136-841b5f0aea83",
"name": "modi-ipsum",
"display_name": "nostrum omnis autem",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create permission group
requires authentication
Create a new permission group
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"display_name\": \"Example Name\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"display_name": "Example Name"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update permission group
requires authentication
Update a permission group
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"display_name\": \"Example Name\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"display_name": "Example Name"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show permission group
requires authentication
Show a permission group
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "nostrum-qui",
"display_name": "commodi incidunt iure",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete permission group
requires authentication
Delete a permission group
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/permission-groups/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Product Brands
Endpoints for product brands
List product brands
requires authentication
List all product brands
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands?q=Structure" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands"
);
const params = {
"q": "Structure",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"created_at": null,
"updated_at": null
},
{
"id": "c68e0767-6220-31fb-a489-61093ff79529",
"name": "Valentin Ramos Zamana",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show product brand
requires authentication
Show a product brand
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create product brand
requires authentication
Create a new product brand
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update product brand
requires authentication
Update a product brand
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete product brand
requires authentication
Delete a product brand
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-brands/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Product Families
Endpoints for product families
List product families
requires authentication
List all product families
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families?q=Structure" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families"
);
const params = {
"q": "Structure",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"created_at": null,
"updated_at": null
},
{
"id": "c68e0767-6220-31fb-a489-61093ff79529",
"name": "Valentin Ramos Zamana",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show product family
requires authentication
Show a product family
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create product family
requires authentication
Create a new product family
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update product family
requires authentication
Update a product family
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete product family
requires authentication
Delete a product family
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/product-families/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Products
Endpoints for products
List products
requires authentication
List all products
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/products?sortBy=created_at&sortDesc=1&q=Brick" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Brick",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "f5bc6b08-5574-34d0-abd4-d7e3a5d40672",
"name": "Sr. William Meireles Sobrinho",
"code": "PRD-585030",
"stock": 9,
"product_family": {
"id": "a09a3e57-d3a2-44e9-9e23-c5db48c9f7c8",
"name": "Dr. Cléber Reis Molina Neto"
},
"product_brand": {
"id": "a09a3e57-dc4c-4f9a-9e4f-e481e4cba4e5",
"name": "Sra. Stella Pontes Jr."
},
"unit": {
"id": "a09a3e57-e0ee-4a48-9b20-917ea3f8369a",
"name": "Sra. Melina Nádia Mendonça",
"abbreviation": "Sra. Ariana Bezerra Jr."
},
"image": {
"id": null,
"url": null
},
"description": "Qui dolorum placeat quia dolores ratione ex soluta veniam.",
"created_at": null,
"updated_at": null
},
{
"id": "f96c070f-9984-3204-bc34-7bdb8d29514c",
"name": "Srta. Débora Maia Carvalho",
"code": "PRD-396876",
"stock": 994,
"product_family": {
"id": "a09a3e57-e782-4ef1-85d8-eae6f67a1922",
"name": "Eduardo Felipe Rocha"
},
"product_brand": {
"id": "a09a3e57-eb41-4347-8ccc-766249b290d0",
"name": "Sra. Rebeca Marin"
},
"unit": {
"id": "a09a3e57-ee77-4c5b-8a2f-dd1a32a1a710",
"name": "Melina Velasques",
"abbreviation": "Luis Rosa Sobrinho"
},
"image": {
"id": null,
"url": null
},
"description": "Vel beatae aut pariatur eos est facere deserunt.",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show product
requires authentication
Show a product
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/products/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"code": "PRD-265058",
"stock": 7365,
"product_family": {
"id": "a09a3e58-0018-4c7d-ad96-f90f81974a24",
"name": "Elaine Kamila Serna Neto"
},
"product_brand": {
"id": "a09a3e58-03ba-4f52-bd17-b3cfbc438371",
"name": "Liz Sueli Pacheco Neto"
},
"unit": {
"id": "a09a3e58-0702-4759-93d5-15f30b27fd51",
"name": "Mia Letícia Velasques Jr.",
"abbreviation": "Srta. Talita Zambrano"
},
"image": {
"id": null,
"url": null
},
"description": "Odit et et modi.",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create product
requires authentication
Create a new product
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"product_family_id\": \"architecto\",
\"product_brand_id\": \"architecto\",
\"unit_id\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\",
\"stock\": 60
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"product_family_id": "architecto",
"product_brand_id": "architecto",
"unit_id": "architecto",
"description": "Eius et animi quos velit et.",
"stock": 60
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update product
requires authentication
Update a product
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"product_family_id\": \"architecto\",
\"product_brand_id\": \"architecto\",
\"unit_id\": \"architecto\",
\"stock\": 39,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"product_family_id": "architecto",
"product_brand_id": "architecto",
"unit_id": "architecto",
"stock": 39,
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete product
requires authentication
Delete a product
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/products/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sectors
Endpoints for sectors
List sectors
requires authentication
List all sectors
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors?sortBy=created_at&sortDesc=1&q=Tecnologia" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Tecnologia",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "quidem nostrum",
"slug": null,
"description": null,
"abbreviation": "qwr",
"created_at": null,
"updated_at": null
},
{
"id": "fa253524-dd6a-3fdb-a788-0cabcf134db7",
"name": "modi ipsum",
"slug": null,
"description": null,
"abbreviation": null,
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create sector
requires authentication
Create a new sector
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"slug\": \"Example Slug\",
\"description\": \"Example Description\",
\"abbreviation\": \"Example Abbreviation\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"url\": \"https:\\/\\/example.com\",
\"name\": \"Example Name\",
\"size\": \"Example Image size\",
\"extension\": \"Example Image extension\"
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"slug": "Example Slug",
"description": "Example Description",
"abbreviation": "Example Abbreviation",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"url": "https:\/\/example.com",
"name": "Example Name",
"size": "Example Image size",
"extension": "Example Image extension"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get sector
requires authentication
Get a sector
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "quidem nostrum",
"slug": null,
"description": null,
"abbreviation": "qwr",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update sector
requires authentication
Update a sector
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"slug\": \"Example Slug\",
\"description\": \"Example Description\",
\"abbreviation\": \"Example Abbreviation\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"url\": \"https:\\/\\/example.com\",
\"name\": \"Example Name\",
\"size\": \"Example Image size\",
\"extension\": \"Example Image extension\"
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"slug": "Example Slug",
"description": "Example Description",
"abbreviation": "Example Abbreviation",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"url": "https:\/\/example.com",
"name": "Example Name",
"size": "Example Image size",
"extension": "Example Image extension"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete sector
requires authentication
Delete a sector
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List sector users
requires authentication
List all users assigned to a sector
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Miss Pearl Hauck",
"username": "mitchell.matilda",
"email": "christian51@example.com",
"image": {
"id": null,
"url": null
},
"sectors": [],
"roles": []
},
{
"id": "502eabbf-311f-3542-a47b-b2a14f5de904",
"name": "Janick Schultz DDS",
"username": "micaela88",
"email": "kconsidine@example.net",
"image": {
"id": null,
"url": null
},
"sectors": [],
"roles": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Attach users to sector
requires authentication
Attach users to a sector without removing existing ones. Expects an array of user UUIDs in the "users" field.
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users/attach" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"users\": [
\"f2726f3d-9044-3663-bede-2a0f37053879\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users/attach"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"users": [
"f2726f3d-9044-3663-bede-2a0f37053879"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "Users attached successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detach users from sector
requires authentication
Remove specific users from a sector. Expects an array of user UUIDs in the "users" field.
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users/detach" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"users\": [
\"9e13baad-9e20-392f-94ab-6047f7ff6a83\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users/detach"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"users": [
"9e13baad-9e20-392f-94ab-6047f7ff6a83"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "Users detached successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sync sector users
requires authentication
Replace all sector users with the provided list. Expects an array of user UUIDs in the "users" field.
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users/sync" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"users\": [
\"ea57fb8f-9953-354e-9184-d01c4ec16bb0\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/sectors/019556e7-2e9f-777c-a177-30bbf0646c32/users/sync"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"users": [
"ea57fb8f-9953-354e-9184-d01c4ec16bb0"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "Users synchronized successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Status Modules
Endpoints for modules that have status
List status modules
requires authentication
List all modules that have status functionality
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/status-modules" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/status-modules"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "aut adipisci",
"slug": "nostrum-qui-commodi-incidunt-iure"
},
{
"name": "omnis autem",
"slug": "consequatur-aut-dolores-enim-non-facere-tempora"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Statuses
Endpoints for statuses
List statuses
requires authentication
List all statuses
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses?sortBy=created_at&sortDesc=1&q=Em+andamento" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Em andamento",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"description": "Sr. George de Souza Delvalle",
"abbreviation": "iure",
"color": "#aa8e3f",
"text_color": "#559641",
"created_at": null,
"updated_at": null
},
{
"id": "665a39c0-48af-31f1-a546-aa4f41372488",
"description": "Sra. Jéssica Sepúlveda Jr.",
"abbreviation": "aut",
"color": "#005d49",
"text_color": "#8a9b1e",
"module": {
"name": "Obras",
"slug": "work"
},
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create status
requires authentication
Create a new status
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Eius et animi quos velit et.\",
\"abbreviation\": \"v\",
\"module\": \"architecto\",
\"sector_id\": \"architecto\",
\"color\": \"architecto\",
\"text_color\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Eius et animi quos velit et.",
"abbreviation": "v",
"module": "architecto",
"sector_id": "architecto",
"color": "architecto",
"text_color": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get status
requires authentication
Get a status
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"description": "Sr. George de Souza Delvalle",
"abbreviation": "iure",
"color": "#aa8e3f",
"text_color": "#559641",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update status
requires authentication
Update a status
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Eius et animi quos velit et.\",
\"abbreviation\": \"v\",
\"module\": \"architecto\",
\"sector_id\": \"architecto\",
\"color\": \"architecto\",
\"text_color\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Eius et animi quos velit et.",
"abbreviation": "v",
"module": "architecto",
"sector_id": "architecto",
"color": "architecto",
"text_color": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete status
requires authentication
Delete a status
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/statuses/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Suppliers
Endpoints for suppliers
List suppliers
requires authentication
List all suppliers
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers?sortBy=created_at&sortDesc=1&q=Supplier+name" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Supplier name",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"email": "yohanna44@example.org",
"phone": "(94) 94866-9606",
"document": "90.915.066/0001-02",
"type": "pj",
"responsible": "Sra. Katherine de Arruda",
"image": {
"id": null,
"url": null
},
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
}
},
{
"id": "c71cb930-01f3-381c-9172-e1c70e63388f",
"name": "Liz Sueli Pacheco Neto",
"email": "jrosa@example.net",
"phone": "(49) 3996-5127",
"document": "69.737.788/0001-10",
"type": "pf",
"responsible": "Sr. Rodrigo Gil",
"image": {
"id": null,
"url": null
},
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
}
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create supplier
requires authentication
Create a new supplier
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"email\": \"user@example.com\",
\"phone\": \"(11) 99999-9999\",
\"document\": \"Example Document\",
\"type\": \"Example Type\",
\"responsible\": \"Example Responsible\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"name\": \"Example Name\",
\"extension\": \"Example Image extension\",
\"size\": \"Example Image size\"
},
\"address\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"street\": \"Example Address street\",
\"number\": \"Example Address number\",
\"complement\": \"Example Address complement\",
\"neighborhood\": \"Example Address neighborhood\",
\"city\": \"Example Address city\",
\"state\": \"Example Address state\",
\"zip_code\": \"Example Address zip code\"
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"email": "user@example.com",
"phone": "(11) 99999-9999",
"document": "Example Document",
"type": "Example Type",
"responsible": "Example Responsible",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"name": "Example Name",
"extension": "Example Image extension",
"size": "Example Image size"
},
"address": {
"0": "example1",
"1": "example2",
"street": "Example Address street",
"number": "Example Address number",
"complement": "Example Address complement",
"neighborhood": "Example Address neighborhood",
"city": "Example Address city",
"state": "Example Address state",
"zip_code": "Example Address zip code"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get supplier
requires authentication
Get a supplier
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"email": "yohanna44@example.org",
"phone": "(94) 94866-9606",
"document": "90.915.066/0001-02",
"type": "pj",
"responsible": "Sra. Katherine de Arruda",
"image": {
"id": null,
"url": null
},
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update supplier
requires authentication
Update a supplier
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"email\": \"user@example.com\",
\"phone\": \"(11) 99999-9999\",
\"document\": \"Example Document\",
\"type\": \"Example Type\",
\"responsible\": \"Example Responsible\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"name\": \"Example Name\",
\"extension\": \"Example Image extension\",
\"size\": \"Example Image size\"
},
\"address\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"street\": \"Example Address street\",
\"number\": \"Example Address number\",
\"complement\": \"Example Address complement\",
\"neighborhood\": \"Example Address neighborhood\",
\"city\": \"Example Address city\",
\"state\": \"Example Address state\",
\"zip_code\": \"Example Address zip code\"
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"email": "user@example.com",
"phone": "(11) 99999-9999",
"document": "Example Document",
"type": "Example Type",
"responsible": "Example Responsible",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"name": "Example Name",
"extension": "Example Image extension",
"size": "Example Image size"
},
"address": {
"0": "example1",
"1": "example2",
"street": "Example Address street",
"number": "Example Address number",
"complement": "Example Address complement",
"neighborhood": "Example Address neighborhood",
"city": "Example Address city",
"state": "Example Address state",
"zip_code": "Example Address zip code"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete supplier
requires authentication
Delete a supplier
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/suppliers/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
System Types
Endpoints for system types
System Types
requires authentication
Get the system types
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/system-types" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/system-types"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"bankAccountTypes": {
"key": "value"
},
"fileTypes": {
"key": "value"
},
"legalEntityTypes": {
"key": "value"
},
"transactionTypes": {
"key": "value"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Transaction Categories
Endpoints for transaction categories
List transaction categories
requires authentication
List all transaction categories
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories?sortBy=created_at&sortDesc=1&q=Salary&type=entrada" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Salary",
"type": "entrada",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"description": "Et et modi ipsum nostrum. Autem et consequatur aut dolores enim non facere tempora.",
"type": "saída"
},
{
"id": "8529678e-de6b-32f2-9f70-231a0d681563",
"name": "Dr. Erik Dias Feliciano",
"description": "Qui repudiandae laboriosam est alias. Ratione nemo voluptate accusamus ut et recusandae modi rerum. Repellendus assumenda et tenetur ab reiciendis.",
"type": "saída"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show transaction category
requires authentication
Show a transaction category
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"description": "Et et modi ipsum nostrum. Autem et consequatur aut dolores enim non facere tempora.",
"type": "saída"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create transaction category
requires authentication
Create a new transaction category
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"description\": \"Example Description\",
\"type\": \"Example Type\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"description": "Example Description",
"type": "Example Type"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update transaction category
requires authentication
Update a transaction category
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"description\": \"Example Description\",
\"type\": \"Example Type\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"description": "Example Description",
"type": "Example Type"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete transaction category
requires authentication
Delete a transaction category
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/transaction-categories/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Units
Endpoints for units
List units
requires authentication
List all units
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/units?q=Structure" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units"
);
const params = {
"q": "Structure",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"abbreviation": "Edilson Caldeira Filho",
"description": "Id aut libero aliquam veniam.",
"created_at": null,
"updated_at": null
},
{
"id": "2024410d-26cd-3763-b1f0-31011d306e58",
"name": "Dr. Luciano Valência Delvalle",
"abbreviation": "Erik Matheus Feliciano Filho",
"description": "Et error neque recusandae et.",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show unit
requires authentication
Show a unit
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/units/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"abbreviation": "Edilson Caldeira Filho",
"description": "Id aut libero aliquam veniam.",
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create unit
requires authentication
Create a new unit
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"abbreviation\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"abbreviation": "architecto",
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update unit
requires authentication
Update a unit
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units/1" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"abbreviation\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units/1"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"abbreviation": "architecto",
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete unit
requires authentication
Delete a unit
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units/architecto" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/units/architecto"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Users
Endpoints for users
List users
requires authentication
List all users
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/users?q=User+name" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users"
);
const params = {
"q": "User name",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "8245df2e-402c-38e4-982e-b5f62910d681",
"name": "Ahmed Stamm",
"username": "rosalia05",
"email": "vemard@example.net",
"image": {
"id": null,
"url": null
},
"sectors": [],
"roles": []
},
{
"id": "d9e45c87-46de-3dd6-a194-972f21625436",
"name": "Darrell Hessel",
"username": "owintheiser",
"email": "elisha09@example.net",
"image": {
"id": null,
"url": null
},
"sectors": [],
"roles": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get user
requires authentication
Get a user
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Miss Pearl Hauck",
"username": "balistreri.josiane",
"email": "wbatz@example.net",
"image": {
"id": null,
"url": null
},
"sectors": [],
"roles": []
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create user
requires authentication
Create a new user
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"email\": \"user@example.com\",
\"username\": \"torp.florence\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"name\": \"Example Name\",
\"extension\": \"Example Image extension\",
\"size\": \"Example Image size\"
},
\"sectors\": [
\"047616b9-c05d-3fa3-9ad9-452244fc55e1\"
],
\"roles\": [
\"cc18252a-110c-3e9b-83cc-81f0ab1d55ab\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"email": "user@example.com",
"username": "torp.florence",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"name": "Example Name",
"extension": "Example Image extension",
"size": "Example Image size"
},
"sectors": [
"047616b9-c05d-3fa3-9ad9-452244fc55e1"
],
"roles": [
"cc18252a-110c-3e9b-83cc-81f0ab1d55ab"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update user
requires authentication
Update a user
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Example Name\",
\"email\": \"user@example.com\",
\"username\": \"libby.bradtke\",
\"password\": \"password123\",
\"image\": {
\"0\": \"example1\",
\"1\": \"example2\",
\"path\": \"Example Image path\",
\"name\": \"Example Name\",
\"extension\": \"Example Image extension\",
\"size\": \"Example Image size\"
},
\"sectors\": [
\"3637ab3b-64aa-3e77-a6a7-c306cb6519a5\"
],
\"roles\": [
\"43fd77a7-5d0e-3206-88ea-5c77b63072ad\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Example Name",
"email": "user@example.com",
"username": "libby.bradtke",
"password": "password123",
"image": {
"0": "example1",
"1": "example2",
"path": "Example Image path",
"name": "Example Name",
"extension": "Example Image extension",
"size": "Example Image size"
},
"sectors": [
"3637ab3b-64aa-3e77-a6a7-c306cb6519a5"
],
"roles": [
"43fd77a7-5d0e-3206-88ea-5c77b63072ad"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete user
requires authentication
Delete a user
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reset user password
requires authentication
Reset a user password
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/019556e7-2e9f-777c-a177-30bbf0646c32/password-reset" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/019556e7-2e9f-777c-a177-30bbf0646c32/password-reset"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Password reset successfully to foobaar"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Attach permissions to user
requires authentication
Attach direct permissions to a user
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16/permissions" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permissions\": [
\"bfc53181-d647-36b2-9080-f9c2b76006f4\"
]
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16/permissions"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permissions": [
"bfc53181-d647-36b2-9080-f9c2b76006f4"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "Permissions attached successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List user direct permissions
requires authentication
List direct permissions associated with a user
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16/permissions" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/users/16/permissions"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": null,
"name": "quidem",
"display_name": "Qui commodi incidunt iure odit."
},
{
"id": null,
"name": "modi",
"display_name": "Nostrum omnis autem et consequatur aut."
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Work Locations
Endpoints for work locations
List work locations
requires authentication
List all work locations
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations?sortBy=created_at&sortDesc=1&q=Tecnologia&work=uuid" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Tecnologia",
"work": "uuid",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"description": "Sr. George de Souza Delvalle",
"work": {
"id": null,
"name": null
},
"documents": [],
"created_at": null,
"updated_at": null
},
{
"id": "c68e0767-6220-31fb-a489-61093ff79529",
"description": "Valentin Ramos Zamana",
"work": {
"id": null,
"name": null
},
"documents": [],
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create work location
requires authentication
Create a new work location
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Eius et animi quos velit et.\",
\"work_id\": \"architecto\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Eius et animi quos velit et.",
"work_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get work location
requires authentication
Get a work location
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"description": "Sr. George de Souza Delvalle",
"work": {
"id": null,
"name": null
},
"documents": [],
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update work location
requires authentication
Update a work location
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Eius et animi quos velit et."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete work location
requires authentication
Delete a work location
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations/019556e7-2e9f-777c-a177-30bbf0646c32" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/work-locations/019556e7-2e9f-777c-a177-30bbf0646c32"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Works
Endpoints for works
List works
requires authentication
List all works
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/works?sortBy=created_at&sortDesc=1&q=Tecnologia" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works"
);
const params = {
"sortBy": "created_at",
"sortDesc": "1",
"q": "Tecnologia",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"documents": [],
"locations": [],
"started_at": {
"date": "1983-05-17 00:07:42.000000",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"created_at": null,
"updated_at": null
},
{
"id": "d9be5934-80e7-34a9-a136-841b5f0aea83",
"name": "Wilson Zamana Valdez Sobrinho",
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"documents": [],
"locations": [],
"started_at": {
"date": "2009-07-27 01:40:06.000000",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próximo »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create work
requires authentication
Create a new work
Example request:
curl --request POST \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"customer_id\": \"architecto\",
\"status_id\": \"architecto\",
\"started_at\": \"2025-12-15T21:01:54\",
\"address\": {
\"street\": \"architecto\",
\"number\": \"architecto\",
\"neighborhood\": \"architecto\",
\"city\": \"architecto\",
\"state\": \"architecto\",
\"zip_code\": \"architecto\"
}
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"customer_id": "architecto",
"status_id": "architecto",
"started_at": "2025-12-15T21:01:54",
"address": {
"street": "architecto",
"number": "architecto",
"neighborhood": "architecto",
"city": "architecto",
"state": "architecto",
"zip_code": "architecto"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get work
requires authentication
Get a work
Example request:
curl --request GET \
--get "https://api.voltec.gestao-arquivos.pensou.app.br/api/works/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": "bfc53181-d647-36b2-9080-f9c2b76006f4",
"name": "Sr. George de Souza Delvalle",
"address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"zip_code": null
},
"documents": [],
"locations": [],
"started_at": {
"date": "1983-05-17 00:07:42.000000",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"created_at": null,
"updated_at": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update work
requires authentication
Update a work
Example request:
curl --request PUT \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"customer_id\": \"architecto\",
\"status_id\": \"architecto\",
\"started_at\": \"2025-12-15T21:01:54\"
}"
const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"customer_id": "architecto",
"status_id": "architecto",
"started_at": "2025-12-15T21:01:54"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "string"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete work
requires authentication
Delete a work
Example request:
curl --request DELETE \
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works/16" \
--header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://api.voltec.gestao-arquivos.pensou.app.br/api/works/16"
);
const headers = {
"Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.