curl --location --request POST '/transactions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Multiple Items",
"transaction_type": "cash_in",
"sub_total_amount": 51000,
"amount": 51000,
"amount_received": 51000,
"quantity": 2,
"items": 2,
"created_at": "2025-02-09T20:58:51.000Z",
"tax": 0,
"tax_amount": 0,
"discount": 0,
"discount_amount": 0,
"profit": 16000,
"discount_type": "amount",
"customer_id": 45279,
"delivery_charge": 0,
"unpaid_balance": 0,
"unpaid_remind_date": null,
"unpaid_reminder": null,
"recurring_transaction_id": null,
"last_payment_date": null,
"payment_due_date": null,
"payment_type": "fully_paid",
"expenses": [],
"sales": [
{
"name": "CHOPPERS",
"product_id": 85993,
"product_variant_id": 120896,
"quantity": 1,
"amount": "22500",
"unit": "Pieces",
"profit": 9500,
"discount": 0,
"cost_price": 13000,
"pieces_per_unit": 1
},
{
"name": "NONSTICK CASSEROLES",
"product_id": 85064,
"product_variant_id": 113467,
"quantity": 1,
"amount": 28500,
"unit": "Pieces",
"profit": 6500,
"discount": 0,
"cost_price": 22000,
"pieces_per_unit": 1
}
]
}'