Skip to main content

Close and POST Session

Endpoint Overview

This API endpoint provides a detailed overview of the endpoint responsible for closing and posting a POS session within the POS module of the Juleb ERP.

Endpoint Details

  • Method: POST
  • URL: /api/v1/pos/session/{id}

Parameters

  • Path Parameters:
    • id (string, required): The ID of the session to close it.
  • Query Parameters: None
{
"id": integer
}

Response

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

Response Body

  • No Response Body

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