API Definition to interact with Prana platform
Prana API (1.0)
Bodyapplication/jsonrequired
List of document lines. For structure, see ApiBaseLineWriteDto.java
Enum"AVERAGE_COST_PRICE""GROSS_PRICE_CURRENT_COST""NET_PRICE_CURRENT_COST"
https://api.prana.software/api/v1/inventory
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/inventory \
-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
}
],
"totalLine": 0,
"batchList": [
{
"id": 11,
"batch": "LOT-2025B",
"quantity": 75.5,
"packages": 2
}
],
"serialNumberList": [
{
"id": 12,
"serialNumber": "SN-20250807-XYZ"
}
]
}
],
"warehouse": 0,
"valuationType": "AVERAGE_COST_PRICE",
"doInventory": true
}'Response
application/json
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "inventoriedDate": "2024-01-15", "inventoried": true, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "valuationType": "AVERAGE_COST_PRICE" }
https://api.prana.software/api/v1/inventory/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/inventory/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
}'Response
application/json
{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }
https://api.prana.software/api/v1/inventory/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/inventory/{id}'Response
application/json
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "inventoriedDate": "2024-01-15", "inventoried": true, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "valuationType": "AVERAGE_COST_PRICE" }