Authorization: Bearer ********************curl --location --request PUT '/desktop/transactions/update-cashout/1742671' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"expenses": [
{
"category_name": "Food & Drinks",
"amount": 2500,
"name": "fried rice and salad"
}
],
"notes": [
"Sample note 1"
],
"unpaid_balance": 0,
"payment_type": "fully_paid",
"transaction_date": "2024-07-03"
}'{
"success": true,
"message": "Transaction added successfully!",
"data": {
"totalExpenses": 2500,
"expenses": [
{
"category_name": "Food & Drinks",
"amount": 2500,
"name": "fried rice and salad"
}
],
"notes": [
"Sample note 1"
]
}
}