Skip to main content

Cancel a Picking

Endpoint Overview

This API endpoint provides a detailed overview of the endpoint responsible for canceling a picking receipt within the Inventory module of the Juleb ERP.

Endpoint Details

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

Parameters

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

Response

  • 202 OK: The requested resource has been updated.
  • 400 Bad Request: Bad request.
  • 401 Unauthorized: Unauthorized.

Response Body

confirmation message with picking ID.

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

Response

Picking 11001 cancelled