Skip to main content

Get Many Pickings

Endpoint Overview​

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

Endpoint Details​

  • Method: GET
  • URL: /api/v1/inventory/picking

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/picking`, {
headers: {
'accept': '*/*',
'Authorization': `Bearer ${apiKey}`
},
params: {
fields: 'name,company_id,state,scheduled_date,company_id,dest_company_id,is_inter_transfer',
filter: 'is_inter_transfer=true',
page: 12,
limit: 10
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});

Response​

{
"data": [
{
"name": "Demo/INT/01005",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-02-06T15:21:30.000Z",
"dest_company_id": null,
"is_inter_transfer": true
},
{
"name": "Demo/INT/01006",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-02-06T14:49:00.000Z",
"dest_company_id": null,
"is_inter_transfer": true
},
{
"name": "Demo/INT/01010",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-02-08T09:53:16.000Z",
"dest_company_id": 2,
"is_inter_transfer": true
},
{
"name": "Demo/INT/01008",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-02-08T09:53:15.000Z",
"dest_company_id": 1,
"is_inter_transfer": true
},
{
"name": "Demo/INT/01009",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-02-08T09:53:16.000Z",
"dest_company_id": 3,
"is_inter_transfer": true
},
{
"name": "Demo/INT/01011",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-02-08T09:53:16.000Z",
"dest_company_id": 37,
"is_inter_transfer": true
},
{
"name": "Demo/INT/01007",
"company_id": 1,
"state": "assigned",
"scheduled_date": "2024-02-07T08:35:20.000Z",
"dest_company_id": 2,
"is_inter_transfer": true
},
{
"name": "Demo/INT/00959",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-01-09T12:14:23.000Z",
"dest_company_id": 3,
"is_inter_transfer": true
},
{
"name": "Demo/INT/00960",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-01-13T18:10:24.000Z",
"dest_company_id": null,
"is_inter_transfer": true
},
{
"name": "Demo/INT/00962",
"company_id": 1,
"state": "draft",
"scheduled_date": "2024-01-14T17:46:35.000Z",
"dest_company_id": 3,
"is_inter_transfer": true
}
],
"meta": {
"count": 10,
"total": 449
},
"pagination": {
"previousPage": 11,
"currentPage": 12,
"nextPage": 13,
"totalPages": 45
}
}