Skip to main content

Draft a Picking

Endpoint Overview​

This API endpoint provides a detailed overview of the endpoint responsible for reverting a picking back to the draft state within the Inventory module of the Juleb ERP (the inverse of Validate a Picking).

Endpoint Details​

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

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. the picking ID doesn't exist).
  • 401 Unauthorized: Unauthorized.

Response Body​

"Picking {id} drafted"

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/draft`, {
id: 11003
}, {
headers: {
'accept': '*/*',
'Authorization': `TOKEN`,
'Content-Type': 'application/json'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});

Response​

"Picking 11003 drafted"