Skip to main content

Validate a Picking

Endpoint Overview​

This API endpoint provides a detailed overview of the endpoint responsible for validating a picking within the Inventory module of the Juleb ERP. Validating applies the stock move and sets the picking to done.

Skip this call with autoValidate

If you created the picking with autoValidate: true (see Create a delivery and the other create-picking endpoints), it is validated automatically a few seconds after creation and you do not need to call this endpoint yourself.

Endpoint Details​

  • Method: POST
  • URL: /api/v1/inventory/picking/validate

Parameters​

  • Path Parameters: None
  • Query Parameters: None
{
"id": integer
}

Response​

  • 201 OK: The requested resource has been updated.
  • 400 Bad Request: Bad request (e.g. Picking with id number: {id} is already validated).
  • 401 Unauthorized: Unauthorized.

Response Body​

"Picking with id number: {id} is validated"

Example​

Request​

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

axios.post(`https://${accountName}.juleb.com/api/v1/inventory/picking/validate`, {
id: 11003
}, {
headers: {
'accept': '*/*',
'Authorization': `TOKEN`,
'Content-Type': 'application/json'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});

Response​

"Picking with id number: 11003 is validated"