API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/currency/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/currency/{id}'Response
application/json
{ "id": 1, "code": "strin", "description": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "nomenclature": "strin", "changeValue": 0, "isoCode": "USD", "significantDecimalsDocuments": 6, "intermediateDecimalsDocuments": 6, "decimalsCalculatePrices": 6, "decimalsCalculateCosts": 6, "currencyExchanges": [ { … } ] }
https://api.prana.software/api/v1/currency/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/currency/{id}' \
-H 'Content-Type: application/json' \
-d '{
"code": "strin",
"description": "string",
"account": 0,
"nomenclature": "strin",
"changeValue": 0,
"isoCode": "USD",
"significantDecimalsDocuments": 0,
"intermediateDecimalsDocuments": 0,
"decimalsCalculatePrices": 0,
"decimalsCalculateCosts": 0
}'Response
application/json
{ "id": 1, "code": "strin", "description": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "nomenclature": "strin", "changeValue": 0, "isoCode": "USD", "significantDecimalsDocuments": 6, "intermediateDecimalsDocuments": 6, "decimalsCalculatePrices": 6, "decimalsCalculateCosts": 6, "currencyExchanges": [ { … } ] }
https://api.prana.software/api/v1/currency
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/currency \
-H 'Content-Type: application/json' \
-d '{
"code": "strin",
"description": "string",
"account": 0,
"nomenclature": "strin",
"changeValue": 0,
"isoCode": "USD",
"significantDecimalsDocuments": 0,
"intermediateDecimalsDocuments": 0,
"decimalsCalculatePrices": 0,
"decimalsCalculateCosts": 0
}'Response
application/json
{ "id": 1, "code": "strin", "description": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "nomenclature": "strin", "changeValue": 0, "isoCode": "USD", "significantDecimalsDocuments": 6, "intermediateDecimalsDocuments": 6, "decimalsCalculatePrices": 6, "decimalsCalculateCosts": 6, "currencyExchanges": [ { … } ] }
https://api.prana.software/api/v1/currency/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/currency/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 }