Skip to main content

Remove a Picking Line

Endpoint Overview​

This API endpoint provides a detailed overview of the endpoint responsible for removing a single product line from a picking within the Inventory module of the Juleb ERP. The picking must still be in the draft state.

Endpoint Details​

  • Method: DELETE
  • URL: /api/v1/inventory/picking/{pickingID}/line/{id}

Parameters​

  • Path Parameters:
    • pickingID (string, required): The ID of the picking the line belongs to.
    • id (string, required): The ID of the line to remove.
  • Query Parameters: None

Response​

  • 204 No Content: The requested resource has been removed.
  • 400 Bad Request: Bad request (e.g. line id: {id} is not found).
  • 401 Unauthorized: Unauthorized.
  • 404 Not Found: picking with id {pickingID} is not set to draft (if the picking has already been validated/assigned), or the picking doesn't exist.

Response Body​

No response body.

Example​

Request​

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

axios.delete(`https://${accountName}.juleb.com/api/v1/inventory/picking/11004/line/8812`, {
headers: {
'accept': '*/*',
'Authorization': `TOKEN`
}
})
.then(response => {
console.log(response.status);
})
.catch(error => {
console.error('Error:', error);
});

Response​

204 No Content with an empty body.