Authorization: Bearer ********************{
"InventoryHeaderModel" : {
"DocumentDate": "2026-09-23",
"DocumentNumber": "PS2005",
"DocumentDesc": "api test sale",
"CustomerId": "0000001",
"WarehouseId": "000001",
"AccountId" : "0000531",
"FreeVatPropertyId": "27",
"Details": [
{
"ItemId": "1002954-1",
"ItemName": "Бараа - 2948",
"SalesRevenueAccountId" : "1002954-1",
"Qty": 1,
"Price" : 500,
"VatAmount": 44.64,
"CityTaxAmount": 8.93,
"DiscountAmount": 0,
"Amount": 500
}
]
}
}curl --location 'https://accountingAPI.smartlogic.mn/api/sale/PostSale' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"InventoryHeaderModel" : {
"DocumentDate": "2026-09-23",
"DocumentNumber": "PS2005",
"DocumentDesc": "api test sale",
"CustomerId": "0000001",
"WarehouseId": "000001",
"AccountId" : "0000531",
"FreeVatPropertyId": "27",
"Details": [
{
"ItemId": "1002954-1",
"ItemName": "Бараа - 2948",
"SalesRevenueAccountId" : "1002954-1",
"Qty": 1,
"Price" : 500,
"VatAmount": 44.64,
"CityTaxAmount": 8.93,
"DiscountAmount": 0,
"Amount": 500
}
]
}
}'{
"Success": true,
"Message": null,
"ErrorCode": null,
"ExceptionType": null,
"Data": "2502191634188573989"
}