Skip to content

Prana API (1.0)

API Definition to interact with Prana platform

Download OpenAPI description
Languages
Servers

https://api.prana.software/

Stock Regularization

Manage your Stock Regularizations

Operations

Request

Create a new stock regularization.

Bodyapplication/jsonrequired
numberinteger

Unique serial number of the document header.

Example: 1050
documentDatestring(date)

Date of the document in ISO format (yyyy-MM-dd).

Example: "2025-08-07"
quantityTotalnumber

Total quantity of all document lines.

Example: 120.5
observationsstring

Free text for header observations.

Example: "Deliver to warehouse B"
linesArray of objects(ApiStockRegularizationLineWriteDto)

List of document lines. For structure, see ApiBaseLineWriteDto.java

idinteger(int32)

Unique identifier of the stock regularization

Example: 1
warehouseinteger(int32)

Warehouse identifier

Example: 5
valuationTypestring(ApiValuationTypeEnum)
Enum"AVERAGE_COST_PRICE""GROSS_PRICE_CURRENT_COST""NET_PRICE_CURRENT_COST"
Example: "FIFO"
doRegularizationboolean

Flag indicating if the regularization should be executed

Example: true
curl -i -X POST \
  https://api.prana.software/api/v1/stock-regularization \
  -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,
            "quantityAccumulated": 0,
            "quantityReal": 0
          }
        ],
        "totalLine": 0,
        "totalQuantityAccumulated": 0,
        "totalQuantityReal": 0,
        "accumulateInto": "STOCK",
        "batchList": [
          {
            "id": 11,
            "batch": "LOT-2025B",
            "quantity": 75.5,
            "packages": 2
          }
        ],
        "serialNumberList": [
          {
            "id": 12,
            "serialNumber": "SN-20250807-XYZ"
          }
        ]
      }
    ],
    "id": 1,
    "warehouse": 5,
    "valuationType": "AVERAGE_COST_PRICE",
    "doRegularization": true
  }'

Responses

OK

Bodyapplication/json
idinteger(int32)required

Unique identifier of the entity

Example: 1
numberintegerrequired

Unique serial number of the document header.

Example: 1001
documentDatestring(date)required

Date of the document in ISO format (yyyy-MM-dd).

Example: "2024-08-07"
quantityTotalnumber

Total quantity for all document lines.

Example: 200.5
observationsstring

Free text field for any observations related to the document.

Example: "Customer requested urgent delivery"
linesArray of objects(ApiStockRegularizationLineReadDto)

List of detail lines for the document. For structure see: ApiBaseLineReadDto.java

stockRegularizatedDatestring(date)

Date when the stock regularization was completed

Example: "2024-01-16"
stockRegularizatedboolean

Flag indicating if the stock regularization has been completed

Example: true
warehouseobject(ApiWarehouseListReadDto)
valuationTypestring(ApiValuationTypeEnum)
Enum"AVERAGE_COST_PRICE""GROSS_PRICE_CURRENT_COST""NET_PRICE_CURRENT_COST"
Example: "FIFO"
Response
application/json
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "stockRegularizatedDate": "2024-01-16", "stockRegularizated": true, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "valuationType": "AVERAGE_COST_PRICE" }

Request

Get all your stock regularizations.

Bodyapplication/jsonrequired
conditionobject(ApiCondition)
sortCriteriaArray of objects(ApiSortDto)

List of sorting criteria to apply

pageNumberinteger(int32)required

Page number to retrieve (0-based)

Example: 0
pageSizeinteger(int32)required

Number of items per page

Example: 20
curl -i -X POST \
  https://api.prana.software/api/v1/stock-regularization/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
  }'

Responses

OK

Bodyapplication/json
dataArray of objects(ApiStockRegularizationListReadDto)required

List of data items for the current page

data[].​idinteger(int32)required

Unique identifier of the entity

Example: 1
data[].​numberinteger(int32)

Regularization number

Example: "REG-2024-001"
data[].​documentDatestring(date)

Document date

Example: "2024-01-15"
data[].​stockRegularizatedDatestring(date)

Date when the stock regularization was completed

Example: "2024-01-16"
data[].​stockRegularizatedboolean

Flag indicating if the stock regularization has been completed

Example: true
data[].​warehousestring

Warehouse name

Example: "Main Warehouse"
data[].​observationsstring

Observations about the regularization

Example: "Annual stock adjustment"
data[].​quantityTotalnumber

Total quantity regularized

Example: 15
pageinteger(int32)required

Current page number (0-based)

Example: 0
totalinteger(int32)required

Total number of items across all pages

Example: 150
pagesinteger(int64)required

Last page number (0-based)

Example: 14
sizeinteger(int32)required

Number of items per page

Example: 10
Response
application/json
{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }

Request

Get a specific stock regularizations.

Path
idinteger(int32)required
curl -i -X GET \
  'https://api.prana.software/api/v1/stock-regularization/{id}'

Responses

OK

Bodyapplication/json
idinteger(int32)required

Unique identifier of the entity

Example: 1
numberintegerrequired

Unique serial number of the document header.

Example: 1001
documentDatestring(date)required

Date of the document in ISO format (yyyy-MM-dd).

Example: "2024-08-07"
quantityTotalnumber

Total quantity for all document lines.

Example: 200.5
observationsstring

Free text field for any observations related to the document.

Example: "Customer requested urgent delivery"
linesArray of objects(ApiStockRegularizationLineReadDto)

List of detail lines for the document. For structure see: ApiBaseLineReadDto.java

stockRegularizatedDatestring(date)

Date when the stock regularization was completed

Example: "2024-01-16"
stockRegularizatedboolean

Flag indicating if the stock regularization has been completed

Example: true
warehouseobject(ApiWarehouseListReadDto)
valuationTypestring(ApiValuationTypeEnum)
Enum"AVERAGE_COST_PRICE""GROSS_PRICE_CURRENT_COST""NET_PRICE_CURRENT_COST"
Example: "FIFO"
Response
application/json
{ "id": 1, "number": 1001, "documentDate": "2024-08-07", "quantityTotal": 200.5, "observations": "Customer requested urgent delivery", "lines": [ { … } ], "stockRegularizatedDate": "2024-01-16", "stockRegularizated": true, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "valuationType": "AVERAGE_COST_PRICE" }
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Stock Transfer

Manage your Stock Transfers

Operations
Operations

Warehouse Movement

Manage your warehouse movements

Operations
Operations
Operations

DeliveryNote

Manage your DeliveryNotes

Operations

Warehouse Accumulate

Manage your warehouse accumulates

Operations
Operations
Operations
Operations
Operations

Purchase Invoice

Manage your Purchase Invoices

Operations
Operations

Payment Method

Manage your Payment Methods

Operations
Operations

Recurring Billing Templates

Manage your recurring billing templates

Operations
Operations

Billing Series

Manage your Billing Series

Operations
Operations
Operations

PurchaseDeliveryNote

Manage your PurchaseDeliveryNotes

Operations