Electronic Invoicing System API v1
Developers Guide
×
Menu
Index

5.4.3.1. Request

 
 
curl -X 'POST' \
  'https://dev-eis-api.mra.mw/api/v1/utilities/taxpayer-initial-inventory-upload' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: <Bearer Token>' \
  -d '{
  "TIN": "123456789",
  "IsLastBatch": false,
  "Products": [
    {
      "BarCode": "8901234567890",
      "ProductName": "Cooking Oil 2L",
      "ProductDescription": "Sunflower cooking oil, 2 litres",
      "QuantityInStock": 100,
      "UnitPrice": 4500.00,
      "CostPrice": 4000.00,
      "SellingPrice": 5000.00,
      "ReorderLevel": 20,
      "OverQuantityStockLevel": 200
    },
    {
      "BarCode": "9909876543210",
      "ProductName": "Sugar 1kg",
      "ProductDescription": "Refined white sugar, 1 kilogram",
      "QuantityInStock": 50,
      "UnitPrice": 1200.00,
      "CostPrice": 1000.00,
      "SellingPrice": 1500.00,
      "ReorderLevel": 10,
      "OverQuantityStockLevel": 100
    }
  ]
}'
 
Json Path
Natural Name
Data Type
Restrictions
Comments
Authorization
Authorization Token
string
-mandatory
This will be computed from a  Terminal Activation Code
tin
Taxpayer Identification Number
string
-mandatory
TIN of the owner of the product
IsLastBatch
Last Batch Indicator
boolean
-mandatory
true if this is the final batch, otherwise false.
Products[].BarCode
Product Barcode
string
-mandatory
Unique identifier for the product (preferably GS1 barcode).
Products[].ProductName
Product Name
string
-mandatory
Name of the product.
Products[].ProductDescription
Product Description
string
-mandatory
Description of the product.
Products[].QuantityInStock
Quantity In Stock
number
-mandatory
Initial stock quantity.
Products[].UnitPrice
Unit Price
number
-mandatory
Price per unit (if applicable).
Products[].CostPrice
Cost Price
number
-mandatory
Purchase/production cost of the item.
Products[].SellingPrice
Selling Price
number
-mandatory
Price at which the product will be sold.
Products[].ReorderLevel
Reorder Level
number
-mandatory
Minimum stock threshold to trigger reordering.
Products[].OverQuantityStockLevel
Overstock Level
number
-mandatory
Maximum stock level considered safe.