curl -X GET "https://api.dcycle.io/v1/invoices/550e8400-e29b-41d4-a716-446655440000" \ -H "x-organization-id: YOUR_ORGANIZATION_ID" \ -H "x-api-key: YOUR_API_KEY"
{ "id": "550e8400-e29b-41d4-a716-446655440000", "type": "electricity", "status": "active", "quantity": 1500.00, "base_quantity": 3000.00, "unit_id": "ba80e6cb-86a4-4bb1-a0c5-8104365d523c", "start_date": "2024-01-01T00:00:00", "end_date": "2024-01-31T23:59:59", "invoice_id": "INV-2024-001", "facility_id": "660e8400-e29b-41d4-a716-446655440000", "facility_fuel_id": null, "supplier_id": "770e8400-e29b-41d4-a716-446655440000", "custom_emission_factor_id": null, "co2e": 245.5, "co2e_biomass": 0, "cups": "ES0021000000000001XX", "file_id": "880e8400-e29b-41d4-a716-446655440000", "file_url": "https://storage.dcycle.io/invoices/invoice-2024-001.pdf", "uploaded_by": "990e8400-e29b-41d4-a716-446655440000", "percentage": 0.5, "enabled": true, "created_at": "2024-02-01T10:30:00Z", "updated_at": "2024-02-01T10:30:00Z" }
Retrieve a specific invoice by its ID
550e8400-e29b-41d4-a716-446655440000
heat
electricity
water
recharge
uploaded
loading
active
inactive
review
error