API Definition to interact with Prana platform
Prana API (1.0)
List of document lines. For structure, see ApiBaseLineWriteDto.java
https://api.prana.software/api/v1/stock-regularization
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/stock-regularization \
-H 'Content-Type: application/json' \
-d '{
"number": 1050,
"documentDate": "2025-08-07",
"quantityTotal": 120.5,
"observations": "Deliver to warehouse B",
"lines": [
{
"id": 1001,
"articleCombination": 5312,
"sizeRange": 15,
"assortment": 8,
"lineNumber": 1,
"articleDescription": "Cotton T-shirt - Blue",
"packages": 3,
"quantityPerPackage": 12,
"price": 19.99,
"lineObservations": "Special discount applied.",
"details": [
{
"id": 200,
"sizeRangeDetail": 15,
"width": 12,
"quantityPerPackage": 9.3,
"quantityAccumulated": 0,
"quantityReal": 0
}
],
"totalLine": 0,
"totalQuantityAccumulated": 0,
"totalQuantityReal": 0,
"accumulateInto": "STOCK",
"batchList": [
{
"id": 11,
"batch": "LOT-2025B",
"quantity": 75.5,
"packages": 2
}
],
"serialNumberList": [
{
"id": 12,
"serialNumber": "SN-20250807-XYZ"
}
]
}
],
"id": 1,
"warehouse": 5,
"valuationType": "AVERAGE_COST_PRICE",
"doRegularization": true
}'OK
Date of the document in ISO format (yyyy-MM-dd).
Free text field for any observations related to the document.
List of detail lines for the document. For structure see: ApiBaseLineReadDto.java
Date when the stock regularization was completed
Flag indicating if the stock regularization has been completed
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "stockRegularizatedDate": "2024-01-16", "stockRegularizated": true, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "valuationType": "AVERAGE_COST_PRICE" }
https://api.prana.software/api/v1/stock-regularization/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/stock-regularization/search \
-H 'Content-Type: application/json' \
-d '{
"condition": {
"field": "name",
"value": "Example Value",
"type": "EQ",
"endValue": 100,
"innerConditions": [
{}
],
"conditionType": "AND",
"empty": false,
"compareFields": false
},
"sortCriteria": [
{
"sortField": "name",
"sortDirection": "ASC"
}
],
"pageNumber": 0,
"pageSize": 20
}'{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }
https://api.prana.software/api/v1/stock-regularization/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/stock-regularization/{id}'OK
Date of the document in ISO format (yyyy-MM-dd).
Free text field for any observations related to the document.
List of detail lines for the document. For structure see: ApiBaseLineReadDto.java
Date when the stock regularization was completed
Flag indicating if the stock regularization has been completed
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "stockRegularizatedDate": "2024-01-16", "stockRegularizated": true, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "valuationType": "AVERAGE_COST_PRICE" }