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
Customer associated with the order
Invoice address
Shipping address associated with the order
- https://api.prana.software/api/v1/ecommerce/order
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.prana.software/api/v1/ecommerce/order?shopId=0' \
-H 'Content-Type: application/json' \
-d '{
"cmsOrderId": 0,
"payment": "Transferencia",
"dateAdd": "2019-08-24",
"totalShippingTaxExcl": 0,
"totalShippingTaxIncl": 0,
"gift": true,
"giftMessage": "string",
"cms": "string",
"reference": "string",
"messageOrder": "string",
"totalDiscountsTaxExcl": 0,
"totalDiscountsTaxIncl": 0,
"customer": {
"cmsCustomerId": 0,
"defaultGroup": 0,
"company": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"note": "string"
},
"addressDelivery": {
"cmsCustomerAddressId": 0,
"alias": "string",
"address1": "string",
"address2": "string",
"dni": "string",
"city": "string",
"countryIso": "string",
"stateIso": "string",
"other": "string",
"phone": "string",
"phoneMobile": "string",
"postCode": "string",
"company": 0,
"firstName": "string",
"lastName": "string"
},
"addressInvoice": {
"cmsCustomerAddressId": 0,
"alias": "string",
"address1": "string",
"address2": "string",
"dni": "string",
"city": "string",
"countryIso": "string",
"stateIso": "string",
"other": "string",
"phone": "string",
"phoneMobile": "string",
"postCode": "string",
"company": 0,
"firstName": "string",
"lastName": "string"
},
"orderCartRules": [
{
"name": "string",
"valueTaxExcl": 0,
"valueTaxIncl": 0,
"code": "string"
}
],
"orderDetails": [
{
"reference": "string",
"description": "string",
"quantity": 0,
"priceWithoutTax": 0,
"priceWithTax": 0,
"reduction": 0
}
]
}'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
Type of commission for primary representative
Type of commission for secondary representative
Type of commission for tertiary representative
VAT type for shipping
{ "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 }, "serviceDate": "2024-01-15", "manufacturingDate": "2024-01-10", "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", "population": "Madrid", "active": true }, "customerAddress": { "id": 1, "code": 101, "customerCode": "C10001", "customerName": "Acme S.A.", "customerId": 10001, "customerVatTypeId": 1, "customerCommercialName": "Acme España", "customerEmail": "info@acme.es", "name": "Headquarters", "city": "Alicante", "stateId": "A", "state": "Valencia", "stateDescription": "A full state description", "postalCode": "03001", "countryId": "ES", "country": "Spain", "countryDescription": "España (Spain)", "address": "Main Street, 22", "firstPhoneNumber": "+34965123456", "cif": "B12345678", "representative1": "John Smith", "representative2": "Mary Brown", "representative3": "Walter Doe", "representative4": "Ana White", "representative5": "Lucas Black", "representative1Id": 14, "representative2Id": 15, "representative3Id": 16, "representative4Id": 17, "representative5Id": 18, "activity": "Wholesale", "brand": { … }, "customerIsActive": true, "isActive": true, "classificationObservation": { … }, "hasUnpaidReceipts": false, "defaultAddress": false, "shippingTermId": 1 }, "orderType": { "id": 1, "code": "string", "noRiskAccumulation": true }, "rateCode": { "id": 1, "code": "string", "taxesIncluded": true }, "reference": "PED-2024-001", "billingObservations": "Special handling required", "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", "discount3": 3, "discount4": 2, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "iban": "ES9121000418450200051332", "customerVatType": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "billingCompany": { "id": 1, "code": "C100", "cif": "B12345678", "name": "Clavei S.L.", "phone1": true, "email": "string", "logo": "string", "logoToken": "string" }, "collectedAmount": 1500, "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, "valueDate": "2024-01-20", "agency": { "id": 1, "code": "AG001", "name": "Fast Transport Agency" }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "shippingVatType": "STANDARD", "shippingVatPercentage": 21, "shippingSurchargePercentage": 5, "shippingAmount": 25.5, "packages": 5, "grossWeight": 25.5, "netWeight": 23, "volume": 0.5, "noAccumulateWarehouse": false, "cancelledQuantityTotal": 5, "servedQuantityTotal": 20, "pendingQuantityTotal": 10, "collectedAmountCompanyCurrency": 1500, "pendingAmountTotal": 500, "pendingAmountTotalCompanyCurrency": 500, "noAccumulateRisk": false, "locked": false, "netAmountPendingTotal": 500, "cmsOrderId": 0 }