API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/purchaseDeliveryNote/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/purchaseDeliveryNote/{id}'OK
Date of the document in ISO format (yyyy-MM-dd).
Free text field for any observations related to the document.
List of detail lines for the document. For structure see: ApiBaseLineReadDto.java
Total prompt payment discount amount in company currency
Total disbursement amount in company currency
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "change": 0.5, "discount1": 5, "discount2": 2, "discountAmountTotal": 100, "discountAmountTotalCompanyCurrency": 95, "discountPp": 3, "discountPpAmountTotal": 15, "discountPpAmountTotalCompanyCurrency": 14, "grossAmountTotal": 1200, "grossAmountTotalCompanyCurrency": 1150, "netAmountTotal": 1100, "netAmountTotalCompanyCurrency": 1080, "vatAmountTotal": 230, "vatAmountTotalCompanyCurrency": 225, "surchargeAmountTotal": 20, "surchargeAmountTotalCompanyCurrency": 18, "withholding": 2, "withholdingAmountTotal": 22, "withholdingAmountTotalCompanyCurrency": 21, "total": 1300, "totalCompanyCurrency": 1280, "disbursementAmountTotal": 50, "disbursementAmountTotalCompanyCurrency": 48, "billingSeries": { "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "deposit": true, "corrective": true }, "receivedDate": "2024-08-07", "billCode": "BILL-2024-001", "locked": false, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "reference": "DN-2024-001", "noAccumulateWarehouse": false, "supplier": { "id": 1, "code": 0, "cif": "string", "commercialName": "string", "name": "string", "address": "string", "country": "string", "state": "string", "postalCode": "string", "city": "string", "phone1": "string", "phone2": "string", "currency": "string", "currencyNomenclature": "string", "currencyChangeValue": 0, "active": true, "email": "string", "shippingTerm": 0, "tags": [ … ], "vatDescription": "string", "discount1": 0, "paymentMethodId": 0, "paymentMethod": "string", "currencyCode": "string", "creationDate": "2019-08-24", "inactiveDate": "2019-08-24", "countryDescription": "string", "stateDescription": "string", "bankName": "string", "account": "string", "picture": "string", "pictureToken": "string", "modifiedOn": "2019-08-24T14:15:22Z", "web": "string" }, "supplierName": "ABC Suppliers Ltd.", "supplierAddress": 123, "supplierPhone": "+34 91 123 4567", "supplierEmail": "contact@abcsuppliers.com", "supplierCif": "B12345678", "deliveryNote": "DN-SUPP-2024-001", "packages": 5, "billingObservations": "Handle with care", "paymentMethod": { "id": 1, "code": 1, "description": "Transferencia bancaria", "document": "Contrato", "firstTerm": 30, "terms": 3, "daysTerms": 30, "remittance": true, "addToCustomerBase": true, "serveFullPrePaid": false, "observations": "Requiere verificación bancaria", "icon": "fa-credit-card", "facturaECode": "01" }, "firstTerm": 30, "daysTerm": 30, "terms": 3, "proximityType": "NEARBY", "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "shippingVatType": "STANDARD", "shippingVatPercentage": 21, "shippingSurchargePercentage": 5.2, "invoiceDocumentDate": "2024-08-05", "invoiceBillingSeriesCode": "A", "tags": [ "urgent", "priority" ], "invoiceEditObservations": "Invoice reviewed and approved" }
List of document lines. For structure, see ApiBaseLineWriteDto.java
Invoice editing observations
https://api.prana.software/api/v1/purchaseDeliveryNote/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/purchaseDeliveryNote/{id}' \
-H 'Content-Type: application/json' \
-d '{
"number": 1050,
"documentDate": "2025-08-07",
"quantityTotal": 120.5,
"observations": "Deliver to warehouse B",
"lines": [
{
"id": 1001,
"articleCombination": 5312,
"sizeRange": 15,
"assortment": 8,
"lineNumber": 1,
"articleDescription": "Cotton T-shirt - Blue",
"packages": 3,
"quantityPerPackage": 12,
"price": 19.99,
"lineObservations": "Special discount applied.",
"details": [
{
"id": 200,
"sizeRangeDetail": 15,
"width": 12,
"quantityPerPackage": 9.3
}
],
"packaging": 1001,
"discount": 10.5,
"vatPercentage": 21,
"reference": "REF-2024-001",
"picture": "product_image_001.jpg",
"noAccumulateWarehouse": false,
"warehouse": 3,
"assortedPackages": true,
"shippingVatType": "STANDARD",
"shippingVatPercentage": 21,
"shippingSurchargePercentage": 5.2,
"articleVatType": "STANDARD",
"surchargePercentage": 5.2,
"grossAmount": 1000,
"grossAmountCompanyCurrency": 1000,
"netAmount": 900,
"netAmountCompanyCurrency": 900,
"totalLine": 1089,
"totalLineCompanyCurrency": 1089,
"batchList": [
{
"id": 11,
"batch": "LOT-2025B",
"quantity": 75.5,
"packages": 2
}
],
"serialNumberList": [
{
"id": 12,
"serialNumber": "SN-20250807-XYZ"
}
],
"disbursement": false,
"concept": "Product purchase"
}
],
"id": 1001,
"billingSeries": 5,
"receivedDate": "2024-08-07",
"billCode": "BILL-2024-001",
"locked": false,
"warehouse": 3,
"reference": "DN-2024-001",
"noAccumulateWarehouse": false,
"supplier": 1001,
"deliveryNote": "DN-SUPP-2024-001",
"packages": 5,
"billingObservations": "Handle with care",
"paymentMethod": 3,
"firstTerm": 30,
"daysTerm": 30,
"terms": 3,
"proximityType": "NEARBY",
"withholding": 1,
"discount1": 10,
"discount2": 5,
"discountPp": 3,
"currency": 1,
"change": 1,
"customerVatType": 1,
"shippingVatType": "STANDARD",
"shippingTerm": 2,
"shippingVatPercentage": 21,
"shippingSurchargePercentage": 5.2,
"tags": [
"urgent",
"priority"
],
"invoiceEditObservations": "Delivery note reviewed and approved",
"purchasingAccount": 6000001
}'OK
Date of the document in ISO format (yyyy-MM-dd).
Free text field for any observations related to the document.
List of detail lines for the document. For structure see: ApiBaseLineReadDto.java
Total prompt payment discount amount in company currency
Total disbursement amount in company currency
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "change": 0.5, "discount1": 5, "discount2": 2, "discountAmountTotal": 100, "discountAmountTotalCompanyCurrency": 95, "discountPp": 3, "discountPpAmountTotal": 15, "discountPpAmountTotalCompanyCurrency": 14, "grossAmountTotal": 1200, "grossAmountTotalCompanyCurrency": 1150, "netAmountTotal": 1100, "netAmountTotalCompanyCurrency": 1080, "vatAmountTotal": 230, "vatAmountTotalCompanyCurrency": 225, "surchargeAmountTotal": 20, "surchargeAmountTotalCompanyCurrency": 18, "withholding": 2, "withholdingAmountTotal": 22, "withholdingAmountTotalCompanyCurrency": 21, "total": 1300, "totalCompanyCurrency": 1280, "disbursementAmountTotal": 50, "disbursementAmountTotalCompanyCurrency": 48, "billingSeries": { "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "deposit": true, "corrective": true }, "receivedDate": "2024-08-07", "billCode": "BILL-2024-001", "locked": false, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "reference": "DN-2024-001", "noAccumulateWarehouse": false, "supplier": { "id": 1, "code": 0, "cif": "string", "commercialName": "string", "name": "string", "address": "string", "country": "string", "state": "string", "postalCode": "string", "city": "string", "phone1": "string", "phone2": "string", "currency": "string", "currencyNomenclature": "string", "currencyChangeValue": 0, "active": true, "email": "string", "shippingTerm": 0, "tags": [ … ], "vatDescription": "string", "discount1": 0, "paymentMethodId": 0, "paymentMethod": "string", "currencyCode": "string", "creationDate": "2019-08-24", "inactiveDate": "2019-08-24", "countryDescription": "string", "stateDescription": "string", "bankName": "string", "account": "string", "picture": "string", "pictureToken": "string", "modifiedOn": "2019-08-24T14:15:22Z", "web": "string" }, "supplierName": "ABC Suppliers Ltd.", "supplierAddress": 123, "supplierPhone": "+34 91 123 4567", "supplierEmail": "contact@abcsuppliers.com", "supplierCif": "B12345678", "deliveryNote": "DN-SUPP-2024-001", "packages": 5, "billingObservations": "Handle with care", "paymentMethod": { "id": 1, "code": 1, "description": "Transferencia bancaria", "document": "Contrato", "firstTerm": 30, "terms": 3, "daysTerms": 30, "remittance": true, "addToCustomerBase": true, "serveFullPrePaid": false, "observations": "Requiere verificación bancaria", "icon": "fa-credit-card", "facturaECode": "01" }, "firstTerm": 30, "daysTerm": 30, "terms": 3, "proximityType": "NEARBY", "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "shippingVatType": "STANDARD", "shippingVatPercentage": 21, "shippingSurchargePercentage": 5.2, "invoiceDocumentDate": "2024-08-05", "invoiceBillingSeriesCode": "A", "tags": [ "urgent", "priority" ], "invoiceEditObservations": "Invoice reviewed and approved" }
https://api.prana.software/api/v1/purchaseDeliveryNote/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.prana.software/api/v1/purchaseDeliveryNote/{id}'List of document lines. For structure, see ApiBaseLineWriteDto.java
Invoice editing observations
https://api.prana.software/api/v1/purchaseDeliveryNote
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/purchaseDeliveryNote \
-H 'Content-Type: application/json' \
-d '{
"number": 1050,
"documentDate": "2025-08-07",
"quantityTotal": 120.5,
"observations": "Deliver to warehouse B",
"lines": [
{
"id": 1001,
"articleCombination": 5312,
"sizeRange": 15,
"assortment": 8,
"lineNumber": 1,
"articleDescription": "Cotton T-shirt - Blue",
"packages": 3,
"quantityPerPackage": 12,
"price": 19.99,
"lineObservations": "Special discount applied.",
"details": [
{
"id": 200,
"sizeRangeDetail": 15,
"width": 12,
"quantityPerPackage": 9.3
}
],
"packaging": 1001,
"discount": 10.5,
"vatPercentage": 21,
"reference": "REF-2024-001",
"picture": "product_image_001.jpg",
"noAccumulateWarehouse": false,
"warehouse": 3,
"assortedPackages": true,
"shippingVatType": "STANDARD",
"shippingVatPercentage": 21,
"shippingSurchargePercentage": 5.2,
"articleVatType": "STANDARD",
"surchargePercentage": 5.2,
"grossAmount": 1000,
"grossAmountCompanyCurrency": 1000,
"netAmount": 900,
"netAmountCompanyCurrency": 900,
"totalLine": 1089,
"totalLineCompanyCurrency": 1089,
"batchList": [
{
"id": 11,
"batch": "LOT-2025B",
"quantity": 75.5,
"packages": 2
}
],
"serialNumberList": [
{
"id": 12,
"serialNumber": "SN-20250807-XYZ"
}
],
"disbursement": false,
"concept": "Product purchase"
}
],
"id": 1001,
"billingSeries": 5,
"receivedDate": "2024-08-07",
"billCode": "BILL-2024-001",
"locked": false,
"warehouse": 3,
"reference": "DN-2024-001",
"noAccumulateWarehouse": false,
"supplier": 1001,
"deliveryNote": "DN-SUPP-2024-001",
"packages": 5,
"billingObservations": "Handle with care",
"paymentMethod": 3,
"firstTerm": 30,
"daysTerm": 30,
"terms": 3,
"proximityType": "NEARBY",
"withholding": 1,
"discount1": 10,
"discount2": 5,
"discountPp": 3,
"currency": 1,
"change": 1,
"customerVatType": 1,
"shippingVatType": "STANDARD",
"shippingTerm": 2,
"shippingVatPercentage": 21,
"shippingSurchargePercentage": 5.2,
"tags": [
"urgent",
"priority"
],
"invoiceEditObservations": "Delivery note reviewed and approved",
"purchasingAccount": 6000001
}'OK
Date of the document in ISO format (yyyy-MM-dd).
Free text field for any observations related to the document.
List of detail lines for the document. For structure see: ApiBaseLineReadDto.java
Total prompt payment discount amount in company currency
Total disbursement amount in company currency
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "change": 0.5, "discount1": 5, "discount2": 2, "discountAmountTotal": 100, "discountAmountTotalCompanyCurrency": 95, "discountPp": 3, "discountPpAmountTotal": 15, "discountPpAmountTotalCompanyCurrency": 14, "grossAmountTotal": 1200, "grossAmountTotalCompanyCurrency": 1150, "netAmountTotal": 1100, "netAmountTotalCompanyCurrency": 1080, "vatAmountTotal": 230, "vatAmountTotalCompanyCurrency": 225, "surchargeAmountTotal": 20, "surchargeAmountTotalCompanyCurrency": 18, "withholding": 2, "withholdingAmountTotal": 22, "withholdingAmountTotalCompanyCurrency": 21, "total": 1300, "totalCompanyCurrency": 1280, "disbursementAmountTotal": 50, "disbursementAmountTotalCompanyCurrency": 48, "billingSeries": { "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "deposit": true, "corrective": true }, "receivedDate": "2024-08-07", "billCode": "BILL-2024-001", "locked": false, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "reference": "DN-2024-001", "noAccumulateWarehouse": false, "supplier": { "id": 1, "code": 0, "cif": "string", "commercialName": "string", "name": "string", "address": "string", "country": "string", "state": "string", "postalCode": "string", "city": "string", "phone1": "string", "phone2": "string", "currency": "string", "currencyNomenclature": "string", "currencyChangeValue": 0, "active": true, "email": "string", "shippingTerm": 0, "tags": [ … ], "vatDescription": "string", "discount1": 0, "paymentMethodId": 0, "paymentMethod": "string", "currencyCode": "string", "creationDate": "2019-08-24", "inactiveDate": "2019-08-24", "countryDescription": "string", "stateDescription": "string", "bankName": "string", "account": "string", "picture": "string", "pictureToken": "string", "modifiedOn": "2019-08-24T14:15:22Z", "web": "string" }, "supplierName": "ABC Suppliers Ltd.", "supplierAddress": 123, "supplierPhone": "+34 91 123 4567", "supplierEmail": "contact@abcsuppliers.com", "supplierCif": "B12345678", "deliveryNote": "DN-SUPP-2024-001", "packages": 5, "billingObservations": "Handle with care", "paymentMethod": { "id": 1, "code": 1, "description": "Transferencia bancaria", "document": "Contrato", "firstTerm": 30, "terms": 3, "daysTerms": 30, "remittance": true, "addToCustomerBase": true, "serveFullPrePaid": false, "observations": "Requiere verificación bancaria", "icon": "fa-credit-card", "facturaECode": "01" }, "firstTerm": 30, "daysTerm": 30, "terms": 3, "proximityType": "NEARBY", "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "shippingVatType": "STANDARD", "shippingVatPercentage": 21, "shippingSurchargePercentage": 5.2, "invoiceDocumentDate": "2024-08-05", "invoiceBillingSeriesCode": "A", "tags": [ "urgent", "priority" ], "invoiceEditObservations": "Invoice reviewed and approved" }
https://api.prana.software/api/v1/purchaseDeliveryNote/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/purchaseDeliveryNote/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 }