curl --location --request POST 'http://localhost:8000/api/v1/transaction' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"member_id": 0,
"transaction_time": "2025-11-05 10:40:00",
"payment_id": 1,
"subtotal": 10000,
"discount": 0,
"additional_fee": 21000,
"total": 31000,
"payment_nominal": 60000,
"change": 29000,
"products": [
{
"type": "PCS",
"id": 1,
"price_sell": 1,
"batch_id": 10,
"qty": 1
}
],
"discounts": [],
"additional_fees": [
{
"name": "Pajak",
"category": "TAX",
"type": "PERCENTAGE",
"value": 10,
"nominal": 1000
},
{
"name": "Ongkir",
"category": "DELIVERY",
"type": "NOMINAL",
"value": 0,
"nominal": 20000
}
]
}'