API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/service/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/service/{id}'OK
Description of the article
List of observations about the article
List of tags associated with the article
Secondary description of the article
Indicates if serial number control is enabled for the article
{ "id": 1, "code": "ART123", "description": "Premium leather jacket", "vatType": "STANDARD", "height": 10.5, "width": 20.3, "depth": 5.2, "grossWeight": 1.75, "netWeight": 1.5, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "accumulateWarehouse": true, "unitWarehouse": { "id": 1, "code": "string", "description": "string", "isoCode": "MTR" }, "salesAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "purchasingAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "baseCombination": { "id": 1, "defaultArticleCombinationSupplier": { … }, "defaultItemSaleRate": { … }, "defaultEan": { … }, "article": "ART-00123", "articleId": 1024, "articleType": "MERCHANDISE", "unitWarehouseId": 15, "articleDescription": "Men's cotton T-shirt, size L", "attribute1": { … }, "attribute2": { … }, "attribute3": { … }, "attribute4": { … }, "attribute5": { … }, "seasonId": 2024, "season": "Spring/Summer 2024", "category1": "Clothing", "category2": "Men's Wear", "category3": "T-Shirts", "category4": "Casual", "description": "Short-sleeve cotton T-shirt with round neck.", "active": true, "articleVatType": "STANDARD", "assortment": { … }, "sizeRange": { … }, "serialNumberControl": false, "batchControl": true }, "articleCombinations": [ { … } ], "observations": [ { … } ], "files": [ { … } ], "tags": [ "premium", "leather", "fashion" ], "showAttribute1": true, "showAttribute2": false, "showAttribute3": false, "showAttribute4": false, "showAttribute5": false, "stockQuantity": 100.5, "salesQuantity": 75, "cancelledQuantity": 5, "outboundQuantity": 80, "pendingDeliveryQuantity": 25, "purchaseQuantity": 150, "providerCancelledQuantity": 10, "inboundQuantity": 120, "pendingReceiptQuantity": 30, "description2": "Available in multiple colors", "articleType": "MERCHANDISE", "phytosanitaryProduct": { "id": 1, "code": "string", "description": "string", "headline": "string", "form": "string", "cancellationDate": "2019-08-24", "saleDeadline": "2019-08-24" }, "batchControl": true, "serialNumberControl": false, "category1": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category2": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category3": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category4": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" } }
Description of the article
List of tags associated with the article
Secondary description of the article
Indicates if serial number control is enabled for the article
https://api.prana.software/api/v1/service/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/service/{id}' \
-H 'Content-Type: application/json' \
-d '{
"baseCombination": 1,
"code": "ART123",
"description": "Premium leather jacket",
"vatType": "STANDARD",
"height": 10.5,
"width": 20.3,
"depth": 5.2,
"grossWeight": 1.75,
"netWeight": 1.5,
"warehouse": 1,
"accumulateWarehouse": true,
"unitWarehouse": 2,
"salesAccount": 401,
"purchasingAccount": 601,
"articleCombinations": [
{
"id": 123,
"defaultArticleCombinationSupplier": 5,
"defaultItemSaleRate": 2,
"defaultEan": 1,
"article": 1001,
"attribute1": 15,
"attribute2": 22,
"attribute3": 33,
"attribute4": 44,
"attribute5": 55,
"active": true,
"creationDate": "2025-01-15",
"inactiveDate": "2025-12-31",
"ean": 8412345678901,
"minimum": 0,
"articleCombinationSuppliers": [
{
"id": 123,
"articleCombination": 456,
"supplierCode": "SUP001",
"supplierReference": "REF123",
"supplierPrice": 29.99,
"currency": "EUR",
"mainSupplier": true,
"purchasingNotes": "Order in advance during peak season",
"supplier": 789,
"usual": true,
"purchasePrice": 25.99,
"unitType": 1,
"sizeRange": 101,
"changeDate": "2023-05-15",
"previousPrice": 24.5,
"netPrice": 21.48,
"netPriceInCompanyCurrency": 19.5,
"bomPrice": 18.75,
"bomPriceInCompanyCurrency": 17,
"minimumPurchase": 10,
"yourReference": "REF-T101",
"discount": 5,
"waitTime": 5,
"observations": "Special packaging required",
"futurePrice": 23.99,
"multiplesOf": 5
}
],
"itemSaleRates": [
{
"id": 101,
"rate": 7,
"articleCombination": 24,
"price": 31.2,
"price2": 29.99,
"rateCode": 42,
"season": 2025,
"sizeRange": 3
}
],
"articleCombinationSizeRanges": [
{
"id": 123,
"articleCombination": 456,
"sizeRange": 789,
"assortment": 101,
"inactive": false,
"height": 10.5,
"width": 20.3,
"depth": 15.7,
"grossWeight": 500.25,
"netWeight": 450.75,
"ean": 8412345678901,
"cactive": true
}
],
"season": 0,
"manufactured": true,
"maxProductionOrder": 0,
"maxSizePrint": 0,
"bought": true,
"dontOrder": true,
"description": "string",
"observations": "string",
"family": 0,
"activeB2B": true,
"availabilityB2B": "STOCK",
"visibleDateB2B": "2019-08-24",
"dtoB2B": 0,
"activeMobility": true,
"activeTPV": true,
"activePrestashop": true,
"maximum": 0,
"tariffItem": "string",
"pictures": [
{
"id": 0,
"token": "string",
"pictureFileName": "string",
"pictureFileExtension": "string",
"viewOrder": 0
}
]
}
],
"observations": [
{
"id": 0,
"title": "string",
"description": "string"
}
],
"files": [
{
"id": 0,
"token": "string",
"fileName": "string",
"fileExtension": "string",
"fileSize": 0
}
],
"tags": [
"premium",
"leather",
"fashion"
],
"showAttribute1": true,
"showAttribute2": false,
"showAttribute3": false,
"showAttribute4": false,
"showAttribute5": false,
"stockQuantity": 0,
"salesQuantity": 0,
"cancelledQuantity": 0,
"outboundQuantity": 0,
"pendingDeliveryQuantity": 0,
"purchaseQuantity": 0,
"providerCancelledQuantity": 0,
"inboundQuantity": 0,
"pendingReceiptQuantity": 0,
"description2": "Available in multiple colors",
"articleType": "MERCHANDISE",
"batchControl": true,
"serialNumberControl": false,
"category1": 1,
"category2": 2,
"category3": 3,
"category4": 4,
"phytosanitaryProduct": 101
}'OK
Description of the article
List of observations about the article
List of tags associated with the article
Secondary description of the article
Indicates if serial number control is enabled for the article
{ "id": 1, "code": "ART123", "description": "Premium leather jacket", "vatType": "STANDARD", "height": 10.5, "width": 20.3, "depth": 5.2, "grossWeight": 1.75, "netWeight": 1.5, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "accumulateWarehouse": true, "unitWarehouse": { "id": 1, "code": "string", "description": "string", "isoCode": "MTR" }, "salesAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "purchasingAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "baseCombination": { "id": 1, "defaultArticleCombinationSupplier": { … }, "defaultItemSaleRate": { … }, "defaultEan": { … }, "article": "ART-00123", "articleId": 1024, "articleType": "MERCHANDISE", "unitWarehouseId": 15, "articleDescription": "Men's cotton T-shirt, size L", "attribute1": { … }, "attribute2": { … }, "attribute3": { … }, "attribute4": { … }, "attribute5": { … }, "seasonId": 2024, "season": "Spring/Summer 2024", "category1": "Clothing", "category2": "Men's Wear", "category3": "T-Shirts", "category4": "Casual", "description": "Short-sleeve cotton T-shirt with round neck.", "active": true, "articleVatType": "STANDARD", "assortment": { … }, "sizeRange": { … }, "serialNumberControl": false, "batchControl": true }, "articleCombinations": [ { … } ], "observations": [ { … } ], "files": [ { … } ], "tags": [ "premium", "leather", "fashion" ], "showAttribute1": true, "showAttribute2": false, "showAttribute3": false, "showAttribute4": false, "showAttribute5": false, "stockQuantity": 100.5, "salesQuantity": 75, "cancelledQuantity": 5, "outboundQuantity": 80, "pendingDeliveryQuantity": 25, "purchaseQuantity": 150, "providerCancelledQuantity": 10, "inboundQuantity": 120, "pendingReceiptQuantity": 30, "description2": "Available in multiple colors", "articleType": "MERCHANDISE", "phytosanitaryProduct": { "id": 1, "code": "string", "description": "string", "headline": "string", "form": "string", "cancellationDate": "2019-08-24", "saleDeadline": "2019-08-24" }, "batchControl": true, "serialNumberControl": false, "category1": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category2": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category3": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category4": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" } }
Description of the article
List of tags associated with the article
Secondary description of the article
Indicates if serial number control is enabled for the article
https://api.prana.software/api/v1/service
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/service \
-H 'Content-Type: application/json' \
-d '{
"baseCombination": 1,
"code": "ART123",
"description": "Premium leather jacket",
"vatType": "STANDARD",
"height": 10.5,
"width": 20.3,
"depth": 5.2,
"grossWeight": 1.75,
"netWeight": 1.5,
"warehouse": 1,
"accumulateWarehouse": true,
"unitWarehouse": 2,
"salesAccount": 401,
"purchasingAccount": 601,
"articleCombinations": [
{
"id": 123,
"defaultArticleCombinationSupplier": 5,
"defaultItemSaleRate": 2,
"defaultEan": 1,
"article": 1001,
"attribute1": 15,
"attribute2": 22,
"attribute3": 33,
"attribute4": 44,
"attribute5": 55,
"active": true,
"creationDate": "2025-01-15",
"inactiveDate": "2025-12-31",
"ean": 8412345678901,
"minimum": 0,
"articleCombinationSuppliers": [
{
"id": 123,
"articleCombination": 456,
"supplierCode": "SUP001",
"supplierReference": "REF123",
"supplierPrice": 29.99,
"currency": "EUR",
"mainSupplier": true,
"purchasingNotes": "Order in advance during peak season",
"supplier": 789,
"usual": true,
"purchasePrice": 25.99,
"unitType": 1,
"sizeRange": 101,
"changeDate": "2023-05-15",
"previousPrice": 24.5,
"netPrice": 21.48,
"netPriceInCompanyCurrency": 19.5,
"bomPrice": 18.75,
"bomPriceInCompanyCurrency": 17,
"minimumPurchase": 10,
"yourReference": "REF-T101",
"discount": 5,
"waitTime": 5,
"observations": "Special packaging required",
"futurePrice": 23.99,
"multiplesOf": 5
}
],
"itemSaleRates": [
{
"id": 101,
"rate": 7,
"articleCombination": 24,
"price": 31.2,
"price2": 29.99,
"rateCode": 42,
"season": 2025,
"sizeRange": 3
}
],
"articleCombinationSizeRanges": [
{
"id": 123,
"articleCombination": 456,
"sizeRange": 789,
"assortment": 101,
"inactive": false,
"height": 10.5,
"width": 20.3,
"depth": 15.7,
"grossWeight": 500.25,
"netWeight": 450.75,
"ean": 8412345678901,
"cactive": true
}
],
"season": 0,
"manufactured": true,
"maxProductionOrder": 0,
"maxSizePrint": 0,
"bought": true,
"dontOrder": true,
"description": "string",
"observations": "string",
"family": 0,
"activeB2B": true,
"availabilityB2B": "STOCK",
"visibleDateB2B": "2019-08-24",
"dtoB2B": 0,
"activeMobility": true,
"activeTPV": true,
"activePrestashop": true,
"maximum": 0,
"tariffItem": "string",
"pictures": [
{
"id": 0,
"token": "string",
"pictureFileName": "string",
"pictureFileExtension": "string",
"viewOrder": 0
}
]
}
],
"observations": [
{
"id": 0,
"title": "string",
"description": "string"
}
],
"files": [
{
"id": 0,
"token": "string",
"fileName": "string",
"fileExtension": "string",
"fileSize": 0
}
],
"tags": [
"premium",
"leather",
"fashion"
],
"showAttribute1": true,
"showAttribute2": false,
"showAttribute3": false,
"showAttribute4": false,
"showAttribute5": false,
"stockQuantity": 0,
"salesQuantity": 0,
"cancelledQuantity": 0,
"outboundQuantity": 0,
"pendingDeliveryQuantity": 0,
"purchaseQuantity": 0,
"providerCancelledQuantity": 0,
"inboundQuantity": 0,
"pendingReceiptQuantity": 0,
"description2": "Available in multiple colors",
"articleType": "MERCHANDISE",
"batchControl": true,
"serialNumberControl": false,
"category1": 1,
"category2": 2,
"category3": 3,
"category4": 4,
"phytosanitaryProduct": 101
}'OK
Description of the article
List of observations about the article
List of tags associated with the article
Secondary description of the article
Indicates if serial number control is enabled for the article
{ "id": 1, "code": "ART123", "description": "Premium leather jacket", "vatType": "STANDARD", "height": 10.5, "width": 20.3, "depth": 5.2, "grossWeight": 1.75, "netWeight": 1.5, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "accumulateWarehouse": true, "unitWarehouse": { "id": 1, "code": "string", "description": "string", "isoCode": "MTR" }, "salesAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "purchasingAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "baseCombination": { "id": 1, "defaultArticleCombinationSupplier": { … }, "defaultItemSaleRate": { … }, "defaultEan": { … }, "article": "ART-00123", "articleId": 1024, "articleType": "MERCHANDISE", "unitWarehouseId": 15, "articleDescription": "Men's cotton T-shirt, size L", "attribute1": { … }, "attribute2": { … }, "attribute3": { … }, "attribute4": { … }, "attribute5": { … }, "seasonId": 2024, "season": "Spring/Summer 2024", "category1": "Clothing", "category2": "Men's Wear", "category3": "T-Shirts", "category4": "Casual", "description": "Short-sleeve cotton T-shirt with round neck.", "active": true, "articleVatType": "STANDARD", "assortment": { … }, "sizeRange": { … }, "serialNumberControl": false, "batchControl": true }, "articleCombinations": [ { … } ], "observations": [ { … } ], "files": [ { … } ], "tags": [ "premium", "leather", "fashion" ], "showAttribute1": true, "showAttribute2": false, "showAttribute3": false, "showAttribute4": false, "showAttribute5": false, "stockQuantity": 100.5, "salesQuantity": 75, "cancelledQuantity": 5, "outboundQuantity": 80, "pendingDeliveryQuantity": 25, "purchaseQuantity": 150, "providerCancelledQuantity": 10, "inboundQuantity": 120, "pendingReceiptQuantity": 30, "description2": "Available in multiple colors", "articleType": "MERCHANDISE", "phytosanitaryProduct": { "id": 1, "code": "string", "description": "string", "headline": "string", "form": "string", "cancellationDate": "2019-08-24", "saleDeadline": "2019-08-24" }, "batchControl": true, "serialNumberControl": false, "category1": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category2": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category3": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" }, "category4": { "id": 1, "code": "FOOTWEAR", "description": "Footwear and shoes" } }
https://api.prana.software/api/v1/service/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/service/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 }