GET /api/transactions/?format=api
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
[
{
"id": 1,
"batch": {
"id": 1,
"farm": {
"id": 1,
"type": "Feature",
"geometry": "SRID=4326;POINT (-73.635 4.142)",
"properties": {
"name": "Finca El Paraíso",
"hectares": 15.5,
"country": "Colombia",
"certification": "Organic",
"deforestation_free_verification": true,
"verification_date": "2024-03-15"
}
},
"harvest_date": "2024-04-20",
"weight_kg": 2500.0,
"batch_id": "BATCH2024COL001",
"quality_metrics": {
"moisture": 6.5,
"bean_size": "large",
"fermentation": "good"
},
"season": "Mid"
},
"from_actor": {
"id": 1,
"name": "Carlos Rodríguez",
"actor_type": "FARMER",
"address": "Vereda La Esperanza, Meta",
"country": "Colombia",
"registration_number": "FARM-COL-001",
"contact_email": "carlos@example.com"
},
"to_actor": {
"id": 2,
"name": "European Choco Import GmbH",
"actor_type": "IMPORTER",
"address": "Schokoladenstraße 5, Hamburg, Germany",
"country": "Germany",
"registration_number": "IMP-DE-1020",
"contact_email": "import@chocoimport.de"
},
"transaction_type": "EXPORT",
"date": "2024-05-05",
"weight_kg": 2500.0,
"price_per_kg": 4.75,
"documentation": null,
"due_diligence_report": null,
"eu_import_declaration": "IMPDECL2024EU01",
"customs_code": "CO12345678",
"commodity_code": "1806"
}
]