Authorization: Bearer ********************{
"InventoryHeaderModel": {
"DocumentDate": "2026-07-28",
"DocumentNumber": "PS2004",
"DocumentDesc": "api test PostPurchaseRefund",
"CustomerId": "CUS001",
"WarehouseId": "L-001",
"AccountId": "120101",
"Details": [
{
"ItemId": "Т-0001",
"ItemName": null,
"WarehouseId": "",
"Qty": 25,
"Price": 15000,
"VatAmount": 0,
"CityTaxAmount": 0,
"DiscountAmount": 187500,
"Amount": 187500
}
]
}
}curl --location 'https://accountingAPI.smartlogic.mn/api/purchase/PostPurchaseRefund' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"InventoryHeaderModel": {
"DocumentDate": "2026-07-28",
"DocumentNumber": "PS2004",
"DocumentDesc": "api test PostPurchaseRefund",
"CustomerId": "CUS001",
"WarehouseId": "L-001",
"AccountId": "120101",
"Details": [
{
"ItemId": "Т-0001",
"ItemName": null,
"WarehouseId": "",
"Qty": 25,
"Price": 15000,
"VatAmount": 0,
"CityTaxAmount": 0,
"DiscountAmount": 187500,
"Amount": 187500
}
]
}
}'{
"Success": true,
"Message": null,
"ErrorCode": null,
"ExceptionType": null,
"Data": "2607281426521138231"
}