curl --location --request POST '/api/v1/price-history' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"data": "{\"cost_price\":\"400\",\"price_per_unit\": \"4200\",\"productId\": \"642318c74c64c3acbbcbc4b8\"}"
}'{
"success": true,
"message": "PriceHistory successfully added",
"data": {
"id": 1,
"userId": "63ff4b74bb3dd17abbe103f8",
"productId": "642318c74c64c3acbbcbc4b8",
"cost_price": 400,
"price_per_unit": 4200,
"quantity": 0,
"_id": "642563e628fda0b2b6a6fd21",
"createdAt": "2023-03-30T10:26:46.641Z",
"updatedAt": "2023-03-30T10:26:46.641Z",
"__v": 0
}
}