{
"success": true,
"message": "Transaction fetched successfully!",
"data": {
"id": "1743121",
"user_id": "2400",
"business_id": "2290",
"customer_id": "3447",
"transaction_uid": "TWT2290980118068-2407271042",
"app_id": "980118068",
"name": "Investments",
"transaction_type": "other_cash_in",
"amount": 50000,
"amount_received": 50000,
"quantity": 1,
"items": "1",
"delivery_charge": 0,
"discount": 0,
"unpaid_balance": 0,
"discount_type": null,
"discount_amount": 0,
"sub_total_amount": 50000,
"tax": 0,
"tax_amount": 0,
"unpaid_remind_date": null,
"app_created_at": "2024-07-26T01:00:00.000+01:00",
"raw": "{\"synced\":1,\"invoice_id\":\"TWT2290980118068-2407271042\",\"tax\":0,\"discount_amount\":0,\"discount\":0,\"delivery_charges\":0,\"created_at\":\"2024-07-26 01:00:00\",\"updated_at\":\"2024-07-27 10:42:21\",\"quantity\":1,\"unpaid_balance\":0,\"transaction_type\":\"other_cash_in\",\"name\":\"Investments\",\"discount_type\":null,\"unpaid_remind_date\":\"2024-07-27 10:42:21\",\"amount_received\":50000,\"customer_id\":\"488\",\"supplier_id\":null,\"amount\":50000,\"profit\":0,\"sub_total_amount\":50000,\"items\":\"1\",\"version_code\":15,\"tax_amount\":0,\"id\":\"980118068\",\"system_id\":\"1743121\",\"created_by\":\"2400\"}",
"reminder_sent": false,
"deleted_at": null,
"created_at": "2024-07-27T10:42:18.260+01:00",
"updated_at": "2024-07-27T10:42:21.367+01:00",
"app_updated_at": "2024-07-26T01:00:00.000+01:00",
"profit": 0,
"supplier_id": null,
"recurring_transaction_id": null,
"created_by": "2400",
"delivery_date": null,
"business": {
"id": "2290",
"business_id": "fa8c7ee1-80c1-4935-b4b0-73eabbfaf46f",
"user_id": "2400",
"business_type_id": "15",
"name": "Maman",
"code": null,
"country": "Angola (AGO)",
"state": "",
"address": "lekki face one",
"currency": "VEF",
"logo": "https://res.cloudinary.com/dwfnoynkp/image/upload/v1720098558/dev/logos/business-fa8c7ee1-80c1-4935-b4b0-73eabbfaf46f.jpg",
"is_verified": false,
"is_active": true,
"created_at": "2024-05-30T00:58:33.454+01:00",
"updated_at": "2024-07-25T23:57:13.684+01:00",
"brand_color": "#686c4b"
},
"customer": {
"id": "3447",
"user_id": "2400",
"business_id": "2290",
"app_id": "488",
"name": "Fumi Adeleke",
"phone": "090994839233",
"thumbnail": null,
"address": null,
"app_created_at": "2024-07-27T10:42:16.611+01:00",
"raw": "{\"id\":\"488\",\"system_id\":\"3447\",\"version_code\":15,\"name\":\"Fumi Adeleke\",\"phone\":\"090994839233\",\"thumbnail\":null,\"address\":null,\"synced\":0,\"amount_spent\":0,\"created_at\":\"2024-07-27 10:42:16\",\"updated_at\":\"2024-07-27 10:42:17\"}",
"deleted_at": null,
"created_at": "2024-07-27T10:42:16.612+01:00",
"updated_at": "2024-07-27T10:42:17.534+01:00",
"app_updated_at": "2024-07-27T10:42:16.612+01:00",
"email": "fumiadeleke@gmail.com",
"instagram": null,
"facebook": null,
"tiktok": null,
"created_by": "2400",
"amount_spent": null
},
"supplier": null,
"sales": [],
"expenses": [],
"investments": [
{
"id": "2",
"user_id": "2400",
"business_id": "2290",
"transaction_id": "1743121",
"app_id": "2",
"name": "Investments",
"description": "i got this Investments from palmpay loan",
"amount": 50000,
"app_created_at": "2024-07-26T01:00:00.000+01:00",
"app_updated_at": "2024-07-26T01:00:00.000+01:00",
"raw": "{\"transaction_id\":\"980118068\",\"amount\":50000,\"id\":\"2\",\"synced\":1,\"description\":\"i got this Investments from palmpay loan\",\"created_at\":\"2024-07-26 01:00:00\",\"updated_at\":\"2024-07-27 10:42:22\",\"name\":\"Investments\",\"version_code\":15,\"system_id\":\"2\",\"created_by\":\"2400\"}",
"created_by": "2400",
"deleted_at": null,
"created_at": "2024-07-27T10:42:18.967+01:00",
"updated_at": "2024-07-27T10:42:22.231+01:00",
"formattedAmount": "₦50,000.00"
}
],
"paymentHistories": [
{
"id": 2057,
"user_id": "2400",
"business_id": "2290",
"transaction_id": "1743121",
"app_id": null,
"payment_type": "full_payment",
"payment_mode": "cash",
"amount": 50000,
"app_created_at": "2024-07-27T10:42:19.786+01:00",
"raw": "",
"deleted_at": null,
"created_at": "2024-07-27T10:42:19.786+01:00",
"updated_at": "2024-07-27T10:42:19.787+01:00",
"app_updated_at": "2024-07-27T10:42:19.786+01:00",
"created_by": "2400"
}
],
"transactionFiles": [],
"transactionNotes": [
{
"notes": "Sample note 1",
"transaction_id": "1743121"
}
],
"formattedTotalAmount": "Bs 50,000.00",
"formattedTotalAmountRecieved": "Bs 50,000.00",
"formattedUnpaidBalance": "Bs 0.00",
"formattedDeliveryCharge": "Bs 0.00",
"getMoneyIn": "50,000",
"getMoneyOut": "0",
"getUnFormattedMoneyIn": 50000,
"getUnFormattedMoneyOut": 0,
"formattedDiscountAmount": "Bs 0.00",
"formattedTaxAmount": "Bs 0.00",
"formattedSubTotalAmount": "Bs 50,000.00",
"formattedTransactionAmount": "Bs 50,000.00",
"formatAmount": "50,000",
"formatUnpaid": "0"
}
}