- master
- Stores**POST
- Article BatchesPOST
- Article EansPOST
- Article Master**POST
- Article Supplier Mapping**POST
- DC - Store Mapping**POST
- ManufacturerPOST
- Purchase ReturnsPOST
- WastagesPOST
- Supplier Master**POST
- Supplier ContactsPOST
- Production Pipeline ExecutionPOST
- Kit MasterPOST
- Bulk Repack MasterPOST
- Article Uom MasterPOST
- Supplier WalkInsPOST
- Article Pricing MasterPOST
- Article Store LimitsPOST
- Current Stock**POST
- Stores As SuppliersPOST
- Stock Location**POST
- Customer MasterPOST
- Company GroupPOST
- Hierarchy Headers**POST
- Hierarchy Details**POST
- Article Hierarchy**POST
- Article AttributesPOST
- ArticleGateKeeperMarginPOST
- transactional
- Stock Ledger**POST
- Bill Header**POST
- Bill Detail**POST
- Invoices Header**POST
- Invoices Detail**POST
- Supplier Invoice AcknowledgementPOST
- Purchase Order Header**POST
- Purchase Order DetailPOST
- Transfer In Header**POST
- Transfer In Detail**POST
- Transfer Out Header**POST
- Transfer Out Detail**POST
- Transfer Advice HeaderPOST
- Transfer Advice DetailPOST
Stock Ledger**
POST
/tx/stock_ledger/
transactional
Request
Query Params
full_sync
boolean
optional
Header Params
X-SYNC-TOKEN
string
required
<sync_token>
Accept-Encoding
string
required
Body Params application/json
array of:
article_id
string
required
store_id
string
required
transaction_date
string <date>
required
transaction_type
string
required
tax_perc
number <double>
optional
cost_price_without_tax
number <double>
optional
selling_price_without_tax
number <double>
optional
delta
number <double>
required
Usage:
All outwards should be negative values. All inwards should be positive values.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If 2 quantity stock is added via grn, then 2 should be provided.
If 2 units are sold/transferred out, then quantity stock is decreased. -2 should be provided.
If audit is done and stock is to be corrected, only the +/- delta quantity to correct the stock should be given.
Eg. If stock 7 is audited and only 5 are present. The delta -2 should be provided.
ts
string
required
Example
[
{
"article_id": "string",
"store_id": "string",
"transaction_date": "2019-08-24",
"transaction_type": "string",
"tax_perc": 0,
"cost_price_without_tax": 0,
"selling_price_without_tax": 0,
"delta": 0,
"ts": "string"
}
]
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/tx/stock_ledger/' \
--header 'X-SYNC-TOKEN;' \
--header 'Accept-Encoding;' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"article_id": "string",
"store_id": "string",
"transaction_date": "2019-08-24",
"transaction_type": "string",
"tax_perc": 0,
"cost_price_without_tax": 0,
"selling_price_without_tax": 0,
"delta": 0,
"ts": "string"
}
]'
Responses
🟢200OK
application/json
Body
status
string
optional
message
string
optional
Example
{
"status": "string",
"message": "string"
}
🟠403Forbidden
🟠405405
Modified at 2025-02-10 12:39:04