Skip to content

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

Download OpenAPI description
Languages
Servers
https://api.prana.software

Stock Regularization

Manage your Stock Regularizations

Operations
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

Entity Last Update

Manage the last-updated timestamps for entities

Operations

Period

Retrieves the available accounting periods in the app

Operations
Operations
Operations

Purchase Invoice

Manage your Purchase Invoices

Operations
Operations
Operations

Payment Method

Manage your Payment Methods

Operations
Operations

Request

Get a specific currency.

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

Responses

OK

Bodyapplication/json
idinteger(int32)required

Unique identifier of the entity

Example: 1
codestring[ 0 .. 5 ] charactersrequired
descriptionstring[ 0 .. 50 ] charactersrequired
accountobject(ApiChartAccountListReadDto)

Surcharge account information for purchase operations

nomenclaturestring[ 0 .. 5 ] characters
changeValuenumber
isoCodestring(ApiCurrencyISOEnum)

Defines the ISO currency codes.

Enum"AED""AFA""ALL""AMD""ANG""AOA""ARS""AUD""AWG""AZM"
significantDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
intermediateDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
decimalsCalculatePricesinteger(int32)[ 0 .. 6 ]
decimalsCalculateCostsinteger(int32)[ 0 .. 6 ]
Response
application/json
{ "id": 1, "code": "strin", "description": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "nomenclature": "strin", "changeValue": 0, "isoCode": "USD", "significantDecimalsDocuments": 6, "intermediateDecimalsDocuments": 6, "decimalsCalculatePrices": 6, "decimalsCalculateCosts": 6 }

Request

Update a specific currency.

Path
idinteger(int32)required
Bodyapplication/jsonrequired
codestring[ 0 .. 5 ] charactersrequired
descriptionstring[ 0 .. 50 ] charactersrequired
accountinteger(int32)
nomenclaturestring[ 0 .. 5 ] characters
changeValuenumber
isoCodestring(ApiCurrencyISOEnum)

Defines the ISO currency codes.

Enum"AED""AFA""ALL""AMD""ANG""AOA""ARS""AUD""AWG""AZM"
significantDecimalsDocumentsinteger(int32)
intermediateDecimalsDocumentsinteger(int32)
decimalsCalculatePricesinteger(int32)
decimalsCalculateCostsinteger(int32)
curl -i -X PUT \
  'https://api.prana.software/api/v1/currency/{id}' \
  -H 'Content-Type: application/json' \
  -d '{
    "code": "strin",
    "description": "string",
    "account": 0,
    "nomenclature": "strin",
    "changeValue": 0,
    "isoCode": "USD",
    "significantDecimalsDocuments": 0,
    "intermediateDecimalsDocuments": 0,
    "decimalsCalculatePrices": 0,
    "decimalsCalculateCosts": 0
  }'

Responses

OK

Bodyapplication/json
idinteger(int32)required

Unique identifier of the entity

Example: 1
codestring[ 0 .. 5 ] charactersrequired
descriptionstring[ 0 .. 50 ] charactersrequired
accountobject(ApiChartAccountListReadDto)

Surcharge account information for purchase operations

nomenclaturestring[ 0 .. 5 ] characters
changeValuenumber
isoCodestring(ApiCurrencyISOEnum)

Defines the ISO currency codes.

Enum"AED""AFA""ALL""AMD""ANG""AOA""ARS""AUD""AWG""AZM"
significantDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
intermediateDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
decimalsCalculatePricesinteger(int32)[ 0 .. 6 ]
decimalsCalculateCostsinteger(int32)[ 0 .. 6 ]
Response
application/json
{ "id": 1, "code": "strin", "description": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "nomenclature": "strin", "changeValue": 0, "isoCode": "USD", "significantDecimalsDocuments": 6, "intermediateDecimalsDocuments": 6, "decimalsCalculatePrices": 6, "decimalsCalculateCosts": 6 }

Request

Delete specific currency.

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

Responses

OK

Request

Patch specific Currency.

Path
idinteger(int32)required
Bodyapplication/jsonrequired
property name*objectadditional property
curl -i -X PATCH \
  'https://api.prana.software/api/v1/currency/{id}' \
  -H 'Content-Type: application/json' \
  -d '{
    "property1": {},
    "property2": {}
  }'

Responses

OK

Bodyapplication/json
idinteger(int32)required

Unique identifier of the entity

Example: 1
codestring[ 0 .. 5 ] charactersrequired
descriptionstring[ 0 .. 50 ] charactersrequired
accountobject(ApiChartAccountListReadDto)

