API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/warehouse/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/warehouse/{id}'Response
application/json
{ "id": 1, "code": "ALM01", "nationalIdentityCard": "12345678A", "description": "Central warehouse", "address": "Av. de la Industria, 23", "postalCode": "03001", "population": "Alicante", "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "state": { "id": 1, "code": "string", "description": "string", "country": { … }, "isoCode": "string" }, "phone1": "+34965123456", "phone2": "+34965111111", "email": "warehouse@company.com", "byDefault": true }
Bodyapplication/jsonrequired
National Identity Card associated to the warehouse.
Example: "12345678A"
https://api.prana.software/api/v1/warehouse/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/warehouse/{id}' \
-H 'Content-Type: application/json' \
-d '{
"code": "ALM01",
"nationalIdentityCard": "12345678A",
"description": "string",
"address": "string",
"postalCode": "string",
"population": "string",
"country": 0,
"state": 0,
"phone1": "string",
"phone2": "string",
"email": "string",
"byDefault": true
}'Response
application/json
{ "id": 1, "code": "ALM01", "nationalIdentityCard": "12345678A", "description": "Central warehouse", "address": "Av. de la Industria, 23", "postalCode": "03001", "population": "Alicante", "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "state": { "id": 1, "code": "string", "description": "string", "country": { … }, "isoCode": "string" }, "phone1": "+34965123456", "phone2": "+34965111111", "email": "warehouse@company.com", "byDefault": true }
Bodyapplication/jsonrequired
National Identity Card associated to the warehouse.
Example: "12345678A"
https://api.prana.software/api/v1/warehouse
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/warehouse \
-H 'Content-Type: application/json' \
-d '{
"code": "ALM01",
"nationalIdentityCard": "12345678A",
"description": "string",
"address": "string",
"postalCode": "string",
"population": "string",
"country": 0,
"state": 0,
"phone1": "string",
"phone2": "string",
"email": "string",
"byDefault": true
}'Response
application/json
{ "id": 1, "code": "ALM01", "nationalIdentityCard": "12345678A", "description": "Central warehouse", "address": "Av. de la Industria, 23", "postalCode": "03001", "population": "Alicante", "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "state": { "id": 1, "code": "string", "description": "string", "country": { … }, "isoCode": "string" }, "phone1": "+34965123456", "phone2": "+34965111111", "email": "warehouse@company.com", "byDefault": true }
https://api.prana.software/api/v1/warehouse/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/warehouse/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 }