curl --location --request POST 'http://localhost:8000/api/v1/transaction/sync' \
--header 'Accept;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"member_id": [0, 0, 0],
"transaction_time": [
"2025-11-05 10:40:00",
"2025-11-05 11:15:00",
"2025-11-05 14:30:00"
],
"payment_id": ["1", "1", "1"],
"subtotal": ["10000", "10000", "10000"],
"total": ["31000", "11000", "11100"],
"payment_nominal": ["60000", "15000", "12000"],
"change": ["29000", "4000", "900"],
"products": [
[
{
"type": "PCS",
"id": "1",
"price_sell": 1,
"batch_id": 10,
"qty": 1
}
],
[
{
"type": "PCS",
"id": 1,
"price_sell": 1,
"batch_id": 10,
"qty": 1
}
],
[
{
"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"
}
],
[
{
"name": "Pajak",
"category": "TAX",
"type": "PERCENTAGE",
"value": "10",
"nominal": 1000
}
],
[
{
"name": "Pajak",
"category": "TAX",
"type": "PERCENTAGE",
"value": "11",
"nominal": "1100"
}
]
]
}'