Manage your Stock Regularizations
Prana API (1.0)
API Prana
Welcome !!! In our developer portal you will find everything you need to interact with our platform.
Our API works with the REST interface through the HTTPS protocol and using the JSON format for processing calls.
All requests are validated against an API Key that can be obtained manually from the Configuration section of the PRANA app.
Our goal is to offer the clearest possible documentation here.
Any suggestions can be sent to: info@prana.software
API Key
To use your API key, you need only call the api with your key in the header as follow:
X-Api-Key
- https://api.prana.software/api/v1/payment/method/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/payment/method/{id}'OK
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Electronic invoice codes
{ "id": 1, "code": 0, "description": "string", "document": "string", "firstTerm": 0, "terms": 0, "daysTerms": 0, "remittance": true, "addToCustomerBase": true, "notCountedAsPaymentForecast": true, "serveFullPrePaid": true, "paymentAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "discountAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customerAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "saleAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "billCode": "string", "fdiCode": "string", "facturaECode": "01", "observations": "string", "prestashopModule": "string", "languages": { "property1": "string", "property2": "string" }, "icon": "string" }
Description of the payment method.
Indicates if payment is not counted as forecast.
FDI code for the payment method. See ApiFDICodes for all possible values.
FacturaE code for the payment method. See ApiFacturaECodeEnum for all available values.
Additional observations about the payment method.
Name of the Prestashop module associated.
- https://api.prana.software/api/v1/payment/method/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/payment/method/{id}' \
-H 'Content-Type: application/json' \
-d '{
"code": 10,
"description": "Bank transfer",
"document": "DOC01",
"firstTerm": 30,
"terms": 3,
"daysTerms": 90,
"remittance": true,
"addToCustomerBase": true,
"notCountedAsPaymentForecast": false,
"serveFullPrePaid": false,
"paymentAccount": 410,
"discountAccount": 411,
"customerAccount": 430,
"saleAccount": 700,
"billCode": "BILL01",
"fdiCode": "A",
"facturaECode": "01",
"observations": "Requires confirmation",
"prestashopModule": "ps_bankwire",
"languages": {
"property1": "string",
"property2": "string"
},
"icon": "icon-bank.png"
}'OK
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Electronic invoice codes
{ "id": 1, "code": 0, "description": "string", "document": "string", "firstTerm": 0, "terms": 0, "daysTerms": 0, "remittance": true, "addToCustomerBase": true, "notCountedAsPaymentForecast": true, "serveFullPrePaid": true, "paymentAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "discountAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customerAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "saleAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "billCode": "string", "fdiCode": "string", "facturaECode": "01", "observations": "string", "prestashopModule": "string", "languages": { "property1": "string", "property2": "string" }, "icon": "string" }
- https://api.prana.software/api/v1/payment/method/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.prana.software/api/v1/payment/method/{id}' \
-H 'Content-Type: application/json' \
-d '{
"property1": {},
"property2": {}
}'OK
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Electronic invoice codes
{ "id": 1, "code": 0, "description": "string", "document": "string", "firstTerm": 0, "terms": 0, "daysTerms": 0, "remittance": true, "addToCustomerBase": true, "notCountedAsPaymentForecast": true, "serveFullPrePaid": true, "paymentAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "discountAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customerAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "saleAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "billCode": "string", "fdiCode": "string", "facturaECode": "01", "observations": "string", "prestashopModule": "string", "languages": { "property1": "string", "property2": "string" }, "icon": "string" }
Description of the payment method.
Indicates if payment is not counted as forecast.
FDI code for the payment method. See ApiFDICodes for all possible values.
FacturaE code for the payment method. See ApiFacturaECodeEnum for all available values.
Additional observations about the payment method.
Name of the Prestashop module associated.
- https://api.prana.software/api/v1/payment/method
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/payment/method \
-H 'Content-Type: application/json' \
-d '{
"code": 10,
"description": "Bank transfer",
"document": "DOC01",
"firstTerm": 30,
"terms": 3,
"daysTerms": 90,
"remittance": true,
"addToCustomerBase": true,
"notCountedAsPaymentForecast": false,
"serveFullPrePaid": false,
"paymentAccount": 410,
"discountAccount": 411,
"customerAccount": 430,
"saleAccount": 700,
"billCode": "BILL01",
"fdiCode": "A",
"facturaECode": "01",
"observations": "Requires confirmation",
"prestashopModule": "ps_bankwire",
"languages": {
"property1": "string",
"property2": "string"
},
"icon": "icon-bank.png"
}'OK
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Surcharge account information for purchase operations
Electronic invoice codes
{ "id": 1, "code": 0, "description": "string", "document": "string", "firstTerm": 0, "terms": 0, "daysTerms": 0, "remittance": true, "addToCustomerBase": true, "notCountedAsPaymentForecast": true, "serveFullPrePaid": true, "paymentAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "discountAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customerAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "saleAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "billCode": "string", "fdiCode": "string", "facturaECode": "01", "observations": "string", "prestashopModule": "string", "languages": { "property1": "string", "property2": "string" }, "icon": "string" }
- https://api.prana.software/api/v1/payment/method/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/payment/method/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
}'{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }