Introduction
IMAC Connect API - Procurement, Inventory, Projects, and Field Operations Platform
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_AUTH_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by logging in via the /api/v1/auth/login endpoint. Include the token in the Authorization header as: Bearer {token}.
Audit Logs
APIs for viewing audit logs (admin only)
Display a listing of audit logs.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/audit-logs" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/audit-logs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display the specified audit log.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/audit-logs/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/audit-logs/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Dashboard & Analytics
APIs for dashboard KPIs, charts, and analytics
Get dashboard KPIs.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/dashboard/kpis" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/dashboard/kpis"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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 dashboard charts data.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/dashboard/charts" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/dashboard/charts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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 recent activities.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/dashboard/activities" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/dashboard/activities"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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 procurement analytics.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/analytics/procurements" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/analytics/procurements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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 inventory analytics.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/analytics/inventory" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/analytics/inventory"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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 project analytics.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/analytics/projects" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/analytics/projects"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Endpoints
Authenticate user and return token.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/auth/login" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\",
\"password\": \"O[2UZ5ij-e\\/dl4m{o,\"
}"
const url = new URL(
"http://imac.name/api/v1/auth/login"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com",
"password": "O[2UZ5ij-e\/dl4m{o,"
};
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.
Register a new user.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/auth/register" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"email\": \"kunde.eloisa@example.com\",
\"password\": \"4[*UyPJ\\\"}6\",
\"phone\": \"hdtqtqxbajwbpilpm\",
\"first_name\": \"ufinllwloauydlsmsjury\",
\"last_name\": \"vojcybzvrbyickznkyglo\",
\"middle_name\": \"igmkwxphlvazjrcnfbaqy\",
\"date_of_birth\": \"2020-03-09\"
}"
const url = new URL(
"http://imac.name/api/v1/auth/register"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"email": "kunde.eloisa@example.com",
"password": "4[*UyPJ\"}6",
"phone": "hdtqtqxbajwbpilpm",
"first_name": "ufinllwloauydlsmsjury",
"last_name": "vojcybzvrbyickznkyglo",
"middle_name": "igmkwxphlvazjrcnfbaqy",
"date_of_birth": "2020-03-09"
};
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.
Send password reset link.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/auth/forgot-password" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\"
}"
const url = new URL(
"http://imac.name/api/v1/auth/forgot-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com"
};
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.
Reset password.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/auth/reset-password" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"consequatur\",
\"email\": \"carolyne.luettgen@example.org\",
\"password\": \"ij-e\\/dl4m\"
}"
const url = new URL(
"http://imac.name/api/v1/auth/reset-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "consequatur",
"email": "carolyne.luettgen@example.org",
"password": "ij-e\/dl4m"
};
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.
Logout user (revoke token).
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/auth/logout" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/auth/logout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Revoke all user tokens.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/auth/logout-all" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/auth/logout-all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Refresh the authentication token.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/auth/refresh" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/auth/refresh"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Get authenticated user.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/auth/me" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/auth/me"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Activate a user.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db/activate" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db/activate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Deactivate a user.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db/deactivate" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db/deactivate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Reset user password.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db/reset-password" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"O[2UZ5ij-e\\/dl4m{o,\"
}"
const url = new URL(
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db/reset-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "O[2UZ5ij-e\/dl4m{o,"
};
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.
Display a listing of users.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/users" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created user.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/users" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"email\": \"kunde.eloisa@example.com\",
\"password\": \"4[*UyPJ\\\"}6\",
\"phone\": \"hdtqtqxbajwbpilpm\",
\"status\": \"suspended\",
\"first_name\": \"ufinllwloauydlsmsjury\",
\"last_name\": \"vojcybzvrbyickznkyglo\",
\"middle_name\": \"igmkwxphlvazjrcnfbaqy\",
\"date_of_birth\": \"2020-03-09\",
\"gender\": \"male\",
\"address\": \"mqeopfuudtdsufvyvddqa\",
\"city\": \"mniihfqcoynlazghdtqtq\",
\"state\": \"xbajwbpilpmufinllwloa\",
\"country\": \"uydlsmsjuryvojcybzvrb\",
\"postal_code\": \"yickznkygloigmkwx\"
}"
const url = new URL(
"http://imac.name/api/v1/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"email": "kunde.eloisa@example.com",
"password": "4[*UyPJ\"}6",
"phone": "hdtqtqxbajwbpilpm",
"status": "suspended",
"first_name": "ufinllwloauydlsmsjury",
"last_name": "vojcybzvrbyickznkyglo",
"middle_name": "igmkwxphlvazjrcnfbaqy",
"date_of_birth": "2020-03-09",
"gender": "male",
"address": "mqeopfuudtdsufvyvddqa",
"city": "mniihfqcoynlazghdtqtq",
"state": "xbajwbpilpmufinllwloa",
"country": "uydlsmsjuryvojcybzvrb",
"postal_code": "yickznkygloigmkwx"
};
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.
Display the specified user.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified user.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"email\": \"kunde.eloisa@example.com\",
\"password\": \"4[*UyPJ\\\"}6\",
\"phone\": \"hdtqtqxbajwbpilpm\",
\"status\": \"pending\",
\"first_name\": \"ufinllwloauydlsmsjury\",
\"last_name\": \"vojcybzvrbyickznkyglo\",
\"middle_name\": \"igmkwxphlvazjrcnfbaqy\",
\"date_of_birth\": \"2020-03-09\",
\"gender\": \"female\",
\"address\": \"mqeopfuudtdsufvyvddqa\",
\"city\": \"mniihfqcoynlazghdtqtq\",
\"state\": \"xbajwbpilpmufinllwloa\",
\"country\": \"uydlsmsjuryvojcybzvrb\",
\"postal_code\": \"yickznkygloigmkwx\"
}"
const url = new URL(
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"email": "kunde.eloisa@example.com",
"password": "4[*UyPJ\"}6",
"phone": "hdtqtqxbajwbpilpm",
"status": "pending",
"first_name": "ufinllwloauydlsmsjury",
"last_name": "vojcybzvrbyickznkyglo",
"middle_name": "igmkwxphlvazjrcnfbaqy",
"date_of_birth": "2020-03-09",
"gender": "female",
"address": "mqeopfuudtdsufvyvddqa",
"city": "mniihfqcoynlazghdtqtq",
"state": "xbajwbpilpmufinllwloa",
"country": "uydlsmsjuryvojcybzvrb",
"postal_code": "yickznkygloigmkwx"
};
fetch(url, {
method: "PUT",
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.
Remove the specified user.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/users/019a72f5-e572-70af-84d1-1706caf0c4db"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Get customer projects.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea/projects" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea/projects"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of customers.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/customers" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/customers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created customer.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/customers" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"contact_person\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"phone\": \"smsjuryvojcybzvrb\",
\"address\": \"yickznkygloigmkwxphlv\",
\"city\": \"azjrcnfbaqywuxhgjjmzu\",
\"state\": \"xjubqouzswiwxtrkimfca\",
\"country\": \"tbxspzmrazsroyjpxmqes\",
\"status\": \"suspended\",
\"notes\": \"consequatur\"
}"
const url = new URL(
"http://imac.name/api/v1/customers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"contact_person": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"phone": "smsjuryvojcybzvrb",
"address": "yickznkygloigmkwxphlv",
"city": "azjrcnfbaqywuxhgjjmzu",
"state": "xjubqouzswiwxtrkimfca",
"country": "tbxspzmrazsroyjpxmqes",
"status": "suspended",
"notes": "consequatur"
};
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.
Display the specified customer.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified customer.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"contact_person\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"phone\": \"smsjuryvojcybzvrb\",
\"address\": \"yickznkygloigmkwxphlv\",
\"city\": \"azjrcnfbaqywuxhgjjmzu\",
\"state\": \"xjubqouzswiwxtrkimfca\",
\"country\": \"tbxspzmrazsroyjpxmqes\",
\"status\": \"suspended\",
\"notes\": \"consequatur\"
}"
const url = new URL(
"http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"contact_person": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"phone": "smsjuryvojcybzvrb",
"address": "yickznkygloigmkwxphlv",
"city": "azjrcnfbaqywuxhgjjmzu",
"state": "xjubqouzswiwxtrkimfca",
"country": "tbxspzmrazsroyjpxmqes",
"status": "suspended",
"notes": "consequatur"
};
fetch(url, {
method: "PUT",
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.
Remove the specified customer.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/customers/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Items
APIs for managing inventory items
Get item stock levels.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea/stock-levels" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea/stock-levels"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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 item price lists.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea/price-lists" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea/price-lists"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of items.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/items" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/items"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created item.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/items" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"category\": \"dtdsufvyvddqamniihfqc\",
\"unit_of_measure\": \"oynlazghdtqtqxbajwbpi\",
\"base_price\": 41,
\"status\": \"active\"
}"
const url = new URL(
"http://imac.name/api/v1/items"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"category": "dtdsufvyvddqamniihfqc",
"unit_of_measure": "oynlazghdtqtqxbajwbpi",
"base_price": 41,
"status": "active"
};
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.
Display the specified item.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified item.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"category\": \"dtdsufvyvddqamniihfqc\",
\"unit_of_measure\": \"oynlazghdtqtqxbajwbpi\",
\"base_price\": 41,
\"status\": \"active\"
}"
const url = new URL(
"http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"category": "dtdsufvyvddqamniihfqc",
"unit_of_measure": "oynlazghdtqtqxbajwbpi",
"base_price": 41,
"status": "active"
};
fetch(url, {
method: "PUT",
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.
Remove the specified item.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/items/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Notifications
APIs for managing user notifications
Mark notification as read.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/notifications/66529e01-d113-3473-8d6f-9e11e09332ea/read" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/notifications/66529e01-d113-3473-8d6f-9e11e09332ea/read"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Mark all notifications as read.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/notifications/mark-all-read" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/notifications/mark-all-read"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Get unread notifications count.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/notifications/unread-count" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/notifications/unread-count"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of notifications for the authenticated user.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/notifications" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/notifications"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display the specified notification.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/notifications/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/notifications/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Remove the specified notification.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/notifications/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/notifications/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Permissions
APIs for viewing permissions (read-only)
Display a listing of permissions.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/permissions" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display the specified permission.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/permissions/019a72f5-e107-7002-b65b-660897661695" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/permissions/019a72f5-e107-7002-b65b-660897661695"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Price Lists
APIs for managing supplier price lists
Display a listing of price lists.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/price-lists" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/price-lists"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created price list entry.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/price-lists" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"item_id\": \"consequatur\",
\"supplier_id\": \"consequatur\",
\"price\": 45,
\"effective_from\": \"2025-11-12T10:13:20\",
\"effective_to\": \"2106-12-11\",
\"currency\": \"mqe\"
}"
const url = new URL(
"http://imac.name/api/v1/price-lists"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"item_id": "consequatur",
"supplier_id": "consequatur",
"price": 45,
"effective_from": "2025-11-12T10:13:20",
"effective_to": "2106-12-11",
"currency": "mqe"
};
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.
Display the specified price list entry.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/price-lists/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/price-lists/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified price list entry.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/price-lists/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"price\": 73,
\"effective_from\": \"2025-11-12T10:13:20\",
\"effective_to\": \"2106-12-11\",
\"currency\": \"mqe\"
}"
const url = new URL(
"http://imac.name/api/v1/price-lists/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"price": 73,
"effective_from": "2025-11-12T10:13:20",
"effective_to": "2106-12-11",
"currency": "mqe"
};
fetch(url, {
method: "PUT",
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.
Remove the specified price list entry.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/price-lists/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/price-lists/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Procurement Requests
APIs for managing procurement requests
Submit procurement request for approval.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/submit" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/submit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Approve procurement request.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/approve" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/approve"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Reject procurement request.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/reject" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/reject"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Convert approved procurement request to purchase order.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/convert-to-po" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"supplier_id\": \"consequatur\",
\"order_date\": \"2025-11-12T10:13:20\",
\"required_date\": \"2106-12-11\",
\"delivery_address\": \"mqeopfuudtdsufvyvddqa\",
\"terms\": \"consequatur\"
}"
const url = new URL(
"http://imac.name/api/v1/procurements/66529e01-d113-3473-8d6f-9e11e09332ea/convert-to-po"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"supplier_id": "consequatur",
"order_date": "2025-11-12T10:13:20",
"required_date": "2106-12-11",
"delivery_address": "mqeopfuudtdsufvyvddqa",
"terms": "consequatur"
};
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.
Display a listing of procurement requests.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/procurements" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/procurements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created procurement request.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/procurements" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_number\": \"vmqeopfuudtdsufvyvddq\",
\"status\": \"draft\",
\"priority\": \"urgent\",
\"required_date\": \"2025-11-12T10:13:20\",
\"notes\": \"consequatur\",
\"items\": [
{
\"quantity\": 73,
\"unit_price\": 45,
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"notes\": \"consequatur\"
}
]
}"
const url = new URL(
"http://imac.name/api/v1/procurements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_number": "vmqeopfuudtdsufvyvddq",
"status": "draft",
"priority": "urgent",
"required_date": "2025-11-12T10:13:20",
"notes": "consequatur",
"items": [
{
"quantity": 73,
"unit_price": 45,
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"notes": "consequatur"
}
]
};
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.
Display the specified procurement request.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/procurements/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/procurements/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified procurement request.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/procurements/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_number\": \"vmqeopfuudtdsufvyvddq\",
\"status\": \"approved\",
\"priority\": \"high\",
\"required_date\": \"2025-11-12T10:13:20\",
\"notes\": \"consequatur\",
\"items\": [
{
\"quantity\": 45,
\"unit_price\": 56,
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"notes\": \"consequatur\"
}
]
}"
const url = new URL(
"http://imac.name/api/v1/procurements/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_number": "vmqeopfuudtdsufvyvddq",
"status": "approved",
"priority": "high",
"required_date": "2025-11-12T10:13:20",
"notes": "consequatur",
"items": [
{
"quantity": 45,
"unit_price": 56,
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"notes": "consequatur"
}
]
};
fetch(url, {
method: "PUT",
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.
Remove the specified procurement request.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/procurements/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/procurements/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Projects
APIs for managing projects
Get project procurements.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea/procurements" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea/procurements"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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 project reports.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea/reports" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea/reports"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of projects.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/projects" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/projects"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"success": true, "message": "Projects retrieved successfully", "data": [...], "pagination": {...}}
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.
Store a newly created project.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/projects" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"customer_id\": \"consequatur\",
\"start_date\": \"2025-11-12T10:13:19\",
\"end_date\": \"2106-12-11\",
\"status\": \"cancelled\",
\"budget\": 45,
\"manager_id\": \"consequatur\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\"
}"
const url = new URL(
"http://imac.name/api/v1/projects"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"customer_id": "consequatur",
"start_date": "2025-11-12T10:13:19",
"end_date": "2106-12-11",
"status": "cancelled",
"budget": 45,
"manager_id": "consequatur",
"description": "Dolores dolorum amet iste laborum eius est dolor."
};
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.
Display the specified project.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified project.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"start_date\": \"2025-11-12T10:13:19\",
\"end_date\": \"2106-12-11\",
\"status\": \"completed\",
\"budget\": 45,
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\"
}"
const url = new URL(
"http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"start_date": "2025-11-12T10:13:19",
"end_date": "2106-12-11",
"status": "completed",
"budget": 45,
"description": "Dolores dolorum amet iste laborum eius est dolor."
};
fetch(url, {
method: "PUT",
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.
Remove the specified project.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/projects/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Purchase Orders
APIs for managing purchase orders
Submit purchase order for approval.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea/submit" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea/submit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Approve purchase order.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea/approve" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea/approve"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Reject purchase order.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea/reject" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea/reject"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Display a listing of purchase orders.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/purchase-orders" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/purchase-orders"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created purchase order.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/purchase-orders" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"po_number\": \"vmqeopfuudtdsufvyvddq\",
\"supplier_id\": \"consequatur\",
\"status\": \"rejected\",
\"order_date\": \"2025-11-12T10:13:21\",
\"required_date\": \"2106-12-11\",
\"delivery_address\": \"consequatur\",
\"terms\": \"consequatur\",
\"items\": [
{
\"quantity\": 73,
\"unit_price\": 45,
\"tax_rate\": 16,
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\"
}
]
}"
const url = new URL(
"http://imac.name/api/v1/purchase-orders"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"po_number": "vmqeopfuudtdsufvyvddq",
"supplier_id": "consequatur",
"status": "rejected",
"order_date": "2025-11-12T10:13:21",
"required_date": "2106-12-11",
"delivery_address": "consequatur",
"terms": "consequatur",
"items": [
{
"quantity": 73,
"unit_price": 45,
"tax_rate": 16,
"description": "Dolores dolorum amet iste laborum eius est dolor."
}
]
};
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.
Display the specified purchase order.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified purchase order.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"po_number\": \"vmqeopfuudtdsufvyvddq\",
\"status\": \"pending\",
\"order_date\": \"2025-11-12T10:13:21\",
\"required_date\": \"2106-12-11\",
\"delivery_address\": \"consequatur\",
\"terms\": \"consequatur\",
\"items\": [
{
\"quantity\": 45,
\"unit_price\": 56,
\"tax_rate\": 5,
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\"
}
]
}"
const url = new URL(
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"po_number": "vmqeopfuudtdsufvyvddq",
"status": "pending",
"order_date": "2025-11-12T10:13:21",
"required_date": "2106-12-11",
"delivery_address": "consequatur",
"terms": "consequatur",
"items": [
{
"quantity": 45,
"unit_price": 56,
"tax_rate": 5,
"description": "Dolores dolorum amet iste laborum eius est dolor."
}
]
};
fetch(url, {
method: "PUT",
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.
Remove the specified purchase order.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/purchase-orders/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Reports
APIs for managing field reports
Submit report.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/submit" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/submit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Upload attachment to report.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/attachments" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "file=@C:\Users\dell\AppData\Local\Temp\php57D8.tmp" const url = new URL(
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/attachments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('file', document.querySelector('input[name="file"]').files[0]);
fetch(url, {
method: "POST",
headers,
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.
Get report attachments.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/attachments" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/attachments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Delete report attachment.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/attachments/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea/attachments/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Display a listing of reports.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/reports" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/reports"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created report.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/reports" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"report_number\": \"vmqeopfuudtdsufvyvddq\",
\"report_type\": \"amniihfqcoynlazghdtqt\",
\"title\": \"qxbajwbpilpmufinllwlo\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"status\": \"submitted\",
\"priority\": \"medium\",
\"location_lat\": -90,
\"location_lng\": -179
}"
const url = new URL(
"http://imac.name/api/v1/reports"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"report_number": "vmqeopfuudtdsufvyvddq",
"report_type": "amniihfqcoynlazghdtqt",
"title": "qxbajwbpilpmufinllwlo",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"status": "submitted",
"priority": "medium",
"location_lat": -90,
"location_lng": -179
};
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.
Display the specified report.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified report.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"report_number\": \"vmqeopfuudtdsufvyvddq\",
\"report_type\": \"amniihfqcoynlazghdtqt\",
\"title\": \"qxbajwbpilpmufinllwlo\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"status\": \"draft\",
\"priority\": \"high\",
\"location_lat\": -90,
\"location_lng\": -179
}"
const url = new URL(
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"report_number": "vmqeopfuudtdsufvyvddq",
"report_type": "amniihfqcoynlazghdtqt",
"title": "qxbajwbpilpmufinllwlo",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"status": "draft",
"priority": "high",
"location_lat": -90,
"location_lng": -179
};
fetch(url, {
method: "PUT",
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.
Remove the specified report.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/reports/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Roles
APIs for managing roles and permissions
Assign permissions to role.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15/permissions" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15/permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Display a listing of roles.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/roles" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created role.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/roles" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"description\": \"Dolores molestias ipsam sit.\",
\"is_system\": true
}"
const url = new URL(
"http://imac.name/api/v1/roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"description": "Dolores molestias ipsam sit.",
"is_system": true
};
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.
Display the specified role.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified role.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"description\": \"Dolores molestias ipsam sit.\",
\"is_system\": true
}"
const url = new URL(
"http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"description": "Dolores molestias ipsam sit.",
"is_system": true
};
fetch(url, {
method: "PUT",
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.
Remove the specified role.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/roles/019a72f5-e02f-70bb-9443-7cb5ab140c15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Stock Management
APIs for managing stock levels and movements
Adjust stock level (increase or decrease).
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/stock-levels/adjust" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"item_id\": \"consequatur\",
\"location\": \"mqeopfuudtdsufvyvddqa\",
\"adjustment\": 11613.31890586,
\"reason\": \"opfuudtdsufvyvddqamni\",
\"notes\": \"consequatur\"
}"
const url = new URL(
"http://imac.name/api/v1/stock-levels/adjust"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"item_id": "consequatur",
"location": "mqeopfuudtdsufvyvddqa",
"adjustment": 11613.31890586,
"reason": "opfuudtdsufvyvddqamni",
"notes": "consequatur"
};
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.
Transfer stock between locations.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/stock-levels/transfer" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"item_id\": \"consequatur\",
\"location_from\": \"mqeopfuudtdsufvyvddqa\",
\"location_to\": \"mniihfqcoynlazghdtqtq\",
\"quantity\": 80,
\"notes\": \"consequatur\"
}"
const url = new URL(
"http://imac.name/api/v1/stock-levels/transfer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"item_id": "consequatur",
"location_from": "mqeopfuudtdsufvyvddqa",
"location_to": "mniihfqcoynlazghdtqtq",
"quantity": 80,
"notes": "consequatur"
};
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.
Get low stock items.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/stock-levels/low-stock" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/stock-levels/low-stock"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of stock levels.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/stock-levels" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/stock-levels"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created stock level.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/stock-levels" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"item_id\": \"consequatur\",
\"location\": \"mqeopfuudtdsufvyvddqa\",
\"on_hand\": 45,
\"reserved\": 46,
\"reorder_level\": 28
}"
const url = new URL(
"http://imac.name/api/v1/stock-levels"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"item_id": "consequatur",
"location": "mqeopfuudtdsufvyvddqa",
"on_hand": 45,
"reserved": 46,
"reorder_level": 28
};
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.
Display the specified stock level.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/stock-levels/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/stock-levels/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified stock level.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/stock-levels/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"location\": \"vmqeopfuudtdsufvyvddq\",
\"on_hand\": 1,
\"reserved\": 45,
\"reorder_level\": 46
}"
const url = new URL(
"http://imac.name/api/v1/stock-levels/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"location": "vmqeopfuudtdsufvyvddq",
"on_hand": 1,
"reserved": 45,
"reorder_level": 46
};
fetch(url, {
method: "PUT",
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.
Remove the specified stock level.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/stock-levels/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/stock-levels/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Suppliers
APIs for managing suppliers
Get supplier price lists.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea/price-lists" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea/price-lists"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of suppliers.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/suppliers" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/suppliers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created supplier.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/suppliers" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"contact_person\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"phone\": \"smsjuryvojcybzvrb\",
\"address\": \"yickznkygloigmkwxphlv\",
\"payment_terms\": \"azjrcnfbaqywuxhgjjmzu\",
\"rating\": 5,
\"categories\": [
\"consequatur\"
],
\"status\": \"inactive\"
}"
const url = new URL(
"http://imac.name/api/v1/suppliers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"contact_person": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"phone": "smsjuryvojcybzvrb",
"address": "yickznkygloigmkwxphlv",
"payment_terms": "azjrcnfbaqywuxhgjjmzu",
"rating": 5,
"categories": [
"consequatur"
],
"status": "inactive"
};
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.
Display the specified supplier.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified supplier.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"vmqeopfuudtdsufvyvddq\",
\"name\": \"amniihfqcoynlazghdtqt\",
\"contact_person\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"phone\": \"smsjuryvojcybzvrb\",
\"address\": \"yickznkygloigmkwxphlv\",
\"payment_terms\": \"azjrcnfbaqywuxhgjjmzu\",
\"rating\": 5,
\"categories\": [
\"consequatur\"
],
\"status\": \"active\"
}"
const url = new URL(
"http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "vmqeopfuudtdsufvyvddq",
"name": "amniihfqcoynlazghdtqt",
"contact_person": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"phone": "smsjuryvojcybzvrb",
"address": "yickznkygloigmkwxphlv",
"payment_terms": "azjrcnfbaqywuxhgjjmzu",
"rating": 5,
"categories": [
"consequatur"
],
"status": "active"
};
fetch(url, {
method: "PUT",
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.
Remove the specified supplier.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/suppliers/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
System Settings
APIs for managing system settings (admin only)
Get a system setting by key.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/system/settings/key/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/system/settings/key/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of system settings.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/system/settings" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/system/settings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created system setting.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/system/settings" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"key\": \"vmqeopfuudtdsufvyvddq\",
\"value\": \"consequatur\",
\"description\": \"Dolorum amet iste laborum eius est dolor.\",
\"type\": \"integer\"
}"
const url = new URL(
"http://imac.name/api/v1/system/settings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"key": "vmqeopfuudtdsufvyvddq",
"value": "consequatur",
"description": "Dolorum amet iste laborum eius est dolor.",
"type": "integer"
};
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.
Display the specified system setting.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/system/settings/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/system/settings/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified system setting.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/system/settings/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"key\": \"vmqeopfuudtdsufvyvddq\",
\"description\": \"Dolores molestias ipsam sit.\",
\"type\": \"string\"
}"
const url = new URL(
"http://imac.name/api/v1/system/settings/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"key": "vmqeopfuudtdsufvyvddq",
"description": "Dolores molestias ipsam sit.",
"type": "string"
};
fetch(url, {
method: "PUT",
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.
Remove the specified system setting.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/system/settings/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/system/settings/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Timesheets
APIs for managing timesheet entries
Submit timesheet for approval.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea/submit" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea/submit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Approve timesheet entry.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea/approve" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea/approve"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Reject timesheet entry.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea/reject" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea/reject"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Get timesheet summary.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/timesheets/summary" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/timesheets/summary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of timesheet entries.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/timesheets" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/timesheets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created timesheet entry.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/timesheets" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"project_id\": \"consequatur\",
\"date\": \"2025-11-12T10:13:22\",
\"hours\": 12,
\"task_description\": \"consequatur\",
\"location_lat\": -90,
\"location_lng\": -179,
\"location_address\": \"eopfuudtdsufvyvddqamn\",
\"status\": \"approved\"
}"
const url = new URL(
"http://imac.name/api/v1/timesheets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"project_id": "consequatur",
"date": "2025-11-12T10:13:22",
"hours": 12,
"task_description": "consequatur",
"location_lat": -90,
"location_lng": -179,
"location_address": "eopfuudtdsufvyvddqamn",
"status": "approved"
};
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.
Display the specified timesheet entry.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified timesheet entry.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"date\": \"2025-11-12T10:13:22\",
\"hours\": 20,
\"task_description\": \"consequatur\",
\"location_lat\": -90,
\"location_lng\": -179,
\"location_address\": \"eopfuudtdsufvyvddqamn\",
\"status\": \"rejected\"
}"
const url = new URL(
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"date": "2025-11-12T10:13:22",
"hours": 20,
"task_description": "consequatur",
"location_lat": -90,
"location_lng": -179,
"location_address": "eopfuudtdsufvyvddqamn",
"status": "rejected"
};
fetch(url, {
method: "PUT",
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.
Remove the specified timesheet entry.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/timesheets/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Training Records
APIs for managing training records
Get expiring certifications.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/training-records/expiring" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/training-records/expiring"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Display a listing of training records.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/training-records" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/training-records"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created training record.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/training-records" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": \"consequatur\",
\"course_name\": \"mqeopfuudtdsufvyvddqa\",
\"provider\": \"mniihfqcoynlazghdtqtq\",
\"completion_date\": \"2025-11-12T10:13:22\",
\"expiry_date\": \"2106-12-11\",
\"certificate_path\": \"mqeopfuudtdsufvyvddqa\",
\"status\": \"expired\"
}"
const url = new URL(
"http://imac.name/api/v1/training-records"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": "consequatur",
"course_name": "mqeopfuudtdsufvyvddqa",
"provider": "mniihfqcoynlazghdtqtq",
"completion_date": "2025-11-12T10:13:22",
"expiry_date": "2106-12-11",
"certificate_path": "mqeopfuudtdsufvyvddqa",
"status": "expired"
};
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.
Display the specified training record.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/training-records/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/training-records/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified training record.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/training-records/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"course_name\": \"vmqeopfuudtdsufvyvddq\",
\"provider\": \"amniihfqcoynlazghdtqt\",
\"completion_date\": \"2025-11-12T10:13:22\",
\"expiry_date\": \"2106-12-11\",
\"certificate_path\": \"mqeopfuudtdsufvyvddqa\",
\"status\": \"expired\"
}"
const url = new URL(
"http://imac.name/api/v1/training-records/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"course_name": "vmqeopfuudtdsufvyvddq",
"provider": "amniihfqcoynlazghdtqt",
"completion_date": "2025-11-12T10:13:22",
"expiry_date": "2106-12-11",
"certificate_path": "mqeopfuudtdsufvyvddqa",
"status": "expired"
};
fetch(url, {
method: "PUT",
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.
Remove the specified training record.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/training-records/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/training-records/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.
Vehicles
APIs for managing vehicles
Assign vehicle to project.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea/assign" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"project_id\": \"consequatur\"
}"
const url = new URL(
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea/assign"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"project_id": "consequatur"
};
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.
Unassign vehicle from project.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea/unassign" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea/unassign"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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.
Display a listing of vehicles.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/vehicles" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/vehicles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Store a newly created vehicle.
requires authentication
Example request:
curl --request POST \
"http://imac.name/api/v1/vehicles" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"plate_number\": \"vmqeopfuudtdsufvyvddq\",
\"type\": \"amniihfqcoynlazghdtqt\",
\"make\": \"qxbajwbpilpmufinllwlo\",
\"model\": \"auydlsmsjuryvojcybzvr\",
\"year\": 2,
\"status\": \"maintenance\",
\"last_service_date\": \"2025-11-12T10:13:21\",
\"odometer\": 84
}"
const url = new URL(
"http://imac.name/api/v1/vehicles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"plate_number": "vmqeopfuudtdsufvyvddq",
"type": "amniihfqcoynlazghdtqt",
"make": "qxbajwbpilpmufinllwlo",
"model": "auydlsmsjuryvojcybzvr",
"year": 2,
"status": "maintenance",
"last_service_date": "2025-11-12T10:13:21",
"odometer": 84
};
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.
Display the specified vehicle.
requires authentication
Example request:
curl --request GET \
--get "http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"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
access-control-allow-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.
Update the specified vehicle.
requires authentication
Example request:
curl --request PUT \
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"plate_number\": \"vmqeopfuudtdsufvyvddq\",
\"type\": \"amniihfqcoynlazghdtqt\",
\"make\": \"qxbajwbpilpmufinllwlo\",
\"model\": \"auydlsmsjuryvojcybzvr\",
\"year\": 2,
\"status\": \"maintenance\",
\"last_service_date\": \"2025-11-12T10:13:22\",
\"odometer\": 84
}"
const url = new URL(
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"plate_number": "vmqeopfuudtdsufvyvddq",
"type": "amniihfqcoynlazghdtqt",
"make": "qxbajwbpilpmufinllwlo",
"model": "auydlsmsjuryvojcybzvr",
"year": 2,
"status": "maintenance",
"last_service_date": "2025-11-12T10:13:22",
"odometer": 84
};
fetch(url, {
method: "PUT",
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.
Remove the specified vehicle.
requires authentication
Example request:
curl --request DELETE \
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://imac.name/api/v1/vehicles/66529e01-d113-3473-8d6f-9e11e09332ea"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
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.