API Definition to interact with Prana platform
Prana API (1.0)
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 }, "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 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 }, "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
- 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 }, "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 }