API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/template-sale-invoice/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/template-sale-invoice/{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
Street address of the customer.
Description of the customer state.
Country description of the customer.
First customer phone number.
Second customer phone number.
Total amount of first discount in company currency
Total amount of second discount in company currency
Total amount of third discount in company currency
Total amount of fourth discount 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, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "billingSeries": { "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "deposit": true, "corrective": true }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "shippingVatType": "STANDARD", "shippingVatPercentage": 21, "shippingSurchargePercentage": 5, "shippingAmount": 25.5, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "customerAddress": { "id": 1, "code": 101, "customerCode": "C10001", "customerName": "Acme S.A.", "customerPostalCode": "03001", "customerAddress": "Avenida de la Estación, 5", "customerCity": "Alicante", "customerState": "A", "customerStateDescription": "Alicante", "customerCountry": "ES", "customerCountryDescription": "Spain", "customerFirstPhoneNumber": "+34965123456", "customerSecondPhoneNumber": "+34965111111", "customerEmail": "cliente@acme.es", "customerCif": "B12345678", "customerId": 10001, "customerCommercialName": "Acme España", "name": "Warehourse", "city": "Alicante", "state": "A", "stateDescription": "Alicante", "postalCode": "03001", "country": "ES", "countryDescription": "Spain", "address": "Street Example, 14", "firstPhoneNumber": "+34965123456", "secondPhoneNumber": "+34965111111", "email": "direccion@acme.es", "cif": "B12345678", "activity": "Wholesale", "brand": "Acme Main Brand", "brandId": 5010, "customerIsActive": true, "isActive": true }, "status": "PENDING", "validityDate": "2024-12-31", "serviceDate": "2024-01-15", "manufacturingDate": "2024-01-10", "valueDate": "2024-01-20", "season": { "id": 1, "code": "string", "description": "string", "isCurrent": true, "startDate": "2019-08-24", "endDate": "2019-08-24" }, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "representative1": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType1": "PERCENTAGE", "commission1": 5, "representative2": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType2": "PERCENTAGE", "commission2": 100, "representative3": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType3": "PERCENTAGE", "commission3": 2.5, "reference": "TEMP-2024-001", "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", "iban": "ES9121000418450200051332", "discount3": 3, "discount4": 2, "billingCompany": { "id": 1, "code": "C100", "cif": "B12345678", "name": "Clavei S.L.", "phone1": true, "email": "string", "logo": "string", "logoToken": "string" }, "packages": 5, "grossWeight": 25.5, "netWeight": 23, "volume": 0.5, "invoiceEditObservations": "Special packaging required", "collectedAmount": 1500, "collectedAmountCompanyCurrency": 1500, "tags": [ "recurring", "monthly" ], "discount1AmountTotal": 150, "discount1AmountTotalCompanyCurrency": 150, "discount2AmountTotal": 75, "discount2AmountTotalCompanyCurrency": 75, "discount3AmountTotal": 45, "discount3AmountTotalCompanyCurrency": 45, "discount4AmountTotal": 30, "discount4AmountTotalCompanyCurrency": 30, "active": true, "automaticGeneration": true, "automaticSending": false, "startDate": "2024-01-01", "endDate": "2024-12-31", "nextInvoice": "2024-02-01", "periodicInvoice": "DAILY" }
https://api.prana.software/api/v1/template-sale-invoice/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/template-sale-invoice/{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": 200,
"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
}
],
"concept": "string",
"assortedPackages": true,
"packaging": 0,
"discount": 0,
"rsp": 0,
"reference": "string",
"serviceDate": "2019-08-24",
"noAccumulateWarehouse": true,
"warehouse": 0,
"brand": 0,
"customCommission": true,
"representative1": 0,
"commissionType1": "PERCENTAGE",
"commission1": 0,
"representative2": 0,
"commissionType2": "PERCENTAGE",
"commission2": 0,
"representative3": 0,
"commissionType3": "PERCENTAGE",
"commission3": 0,
"freeDescription1": "string",
"freeDescription2": "string",
"freeDescription3": "string",
"freeDescription4": "string",
"freeDescription5": "string",
"articleVatType": "STANDARD",
"vatPercentage": 0,
"surchargePercentage": 0,
"disbursement": true
}
],
"id": 0,
"customerVatType": 0,
"billingSeries": 0,
"shippingTerm": 0,
"shippingAmount": 0,
"shippingVatType": "STANDARD",
"shippingVatPercentage": 0,
"shippingSurchargePercentage": 0,
"currency": 0,
"change": 0,
"rateCode": 0,
"customerAddress": 0,
"status": "PENDING",
"validityDate": "2019-08-24",
"serviceDate": "2019-08-24",
"manufacturingDate": "2019-08-24",
"valueDate": "2019-08-24",
"season": 0,
"warehouse": 0,
"representative1": 0,
"commissionType1": "string",
"commission1": 0,
"representative2": 0,
"commissionType2": "string",
"commission2": 0,
"representative3": 0,
"commissionType3": "string",
"commission3": 0,
"reference": "string",
"paymentMethod": 0,
"firstTerm": 0,
"daysTerm": 0,
"terms": 0,
"proximityType": "NEARBY",
"iban": "string",
"discount1": 0,
"discount2": 0,
"discount3": 0,
"discount4": 0,
"discountPp": 0,
"billingCompany": 0,
"withholding": 0,
"packages": 0,
"grossWeight": 0,
"netWeight": 0,
"volume": 0,
"invoiceEditObservations": "string",
"tags": [
"string"
],
"active": true,
"automaticGeneration": true,
"automaticSending": true,
"startDate": "2019-08-24",
"endDate": "2019-08-24",
"nextInvoice": "2019-08-24",
"periodicInvoice": "DAILY"
}'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
Street address of the customer.
Description of the customer state.
Country description of the customer.
First customer phone number.
Second customer phone number.
Total amount of first discount in company currency
Total amount of second discount in company currency
Total amount of third discount in company currency
Total amount of fourth discount 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, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "billingSeries": { "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "deposit": true, "corrective": true }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "shippingVatType": "STANDARD", "shippingVatPercentage": 21, "shippingSurchargePercentage": 5, "shippingAmount": 25.5, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "customerAddress": { "id": 1, "code": 101, "customerCode": "C10001", "customerName": "Acme S.A.", "customerPostalCode": "03001", "customerAddress": "Avenida de la Estación, 5", "customerCity": "Alicante", "customerState": "A", "customerStateDescription": "Alicante", "customerCountry": "ES", "customerCountryDescription": "Spain", "customerFirstPhoneNumber": "+34965123456", "customerSecondPhoneNumber": "+34965111111", "customerEmail": "cliente@acme.es", "customerCif": "B12345678", "customerId": 10001, "customerCommercialName": "Acme España", "name": "Warehourse", "city": "Alicante", "state": "A", "stateDescription": "Alicante", "postalCode": "03001", "country": "ES", "countryDescription": "Spain", "address": "Street Example, 14", "firstPhoneNumber": "+34965123456", "secondPhoneNumber": "+34965111111", "email": "direccion@acme.es", "cif": "B12345678", "activity": "Wholesale", "brand": "Acme Main Brand", "brandId": 5010, "customerIsActive": true, "isActive": true }, "status": "PENDING", "validityDate": "2024-12-31", "serviceDate": "2024-01-15", "manufacturingDate": "2024-01-10", "valueDate": "2024-01-20", "season": { "id": 1, "code": "string", "description": "string", "isCurrent": true, "startDate": "2019-08-24", "endDate": "2019-08-24" }, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "representative1": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType1": "PERCENTAGE", "commission1": 5, "representative2": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType2": "PERCENTAGE", "commission2": 100, "representative3": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType3": "PERCENTAGE", "commission3": 2.5, "reference": "TEMP-2024-001", "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", "iban": "ES9121000418450200051332", "discount3": 3, "discount4": 2, "billingCompany": { "id": 1, "code": "C100", "cif": "B12345678", "name": "Clavei S.L.", "phone1": true, "email": "string", "logo": "string", "logoToken": "string" }, "packages": 5, "grossWeight": 25.5, "netWeight": 23, "volume": 0.5, "invoiceEditObservations": "Special packaging required", "collectedAmount": 1500, "collectedAmountCompanyCurrency": 1500, "tags": [ "recurring", "monthly" ], "discount1AmountTotal": 150, "discount1AmountTotalCompanyCurrency": 150, "discount2AmountTotal": 75, "discount2AmountTotalCompanyCurrency": 75, "discount3AmountTotal": 45, "discount3AmountTotalCompanyCurrency": 45, "discount4AmountTotal": 30, "discount4AmountTotalCompanyCurrency": 30, "active": true, "automaticGeneration": true, "automaticSending": false, "startDate": "2024-01-01", "endDate": "2024-12-31", "nextInvoice": "2024-02-01", "periodicInvoice": "DAILY" }
https://api.prana.software/api/v1/template-sale-invoice/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.prana.software/api/v1/template-sale-invoice/{id}'https://api.prana.software/api/v1/template-sale-invoice
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/template-sale-invoice \
-H 'Content-Type: application/json' \
-d '{
"number": 1050,
"documentDate": "2025-08-07",
"quantityTotal": 120.5,
"observations": "Deliver to warehouse B",
"lines": [
{
"id": 1001,
"articleCombination": 200,
"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
}
],
"concept": "string",
"assortedPackages": true,
"packaging": 0,
"discount": 0,
"rsp": 0,
"reference": "string",
"serviceDate": "2019-08-24",
"noAccumulateWarehouse": true,
"warehouse": 0,
"brand": 0,
"customCommission": true,
"representative1": 0,
"commissionType1": "PERCENTAGE",
"commission1": 0,
"representative2": 0,
"commissionType2": "PERCENTAGE",
"commission2": 0,
"representative3": 0,
"commissionType3": "PERCENTAGE",
"commission3": 0,
"freeDescription1": "string",
"freeDescription2": "string",
"freeDescription3": "string",
"freeDescription4": "string",
"freeDescription5": "string",
"articleVatType": "STANDARD",
"vatPercentage": 0,
"surchargePercentage": 0,
"disbursement": true
}
],
"id": 0,
"customerVatType": 0,
"billingSeries": 0,
"shippingTerm": 0,
"shippingAmount": 0,
"shippingVatType": "STANDARD",
"shippingVatPercentage": 0,
"shippingSurchargePercentage": 0,
"currency": 0,
"change": 0,
"rateCode": 0,
"customerAddress": 0,
"status": "PENDING",
"validityDate": "2019-08-24",
"serviceDate": "2019-08-24",
"manufacturingDate": "2019-08-24",
"valueDate": "2019-08-24",
"season": 0,
"warehouse": 0,
"representative1": 0,
"commissionType1": "string",
"commission1": 0,
"representative2": 0,
"commissionType2": "string",
"commission2": 0,
"representative3": 0,
"commissionType3": "string",
"commission3": 0,
"reference": "string",
"paymentMethod": 0,
"firstTerm": 0,
"daysTerm": 0,
"terms": 0,
"proximityType": "NEARBY",
"iban": "string",
"discount1": 0,
"discount2": 0,
"discount3": 0,
"discount4": 0,
"discountPp": 0,
"billingCompany": 0,
"withholding": 0,
"packages": 0,
"grossWeight": 0,
"netWeight": 0,
"volume": 0,
"invoiceEditObservations": "string",
"tags": [
"string"
],
"active": true,
"automaticGeneration": true,
"automaticSending": true,
"startDate": "2019-08-24",
"endDate": "2019-08-24",
"nextInvoice": "2019-08-24",
"periodicInvoice": "DAILY"
}'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
Street address of the customer.
Description of the customer state.
Country description of the customer.
First customer phone number.
Second customer phone number.
Total amount of first discount in company currency
Total amount of second discount in company currency
Total amount of third discount in company currency
Total amount of fourth discount 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, "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "billingSeries": { "id": 1, "type": "SALE", "code": "SER2025", "description": "Main invoice series", "deposit": true, "corrective": true }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "shippingVatType": "STANDARD", "shippingVatPercentage": 21, "shippingSurchargePercentage": 5, "shippingAmount": 25.5, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "customerAddress": { "id": 1, "code": 101, "customerCode": "C10001", "customerName": "Acme S.A.", "customerPostalCode": "03001", "customerAddress": "Avenida de la Estación, 5", "customerCity": "Alicante", "customerState": "A", "customerStateDescription": "Alicante", "customerCountry": "ES", "customerCountryDescription": "Spain", "customerFirstPhoneNumber": "+34965123456", "customerSecondPhoneNumber": "+34965111111", "customerEmail": "cliente@acme.es", "customerCif": "B12345678", "customerId": 10001, "customerCommercialName": "Acme España", "name": "Warehourse", "city": "Alicante", "state": "A", "stateDescription": "Alicante", "postalCode": "03001", "country": "ES", "countryDescription": "Spain", "address": "Street Example, 14", "firstPhoneNumber": "+34965123456", "secondPhoneNumber": "+34965111111", "email": "direccion@acme.es", "cif": "B12345678", "activity": "Wholesale", "brand": "Acme Main Brand", "brandId": 5010, "customerIsActive": true, "isActive": true }, "status": "PENDING", "validityDate": "2024-12-31", "serviceDate": "2024-01-15", "manufacturingDate": "2024-01-10", "valueDate": "2024-01-20", "season": { "id": 1, "code": "string", "description": "string", "isCurrent": true, "startDate": "2019-08-24", "endDate": "2019-08-24" }, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "representative1": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType1": "PERCENTAGE", "commission1": 5, "representative2": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType2": "PERCENTAGE", "commission2": 100, "representative3": { "id": 1, "code": 0, "name": "string", "cif": "string", "population": "string", "country": "string", "state": "string", "phone1": "string", "phone2": "string", "email": "string", "commission": 0, "commissionType": "PERCENTAGE", "irpfPercentage": 0, "vatPercentage": 0, "subAgentOf": "string", "userB2bMobility": "string", "enableB2bMobility": true }, "commissionType3": "PERCENTAGE", "commission3": 2.5, "reference": "TEMP-2024-001", "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", "iban": "ES9121000418450200051332", "discount3": 3, "discount4": 2, "billingCompany": { "id": 1, "code": "C100", "cif": "B12345678", "name": "Clavei S.L.", "phone1": true, "email": "string", "logo": "string", "logoToken": "string" }, "packages": 5, "grossWeight": 25.5, "netWeight": 23, "volume": 0.5, "invoiceEditObservations": "Special packaging required", "collectedAmount": 1500, "collectedAmountCompanyCurrency": 1500, "tags": [ "recurring", "monthly" ], "discount1AmountTotal": 150, "discount1AmountTotalCompanyCurrency": 150, "discount2AmountTotal": 75, "discount2AmountTotalCompanyCurrency": 75, "discount3AmountTotal": 45, "discount3AmountTotalCompanyCurrency": 45, "discount4AmountTotal": 30, "discount4AmountTotalCompanyCurrency": 30, "active": true, "automaticGeneration": true, "automaticSending": false, "startDate": "2024-01-01", "endDate": "2024-12-31", "nextInvoice": "2024-02-01", "periodicInvoice": "DAILY" }
https://api.prana.software/api/v1/template-sale-invoice/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/template-sale-invoice/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
}'OK
List of data items for the current page
Total discount amount (PP) in company currency
Total discount amount in company currency
Currency significant decimals for documents
Currency intermediate decimals for documents
Currency decimals for calculating prices
Currency decimals for calculating costs
{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }