{
"success": true,
"message": "Business Product fetched Successfully!",
"data": {
"id": "20232",
"user_id": "2400",
"business_id": "2290",
"supplier_id": null,
"app_id": "582",
"name": "pencil",
"product_type": "purchase",
"quantity": 10,
"quantity_sold": 6,
"pieces_sold": 6,
"cost_price": 5000,
"selling_price": 10000,
"pieces": 1,
"color": "white",
"size": "36,37,38",
"variant": "single",
"unit": "Pieces",
"app_created_at": "1970-01-01T01:00:00.000+01:00",
"raw": "{\"id\":582,\"system_id\":20232,\"name\":\"pencil\",\"product_type\":\"purchase\",\"quantity\":10,\"quantity_sold\":6,\"pieces\":1,\"pieces_sold\":6,\"unit\":\"Pieces\",\"cost_price\":5000,\"selling_price\":10000,\"supplier_id\":null,\"color\":\"white\",\"size\":\"36,37,38\",\"variant\":\"single\",\"created_by\":2400,\"synced\":0,\"created_at\":\"1970-01-01T01:00:00.000+01:00\",\"updated_at\":\"2024-07-07 20:57:33\",\"version_code\":23,\"quantity_left\":4}",
"deleted_at": null,
"created_at": "2024-06-05T01:00:00.000+01:00",
"updated_at": "2024-07-07T20:57:43.263+01:00",
"app_updated_at": "2024-07-07T20:57:33.000+01:00",
"created_by": "2400",
"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": "Pengassan Estate",
"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-04T14:11:32.875+01:00",
"brand_color": "#686c4b"
},
"supplier": null,
"user": {
"id": "2400",
"user_id": "71a1e24c-e5ad-4aef-95af-7dbcb74e2988",
"business_id": "2290",
"first_name": "Aa",
"last_name": "Mm",
"phone": "108769",
"email": "adeleke1402@gmail.com",
"gender": "female",
"avatar": null,
"dial_code": "+244",
"role": "USER",
"timezone": "Africa/Lagos",
"is_subscribed": true,
"email_verified": true,
"created_at": "2024-05-30T00:58:33.448+01:00",
"updated_at": "2024-06-08T09:34:52.200+01:00",
"fullName": "Aa Mm"
},
"productVariants": [
{
"id": "20845",
"user_id": "2400",
"business_id": "2290",
"product_id": "20232",
"app_id": "2564",
"name": "white",
"quantity": 10,
"quantity_sold": 6,
"pieces": 1,
"pieces_sold": 6,
"cost_price": 5000,
"selling_price": 10000,
"unit": "Pieces",
"app_created_at": "1970-01-01T01:00:00.000+01:00",
"raw": "{\"id\":2564,\"system_id\":20845,\"product_id\":582,\"product_name\":\"pencil\",\"name\":\"white\",\"quantity\":10,\"quantity_sold\":6,\"pieces\":1,\"pieces_sold\":6,\"unit\":\"Pieces\",\"cost_price\":5000,\"selling_price\":10000,\"created_by\":2400,\"synced\":0,\"created_at\":\"1970-01-01T01:00:00.000+01:00\",\"updated_at\":\"2024-07-07 20:57:33\",\"version_code\":23,\"quantity_left\":4,\"can_edit_quantity\":false}",
"deleted_at": null,
"created_at": "2024-06-05T01:00:00.000+01:00",
"updated_at": "2024-07-07T20:57:43.286+01:00",
"product_name": "pencil",
"app_updated_at": "2024-07-07T20:57:33.000+01:00",
"created_by": "2400",
"productImage": {
"image": "https://res.cloudinary.com/dwfnoynkp/image/upload/v1716156448/dev/products/user-1718.jpg",
"product_variant_id": "20845"
},
"quantityLeft": 4,
"rawParsed": {
"id": 2564,
"system_id": 20845,
"product_id": 582,
"product_name": "pencil",
"name": "white",
"quantity": 10,
"quantity_sold": 6,
"pieces": 1,
"pieces_sold": 6,
"unit": "Pieces",
"cost_price": 5000,
"selling_price": 10000,
"created_by": 2400,
"synced": 0,
"created_at": "1970-01-01T01:00:00.000+01:00",
"updated_at": "2024-07-07 20:57:33",
"version_code": 23,
"quantity_left": 4,
"can_edit_quantity": false
}
}
]
}
}