{
"success": true,
"message": "Transaction added successfully!",
"data": {
"newTransaction": {
"user_id": "2400",
"business_id": 2290,
"transaction_uid": "ZTG2290980116859-2407231750",
"name": "Repair",
"app_id": 980116859,
"transaction_type": "cash_in",
"amount": 2000,
"amount_received": 2000,
"quantity": 1,
"items": 1,
"profit": 2000,
"delivery_charge": 0,
"discount": 0,
"unpaid_balance": 0,
"discount_amount": 0,
"sub_total_amount": 2000,
"raw": "",
"tax_amount": 0,
"created_by": "2400",
"app_created_at": "2024-07-23",
"app_updated_at": "2024-07-23",
"created_at": "2024-07-23T17:50:26.947+01:00",
"updated_at": "2024-07-23T17:50:26.947+01:00",
"id": "1743029",
"formattedTotalAmount": "₦ 2,000.00",
"formattedTotalAmountRecieved": "₦ 2,000.00",
"formattedUnpaidBalance": "₦ 0.00",
"formattedDeliveryCharge": "₦ 0.00",
"getMoneyIn": "2,000",
"getMoneyOut": "0",
"getUnFormattedMoneyIn": 2000,
"getUnFormattedMoneyOut": 0,
"formattedDiscountAmount": "₦ 0.00",
"formattedTaxAmount": "₦ 0.00",
"formattedSubTotalAmount": "₦ 2,000.00",
"formattedTransactionAmount": "₦ 2,000.00",
"formatAmount": "2,000",
"formatUnpaid": "0"
},
"totalSalesAmount": 2000,
"salesWithProfit": [
{
"product_id": 20271,
"quantity": 1,
"unit": "session",
"amount": 2000,
"profit": 2000,
"type": "service",
"discount": 0
}
],
"totalProductProfit": 0,
"totalServiceProfit": 2000,
"totalTransactionProfit": 2000,
"totalProductQuantity": 0,
"totalServiceCount": 1,
"totalTransactionQuantity": 1,
"recurring": {
"recurring_frequency": "daily",
"next_transaction_date": "2024-08-24",
"recurring_reminder": "on_the_day"
}
}
}