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/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
Type of proximity for the delivery
VAT type for shipping costs
{ "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": false, "otherSIF": false }, "receivedDate": "2024-08-07", "billCode": "BILL-2024-001", "locked": false, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse", "population": "Madrid", "active": true }, "reference": "DN-2024-001", "noAccumulateWarehouse": false, "supplier": { "id": 1, "code": 20001, "cif": "B87654321", "commercialName": "Supplier Corp", "name": "Supplier Corporation S.L.", "address": "Calle Mayor, 10", "country": "ES", "state": "MAD", "postalCode": 28001, "city": "Madrid", "phone1": "+34911222333", "phone2": "+34911444555", "currency": "EUR", "currencyNomenclature": "Euro", "currencyChangeValue": 1, "active": true, "email": "contact@suppliercorp.com", "shippingTerm": 15, "tags": [ … ], "vatDescription": "IVA General 21%", "discount1": 3.5, "paymentMethodId": 3, "paymentMethod": "Bank Transfer", "currencyCode": "EUR", "creationDate": "2021-03-15", "inactiveDate": "2024-10-01", "countryDescription": "España", "stateDescription": "Madrid", "bankName": "BBVA", "account": "ES7921000813610123456789", "picture": "https://www.suppliercorp.com/logo.png", "pictureToken": "a1b2c3d4e5f6", "modifiedOn": "2024-12-10T14:30:00+01:00", "web": "https://www.suppliercorp.com" }, "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
Type of proximity for the delivery
VAT type for shipping costs
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
Type of proximity for the delivery
VAT type for shipping costs
{ "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": false, "otherSIF": false }, "receivedDate": "2024-08-07", "billCode": "BILL-2024-001", "locked": false, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse", "population": "Madrid", "active": true }, "reference": "DN-2024-001", "noAccumulateWarehouse": false, "supplier": { "id": 1, "code": 20001, "cif": "B87654321", "commercialName": "Supplier Corp", "name": "Supplier Corporation S.L.", "address": "Calle Mayor, 10", "country": "ES", "state": "MAD", "postalCode": 28001, "city": "Madrid", "phone1": "+34911222333", "phone2": "+34911444555", "currency": "EUR", "currencyNomenclature": "Euro", "currencyChangeValue": 1, "active": true, "email": "contact@suppliercorp.com", "shippingTerm": 15, "tags": [ … ], "vatDescription": "IVA General 21%", "discount1": 3.5, "paymentMethodId": 3, "paymentMethod": "Bank Transfer", "currencyCode": "EUR", "creationDate": "2021-03-15", "inactiveDate": "2024-10-01", "countryDescription": "España", "stateDescription": "Madrid", "bankName": "BBVA", "account": "ES7921000813610123456789", "picture": "https://www.suppliercorp.com/logo.png", "pictureToken": "a1b2c3d4e5f6", "modifiedOn": "2024-12-10T14:30:00+01:00", "web": "https://www.suppliercorp.com" }, "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
Type of proximity for the delivery
VAT type for shipping costs
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
Type of proximity for the delivery
VAT type for shipping costs
{ "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": false, "otherSIF": false }, "receivedDate": "2024-08-07", "billCode": "BILL-2024-001", "locked": false, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse", "population": "Madrid", "active": true }, "reference": "DN-2024-001", "noAccumulateWarehouse": false, "supplier": { "id": 1, "code": 20001, "cif": "B87654321", "commercialName": "Supplier Corp", "name": "Supplier Corporation S.L.", "address": "Calle Mayor, 10", "country": "ES", "state": "MAD", "postalCode": 28001, "city": "Madrid", "phone1": "+34911222333", "phone2": "+34911444555", "currency": "EUR", "currencyNomenclature": "Euro", "currencyChangeValue": 1, "active": true, "email": "contact@suppliercorp.com", "shippingTerm": 15, "tags": [ … ], "vatDescription": "IVA General 21%", "discount1": 3.5, "paymentMethodId": 3, "paymentMethod": "Bank Transfer", "currencyCode": "EUR", "creationDate": "2021-03-15", "inactiveDate": "2024-10-01", "countryDescription": "España", "stateDescription": "Madrid", "bankName": "BBVA", "account": "ES7921000813610123456789", "picture": "https://www.suppliercorp.com/logo.png", "pictureToken": "a1b2c3d4e5f6", "modifiedOn": "2024-12-10T14:30:00+01:00", "web": "https://www.suppliercorp.com" }, "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 }