API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/vat-type/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/vat-type/{id}'Response
application/json
{ "id": 1, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "articleVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "vatPercentage": 21, "rePercentage": 5.2, "sellVatAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "sellRechargeAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "buyVatAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "buyRechargeAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" } }
https://api.prana.software/api/v1/vat-type/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/vat-type/{id}' \
-H 'Content-Type: application/json' \
-d '{
"customerVatType": 1,
"articleVatType": "STANDARD",
"vatPercentage": 21,
"rePercentage": 5.2,
"sellVatAccount": 4770000,
"sellRechargeAccount": 4771000,
"buyVatAccount": 4720000,
"buyRechargeAccount": 4721000
}'Response
application/json
{ "id": 1, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "articleVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "vatPercentage": 21, "rePercentage": 5.2, "sellVatAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "sellRechargeAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "buyVatAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "buyRechargeAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" } }
https://api.prana.software/api/v1/vat-type
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/vat-type \
-H 'Content-Type: application/json' \
-d '{
"customerVatType": 1,
"articleVatType": "STANDARD",
"vatPercentage": 21,
"rePercentage": 5.2,
"sellVatAccount": 4770000,
"sellRechargeAccount": 4771000,
"buyVatAccount": 4720000,
"buyRechargeAccount": 4721000
}'Response
application/json
{ "id": 1, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "articleVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "vatPercentage": 21, "rePercentage": 5.2, "sellVatAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "sellRechargeAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "buyVatAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "buyRechargeAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" } }
https://api.prana.software/api/v1/vat-type/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/vat-type/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 }