API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/state/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/state/{id}'Response
application/json
{ "id": 1, "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "code": "string", "agency": { "id": 1, "code": "AG001", "name": "Fast Transport Agency" }, "description": "string", "prefix": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "intrastatCode": "string", "target": 0, "isoCode": "strin", "cyc": "string" }
https://api.prana.software/api/v1/state/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/state/{id}' \
-H 'Content-Type: application/json' \
-d '{
"country": 0,
"code": "string",
"agency": 0,
"description": "string",
"prefix": "strin",
"account": 0,
"intrastatCode": "string",
"target": 0,
"isoCode": "strin",
"cyc": "strin"
}'Response
application/json
{ "id": 1, "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "code": "string", "agency": { "id": 1, "code": "AG001", "name": "Fast Transport Agency" }, "description": "string", "prefix": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "intrastatCode": "string", "target": 0, "isoCode": "strin", "cyc": "string" }
https://api.prana.software/api/v1/state
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/state \
-H 'Content-Type: application/json' \
-d '{
"country": 0,
"code": "string",
"agency": 0,
"description": "string",
"prefix": "strin",
"account": 0,
"intrastatCode": "string",
"target": 0,
"isoCode": "strin",
"cyc": "strin"
}'Response
application/json
{ "id": 1, "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "code": "string", "agency": { "id": 1, "code": "AG001", "name": "Fast Transport Agency" }, "description": "string", "prefix": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "intrastatCode": "string", "target": 0, "isoCode": "strin", "cyc": "string" }
https://api.prana.software/api/v1/state/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/state/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 }