Manage your Stock Regularizations
Prana API (1.0)
API Prana
Welcome !!! In our developer portal you will find everything you need to interact with our platform.
Our API works with the REST interface through the HTTPS protocol and using the JSON format for processing calls.
All requests are validated against an API Key that can be obtained manually from the Configuration section of the PRANA app.
Our goal is to offer the clearest possible documentation here.
Any suggestions can be sent to: info@prana.software
API Key
To use your API key, you need only call the api with your key in the header as follow:
X-Api-Key
Download OpenAPI description
Languages
Servers
https://api.prana.software
- https://api.prana.software/api/v1/rate/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/rate/{id}'Response
application/json
{ "id": 1, "code": "string", "season": { "id": 1, "code": "string", "description": "string", "isCurrent": true, "startDate": "2019-08-24", "endDate": "2019-08-24" }, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "calculationMethod": "BOM_COST", "motherRate": { "id": 1, "code": "R-SALE-2024", "seasonDescription": "Spring 2024", "currencyId": 978, "currencyDescription": "Euro", "currencyNomenclature": "EUR", "motherRate": "General Rate", "active": true, "rateCodeId": 12, "rateCodeTaxesIncluded": false }, "percentageIncrease": 0, "amountToAdd": 0, "roundingType": "TERMINATION", "roundingRate": 0, "proximityType": "NEARBY", "active": true, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "taxesIncluded": true, "finalPriceCalculations": true }
Bodyapplication/jsonrequired
Defines the calculation methods used in the application.
Enum"BOM_COST""PURCHASE_PRICE""MOTHER_RATE"
- https://api.prana.software/api/v1/rate/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/rate/{id}' \
-H 'Content-Type: application/json' \
-d '{
"code": "string",
"season": 0,
"currency": 0,
"calculationMethod": "BOM_COST",
"motherRate": 0,
"percentageIncrease": 0,
"amountToAdd": 0,
"roundingType": "TERMINATION",
"roundingRate": 0,
"proximityType": "NEARBY",
"active": true,
"taxesIncluded": true,
"finalPriceCalculations": true
}'Response
application/json
{ "id": 1, "code": "string", "season": { "id": 1, "code": "string", "description": "string", "isCurrent": true, "startDate": "2019-08-24", "endDate": "2019-08-24" }, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "calculationMethod": "BOM_COST", "motherRate": { "id": 1, "code": "R-SALE-2024", "seasonDescription": "Spring 2024", "currencyId": 978, "currencyDescription": "Euro", "currencyNomenclature": "EUR", "motherRate": "General Rate", "active": true, "rateCodeId": 12, "rateCodeTaxesIncluded": false }, "percentageIncrease": 0, "amountToAdd": 0, "roundingType": "TERMINATION", "roundingRate": 0, "proximityType": "NEARBY", "active": true, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "taxesIncluded": true, "finalPriceCalculations": true }
- https://api.prana.software/api/v1/rate/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.prana.software/api/v1/rate/{id}' \
-H 'Content-Type: application/json' \
-d '{
"property1": {},
"property2": {}
}'Response
application/json
{ "id": 1, "code": "string", "season": { "id": 1, "code": "string", "description": "string", "isCurrent": true, "startDate": "2019-08-24", "endDate": "2019-08-24" }, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "calculationMethod": "BOM_COST", "motherRate": { "id": 1, "code": "R-SALE-2024", "seasonDescription": "Spring 2024", "currencyId": 978, "currencyDescription": "Euro", "currencyNomenclature": "EUR", "motherRate": "General Rate", "active": true, "rateCodeId": 12, "rateCodeTaxesIncluded": false }, "percentageIncrease": 0, "amountToAdd": 0, "roundingType": "TERMINATION", "roundingRate": 0, "proximityType": "NEARBY", "active": true, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "taxesIncluded": true, "finalPriceCalculations": true }
Bodyapplication/jsonrequired
Defines the calculation methods used in the application.
Enum"BOM_COST""PURCHASE_PRICE""MOTHER_RATE"
- https://api.prana.software/api/v1/rate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/rate \
-H 'Content-Type: application/json' \
-d '{
"code": "string",
"season": 0,
"currency": 0,
"calculationMethod": "BOM_COST",
"motherRate": 0,
"percentageIncrease": 0,
"amountToAdd": 0,
"roundingType": "TERMINATION",
"roundingRate": 0,
"proximityType": "NEARBY",
"active": true,
"taxesIncluded": true,
"finalPriceCalculations": true
}'Response
application/json
{ "id": 1, "code": "string", "season": { "id": 1, "code": "string", "description": "string", "isCurrent": true, "startDate": "2019-08-24", "endDate": "2019-08-24" }, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "calculationMethod": "BOM_COST", "motherRate": { "id": 1, "code": "R-SALE-2024", "seasonDescription": "Spring 2024", "currencyId": 978, "currencyDescription": "Euro", "currencyNomenclature": "EUR", "motherRate": "General Rate", "active": true, "rateCodeId": 12, "rateCodeTaxesIncluded": false }, "percentageIncrease": 0, "amountToAdd": 0, "roundingType": "TERMINATION", "roundingRate": 0, "proximityType": "NEARBY", "active": true, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "taxesIncluded": true, "finalPriceCalculations": true }
- https://api.prana.software/api/v1/rate/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/rate/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 }