{
"id": 178,
"stockin_date": "2022-11-15T08:18:54.252+00:00",
"effective_date": null,
"expired_date": null,
"create_date": null,
"update_date": null,
"createby_emId": null,
"updateby_emId": null,
"deleteby_name": null,
"delete_date": null,
"invoice": "P_008",
"po": "YSYDV",
"remark": "Buy from PIC",
"supply_id": 2,
"stockinDetail": [
{
"id": 272,
"quantity": 10,
"unit": "kg",
"unit_price": 9,
"stockin_id": 178,
"pro_id": 74
},
{
"id": 273,
"quantity": 14,
"unit": "kg",
"unit_price": 2,
"stockin_id": 178,
"pro_id": 75
}
]
}
How Can I Develop a JavaScript function to send this data to an API endpoint like Postman?
Hello everyone, does anyone know how to use JavaScript to submit both single and multiple values to a database using JSON?