curl --location --request GET 'http://localhost:8000/api/v1/report/consignment/suppliers/2?start_date=2025-11-01&end_date=2025-11-30' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Berhasil mengambil data detail supplier konsinyasi",
"data": {
"id": 2,
"code": "SUP5084351315",
"name": "Mohr-Sawayn",
"phone": "6281748812556",
"address": "48822 Isabella Pines\nEast Kristian, NC 14655-1764",
"total_load": 120000,
"total_remaining_load": 20000,
"status": "PARTIALLY_PAID",
"products": [
{
"id": 54,
"thumbnail_url": null,
"sku": null,
"name": "Kue Apem Kering",
"stock": 40,
"sold_qty": 20,
"total_load": 75000,
"remaining_stock": 20,
"batches": [
{
"id": 2,
"batch_code": "BATCH-20251027141627-3246",
"expiry_date": "2025-10-31",
"total_stock": 0,
"remaining_stock": 16
},
{
"id": 5,
"batch_code": "BATCH-20251027144233-3247",
"expiry_date": "2025-10-31",
"total_stock": 0,
"remaining_stock": 4
}
]
}
],
"payments": [
{
"id": 1,
"paid_at": "2025-10-27 18:00:00",
"paid_by": {
"id": 3,
"name": "Admin Store"
},
"paid_amount": 80000
},
{
"id": 2,
"paid_at": "2025-10-27 19:00:00",
"paid_by": {
"id": 3,
"name": "Admin Store"
},
"paid_amount": 20000
}
]
}
}