Surcharge account information for purchase operations

nomenclaturestring[ 0 .. 5 ] characters
changeValuenumber
isoCodestring(ApiCurrencyISOEnum)

Defines the ISO currency codes.

Enum"AED""AFA""ALL""AMD""ANG""AOA""ARS""AUD""AWG""AZM"
significantDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
intermediateDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
decimalsCalculatePricesinteger(int32)[ 0 .. 6 ]
decimalsCalculateCostsinteger(int32)[ 0 .. 6 ]
Response
application/json
{ "id": 1, "code": "strin", "description": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "nomenclature": "strin", "changeValue": 0, "isoCode": "USD", "significantDecimalsDocuments": 6, "intermediateDecimalsDocuments": 6, "decimalsCalculatePrices": 6, "decimalsCalculateCosts": 6 }

Request

Create a new currency.

Bodyapplication/jsonrequired
codestring[ 0 .. 5 ] charactersrequired
descriptionstring[ 0 .. 50 ] charactersrequired
accountinteger(int32)
nomenclaturestring[ 0 .. 5 ] characters
changeValuenumber
isoCodestring(ApiCurrencyISOEnum)

Defines the ISO currency codes.

Enum"AED""AFA""ALL""AMD""ANG""AOA""ARS""AUD""AWG""AZM"
significantDecimalsDocumentsinteger(int32)
intermediateDecimalsDocumentsinteger(int32)
decimalsCalculatePricesinteger(int32)
decimalsCalculateCostsinteger(int32)
curl -i -X POST \
  https://api.prana.software/api/v1/currency \
  -H 'Content-Type: application/json' \
  -d '{
    "code": "strin",
    "description": "string",
    "account": 0,
    "nomenclature": "strin",
    "changeValue": 0,
    "isoCode": "USD",
    "significantDecimalsDocuments": 0,
    "intermediateDecimalsDocuments": 0,
    "decimalsCalculatePrices": 0,
    "decimalsCalculateCosts": 0
  }'

Responses

OK

Bodyapplication/json
idinteger(int32)required

Unique identifier of the entity

Example: 1
codestring[ 0 .. 5 ] charactersrequired
descriptionstring[ 0 .. 50 ] charactersrequired
accountobject(ApiChartAccountListReadDto)

Surcharge account information for purchase operations

nomenclaturestring[ 0 .. 5 ] characters
changeValuenumber
isoCodestring(ApiCurrencyISOEnum)

Defines the ISO currency codes.

Enum"AED""AFA""ALL""AMD""ANG""AOA""ARS""AUD""AWG""AZM"
significantDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
intermediateDecimalsDocumentsinteger(int32)[ 0 .. 6 ]
decimalsCalculatePricesinteger(int32)[ 0 .. 6 ]
decimalsCalculateCostsinteger(int32)[ 0 .. 6 ]
Response
application/json
{ "id": 1, "code": "strin", "description": "string", "account": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "nomenclature": "strin", "changeValue": 0, "isoCode": "USD", "significantDecimalsDocuments": 6, "intermediateDecimalsDocuments": 6, "decimalsCalculatePrices": 6, "decimalsCalculateCosts": 6 }

Request

Get all your currencies.

Bodyapplication/jsonrequired
conditionobject(ApiCondition)

Condition to filter results

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/currency/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(ApiCurrencyListReadDto)required

List of data items for the current page

data[].​idinteger(int32)required

Unique identifier of the entity

Example: 1
data[].​codestring[ 0 .. 5 ] charactersrequired
data[].​descriptionstring[ 0 .. 50 ] charactersrequired
data[].​nomenclaturestring[ 0 .. 5 ] characters
data[].​isoCodestring(ApiCurrencyISOEnum)

Defines the ISO currency codes.

Enum"AED""AFA""ALL""AMD""ANG""AOA""ARS""AUD""AWG""AZM"
data[].​changeValuenumber
data[].​significantDecimalsDocumentsinteger(int32)
data[].​intermediateDecimalsDocumentsinteger(int32)
data[].​decimalsCalculatePricesinteger(int32)
data[].​decimalsCalculateCostsinteger(int32)
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 }

Recurring Billing Templates

Manage your recurring billing templates

Operations
Operations

Billing Series

Manage your Billing Series

Operations
Operations
Operations

PurchaseDeliveryNote

Manage your PurchaseDeliveryNotes

Operations
Operations
Operations