Authorization: Bearer ********************{
"InventoryHeaderModel": {
"DocumentDate": "2025-10-28",
"DocumentDesc": "api test salerefund",
"CustomerId": "00000001",
"WarehouseId": "000002",
"AccountId": "10010101",
"Details": [
{
"ItemId": "0001356465",
"ItemName": null,
"Qty": 25,
"Price": 15000,
"VatAmount": 0,
"CityTaxAmount": 0,
"DiscountAmount": 187500,
"Amount": 187500
},
{
"ItemId": "0002",
"ItemName": null,
"Qty": 10,
"Price": 200000,
"VatAmount": 0,
"CityTaxAmount": 0,
"DiscountAmount": 0,
"Amount": 2000000
}
]
}
}curl --location --request POST 'https://accountingAPI.smartlogic.mn/api/sale/PostSaleRefund' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"InventoryHeaderModel": {
"DocumentDate": "2025-10-28",
"DocumentDesc": "api test salerefund",
"CustomerId": "00000001",
"WarehouseId": "000002",
"AccountId": "10010101",
"Details": [
{
"ItemId": "0001356465",
"ItemName": null,
"Qty": 25,
"Price": 15000,
"VatAmount": 0,
"CityTaxAmount": 0,
"DiscountAmount": 187500,
"Amount": 187500
},
{
"ItemId": "0002",
"ItemName": null,
"Qty": 10,
"Price": 200000,
"VatAmount": 0,
"CityTaxAmount": 0,
"DiscountAmount": 0,
"Amount": 2000000
}
]
}
}'{
"Success": true,
"Message": null,
"ErrorCode": null,
"ExceptionType": null,
"Data": "2510291000074834882"