API Definition to interact with Prana platform
Prana API (1.0)
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}'Response
application/json
{ "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 }
Bodyapplication/jsonrequired
Enum"PURCHASE""PURCHASE_TICKET""SALE""SALE_TICKET""INVOICE_DRAFT"
Example: "INVOICE"
Description of the billing series.
Example: "Export invoice series"
Tax Identification Code (CIF) for the billing series.
Example: "B42512345"
Additional observations about the billing series.
Example: "Used for export invoices"
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
}'Response
application/json
{ "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 }
Bodyapplication/jsonrequired
Enum"PURCHASE""PURCHASE_TICKET""SALE""SALE_TICKET""INVOICE_DRAFT"
Example: "INVOICE"
Description of the billing series.
Example: "Export invoice series"
Tax Identification Code (CIF) for the billing series.
Example: "B42512345"
Additional observations about the billing series.
Example: "Used for export invoices"
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
}'Response
application/json
{ "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 }
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
}'Response
application/json
{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }