curl --location --request POST 'http://localhost:8000/api/v1/receipt' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"supplier_id": [1, 1, 1],
"batch_code": ["BATCH-001", "BATCH-002", "BATCH-003"],
"date": ["2025-10-27", "2025-10-27", "2025-10-27"],
"items": [
{
"product_id": [1, 2, 3],
"expire_date": ["2026-12-31", "2026-11-30", "2026-10-31"],
"price": [20000, 15000, 18000],
"quantity": [20, 10, 15],
"is_consignment": [0, 0, 0]
},
{
"product_id": [1, 2, 3],
"expire_date": ["2026-12-31", "2026-11-30", "2026-10-31"],
"price": [20000, 15000, 18000],
"quantity": [20, 10, 15],
"is_consignment": [0, 0, 0]
},
{
"product_id": [1, 2, 3],
"expire_date": ["2026-12-31", "2026-11-30", "2026-10-31"],
"price": [20000, 15000, 18000],
"quantity": [20, 10, 15],
"is_consignment": [0, 0, 0]
}
]
}'