API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/collection/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/collection/{id}'{ "id": 1, "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "concept": { "id": 1, "code": "CON001", "description": "Sales revenue" }, "orderNumber": 1001, "collectionDate": "2024-01-15", "accounted": true, "observations": "Payment received", "extension": "pdf", "collectedAmountTotal": 1500, "collectedAmountTotalCompanyCurrency": 1500, "pendingAmountTotal": 0, "pendingAmountTotalCompanyCurrency": 0, "receiptAmountTotal": 1500, "receiptAmountTotalCompanyCurrency": 1500, "receiptsNumber": 3, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "bank": { "id": 1, "code": "ES1234", "name": "CLAVEI BANK", "iban": "ES9820385778983000760236", "swift": "BSABESBBXXX", "inactive": false, "riskGranted": 25000, "riskConsumed": 13000.55, "accountingAccount": 5720001234, "policyAccount": 5720009999, "picture": "bank_logo.png", "pictureToken": "1f8e3ac9d89d", "defaultBank": true, "balance": 15400.8, "income": 9671.22, "expenses": 5400.13, "synchronizable": false, "showSummary": true, "token": "token-885b" }, "amountReconciliation": 0, "amountReconciliationCompanyCurrency": 0, "lines": { "id": 1, "receiptId": 8954, "billingSeriesCode": "A", "invoiceNumber": 10025, "receiptNumber": "RC-2024-0054", "invoiceDate": "2024-08-07", "expirationDate": "2024-09-15", "total": 351.77, "totalCompanyCurrency": 351.77, "collectedAmount": 100, "collectedAmountCompanyCurrency": 100, "pendingAmount": 251.77, "pendingAmountCompanyCurrency": 251.77, "collectionAmount": 251.77, "ignorePending": false, "selected": false, "situation": "PE" }, "customer": { "id": 1, "code": 10001, "name": "Acme S.A.", "commercialName": "Acme España", "isActive": true, "inactiveDate": "2024-08-07", "currencyIdDelegationZero": 1 }, "quoteNumber": 1001, "quoteId": 0 }
Unique identifier of the accounting period. If not set, system will determine based on document date.
Account identifier associated with the collection. [Pending removal]
Observations or notes for the receipt collection.
IBAN associated with the bank account for the receipt.
Customer identifier associated with the receipt collection, refer to the invoice customer.
https://api.prana.software/api/v1/collection/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/collection/{id}' \
-H 'Content-Type: application/json' \
-d '{
"currency": 1,
"periodId": 1,
"account": 3,
"concept": 5,
"collectionDate": "2024-03-15",
"country": "Spain",
"accountCode": 572000003,
"observations": "Advance payment by bank transfer.",
"amount": 1500.75,
"accounted": false,
"bankName": "Bank of Spain",
"documentNumber": "RCPT-20240001",
"iban": "ES9121000418450200051332",
"bicSwift": "CAIXESBBXXX",
"accountingDate": "2024-03-16",
"change": 1.05,
"companyCurrency": 2,
"companyAmount": 1575.79,
"invoiceReference": 10001,
"orderNumber": 0,
"extension": "string",
"bank": 0,
"invoice": 0,
"collectedAmountTotal": 0,
"lines": {
"id": 1,
"header": 10,
"receipt": 100,
"ignorePending": false,
"collectionAmount": 250.75
},
"customer": 101,
"quote": 0
}'{ "id": 1, "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "concept": { "id": 1, "code": "CON001", "description": "Sales revenue" }, "orderNumber": 1001, "collectionDate": "2024-01-15", "accounted": true, "observations": "Payment received", "extension": "pdf", "collectedAmountTotal": 1500, "collectedAmountTotalCompanyCurrency": 1500, "pendingAmountTotal": 0, "pendingAmountTotalCompanyCurrency": 0, "receiptAmountTotal": 1500, "receiptAmountTotalCompanyCurrency": 1500, "receiptsNumber": 3, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "bank": { "id": 1, "code": "ES1234", "name": "CLAVEI BANK", "iban": "ES9820385778983000760236", "swift": "BSABESBBXXX", "inactive": false, "riskGranted": 25000, "riskConsumed": 13000.55, "accountingAccount": 5720001234, "policyAccount": 5720009999, "picture": "bank_logo.png", "pictureToken": "1f8e3ac9d89d", "defaultBank": true, "balance": 15400.8, "income": 9671.22, "expenses": 5400.13, "synchronizable": false, "showSummary": true, "token": "token-885b" }, "amountReconciliation": 0, "amountReconciliationCompanyCurrency": 0, "lines": { "id": 1, "receiptId": 8954, "billingSeriesCode": "A", "invoiceNumber": 10025, "receiptNumber": "RC-2024-0054", "invoiceDate": "2024-08-07", "expirationDate": "2024-09-15", "total": 351.77, "totalCompanyCurrency": 351.77, "collectedAmount": 100, "collectedAmountCompanyCurrency": 100, "pendingAmount": 251.77, "pendingAmountCompanyCurrency": 251.77, "collectionAmount": 251.77, "ignorePending": false, "selected": false, "situation": "PE" }, "customer": { "id": 1, "code": 10001, "name": "Acme S.A.", "commercialName": "Acme España", "isActive": true, "inactiveDate": "2024-08-07", "currencyIdDelegationZero": 1 }, "quoteNumber": 1001, "quoteId": 0 }
Unique identifier of the accounting period. If not set, system will determine based on document date.
Account identifier associated with the collection. [Pending removal]
Observations or notes for the receipt collection.
IBAN associated with the bank account for the receipt.
Customer identifier associated with the receipt collection, refer to the invoice customer.
https://api.prana.software/api/v1/collection
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/collection \
-H 'Content-Type: application/json' \
-d '{
"currency": 1,
"periodId": 1,
"account": 3,
"concept": 5,
"collectionDate": "2024-03-15",
"country": "Spain",
"accountCode": 572000003,
"observations": "Advance payment by bank transfer.",
"amount": 1500.75,
"accounted": false,
"bankName": "Bank of Spain",
"documentNumber": "RCPT-20240001",
"iban": "ES9121000418450200051332",
"bicSwift": "CAIXESBBXXX",
"accountingDate": "2024-03-16",
"change": 1.05,
"companyCurrency": 2,
"companyAmount": 1575.79,
"invoiceReference": 10001,
"orderNumber": 0,
"extension": "string",
"bank": 0,
"invoice": 0,
"collectedAmountTotal": 0,
"lines": {
"id": 1,
"header": 10,
"receipt": 100,
"ignorePending": false,
"collectionAmount": 250.75
},
"customer": 101,
"quote": 0
}'{ "id": 1, "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "concept": { "id": 1, "code": "CON001", "description": "Sales revenue" }, "orderNumber": 1001, "collectionDate": "2024-01-15", "accounted": true, "observations": "Payment received", "extension": "pdf", "collectedAmountTotal": 1500, "collectedAmountTotalCompanyCurrency": 1500, "pendingAmountTotal": 0, "pendingAmountTotalCompanyCurrency": 0, "receiptAmountTotal": 1500, "receiptAmountTotalCompanyCurrency": 1500, "receiptsNumber": 3, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "bank": { "id": 1, "code": "ES1234", "name": "CLAVEI BANK", "iban": "ES9820385778983000760236", "swift": "BSABESBBXXX", "inactive": false, "riskGranted": 25000, "riskConsumed": 13000.55, "accountingAccount": 5720001234, "policyAccount": 5720009999, "picture": "bank_logo.png", "pictureToken": "1f8e3ac9d89d", "defaultBank": true, "balance": 15400.8, "income": 9671.22, "expenses": 5400.13, "synchronizable": false, "showSummary": true, "token": "token-885b" }, "amountReconciliation": 0, "amountReconciliationCompanyCurrency": 0, "lines": { "id": 1, "receiptId": 8954, "billingSeriesCode": "A", "invoiceNumber": 10025, "receiptNumber": "RC-2024-0054", "invoiceDate": "2024-08-07", "expirationDate": "2024-09-15", "total": 351.77, "totalCompanyCurrency": 351.77, "collectedAmount": 100, "collectedAmountCompanyCurrency": 100, "pendingAmount": 251.77, "pendingAmountCompanyCurrency": 251.77, "collectionAmount": 251.77, "ignorePending": false, "selected": false, "situation": "PE" }, "customer": { "id": 1, "code": 10001, "name": "Acme S.A.", "commercialName": "Acme España", "isActive": true, "inactiveDate": "2024-08-07", "currencyIdDelegationZero": 1 }, "quoteNumber": 1001, "quoteId": 0 }
https://api.prana.software/api/v1/collection/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/collection/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 }