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/billing-series/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/billing-series/{id}'OK
Type of the billing series. See ApiBillingSeriesTypeEnum for possible values.
Purchase account details. See ApiChartAccountListReadDto.
Reference to the corrective billing series. See ApiBillingSeriesReadDto.
Indicates if the series should be omitted when sending invoices to SII.
{ "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "cif": "B42512345", "purchaseAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "observations": "Used for export invoices", "deposit": false, "corrective": true, "correctiveBillingSeries": {}, "lastInvoiceNumber": 1900, "omitSeriesOnSendToSii": true, "otherSIF": false }
Type of the billing series. See ApiBillingSeriesTypeEnum for possible values.
Description of the billing series.
Tax Identification Code (CIF) for the billing series.
Additional observations about the billing series.
Indicates if the series should be omitted when sending invoices to SII.
- https://api.prana.software/api/v1/billing-series/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/billing-series/{id}' \
-H 'Content-Type: application/json' \
-d '{
"type": "SALE",
"code": "SER25",
"description": "Export invoice series",
"cif": "B42512345",
"purchaseAccount": 400865,
"observations": "Used for export invoices",
"deposit": false,
"corrective": true,
"correctiveBillingSeries": 7,
"lastInvoiceNumber": 2000,
"omitSeriesOnSendToSii": true,
"otherSIF": false
}'OK
Type of the billing series. See ApiBillingSeriesTypeEnum for possible values.
Purchase account details. See ApiChartAccountListReadDto.
Reference to the corrective billing series. See ApiBillingSeriesReadDto.
Indicates if the series should be omitted when sending invoices to SII.
{ "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "cif": "B42512345", "purchaseAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "observations": "Used for export invoices", "deposit": false, "corrective": true, "correctiveBillingSeries": {}, "lastInvoiceNumber": 1900, "omitSeriesOnSendToSii": true, "otherSIF": false }
- https://api.prana.software/api/v1/billing-series/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.prana.software/api/v1/billing-series/{id}' \
-H 'Content-Type: application/json' \
-d '{
"property1": {},
"property2": {}
}'OK
Type of the billing series. See ApiBillingSeriesTypeEnum for possible values.
Purchase account details. See ApiChartAccountListReadDto.
Reference to the corrective billing series. See ApiBillingSeriesReadDto.
Indicates if the series should be omitted when sending invoices to SII.
{ "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "cif": "B42512345", "purchaseAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "observations": "Used for export invoices", "deposit": false, "corrective": true, "correctiveBillingSeries": {}, "lastInvoiceNumber": 1900, "omitSeriesOnSendToSii": true, "otherSIF": false }
Type of the billing series. See ApiBillingSeriesTypeEnum for possible values.
Description of the billing series.
Tax Identification Code (CIF) for the billing series.
Additional observations about the billing series.
Indicates if the series should be omitted when sending invoices to SII.
- https://api.prana.software/api/v1/billing-series
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/billing-series \
-H 'Content-Type: application/json' \
-d '{
"type": "SALE",
"code": "SER25",
"description": "Export invoice series",
"cif": "B42512345",
"purchaseAccount": 400865,
"observations": "Used for export invoices",
"deposit": false,
"corrective": true,
"correctiveBillingSeries": 7,
"lastInvoiceNumber": 2000,
"omitSeriesOnSendToSii": true,
"otherSIF": false
}'OK
Type of the billing series. See ApiBillingSeriesTypeEnum for possible values.
Purchase account details. See ApiChartAccountListReadDto.
Reference to the corrective billing series. See ApiBillingSeriesReadDto.
Indicates if the series should be omitted when sending invoices to SII.
{ "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "cif": "B42512345", "purchaseAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "observations": "Used for export invoices", "deposit": false, "corrective": true, "correctiveBillingSeries": {}, "lastInvoiceNumber": 1900, "omitSeriesOnSendToSii": true, "otherSIF": false }
- https://api.prana.software/api/v1/billing-series/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/billing-series/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 }