Skip to main content

Get Many Inventory Adjustments

Endpoint Overview​

This API endpoint is designed to retrieve information about multiple inventory adjustments from the Juleb ERP system. It allows you to efficiently fetch data for a group of inventory adjustments in a single request, rather than making individual requests for each one.

Endpoint Details​

  • Method: GET
  • URL: /api/v1/inventory/inventory-adjustments

Parameters​

  • Path Parameters: None
  • Query Parameters:
    • fields (string, not required): Fields to include in the response separated by comma. If not provided, all fields are returned.
    • filter (string, not required): Apply conditions to filter the data returned.
    • limit (integer, not required): Limit the number of records returned. Default is 10, Max is 1000.
    • page (integer, not required): Page the records returned. Default is 1.

Response​

  • 200 OK: Successfully retrieved the record.
  • 400 Bad Request: Invalid parameters.
  • 401 Unauthorized: Authentication required.

Response Body​

{
"data": [
...records
],
"meta": {
"count": integer,
"total": integer
},
"pagination": {
"previousPage": integer | null,
"currentPage": integer,
"nextPage": integer | null,
"totalPages": integer
}
}

Example​

Request​

const axios = require('axios');
const accountName = process.env.ACCOUNT_NAME;
const apiKey = process.env.API_KEY;

axios.get(`https://${accountName}.juleb.com/api/v1/inventory/inventory-adjustments`, {
headers: {
'accept': '*/*',
'Authorization': `TOKEN`
},
params: {
fields: 'id,name,state,company_id',
page: 1,
limit: 10
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});

Response​

{
"data": [
{
"id": 44,
"name": "Cycle count - Branch 1",
"state": "confirm",
"company_id": 1
}
],
"meta": {
"count": 1,
"total": 1
},
"pagination": {
"previousPage": null,
"currentPage": 1,
"nextPage": null,
"totalPages": 1
}
}