---
title: "Submit scope 1 fuel consumption data"
method: POST
path: "/ingest/scope1_fuel"
tags: ["Data Ingestion"]
---

# Submit scope 1 fuel consumption data

`POST /ingest/scope1_fuel`

## Request

- Base URL: `https://api.unravelcarbon.com/api/v1`
- URL: `https://api.unravelcarbon.com/api/v1/ingest/scope1_fuel`
- Auth: HTTP bearer

Submit scope 1 fuel consumption data directly to the Unravel Carbon platform for processing and carbon footprint calculation.

This endpoint allows you to:

- **Ingest fuel consumption data**: Submit fuel usage records with detailed facility and fuel type information
- **Validation**: Validates fuel types, quantities, date ranges, and facility information
- **Deduplication**: Use unique transaction IDs to prevent duplicate data processing
- **Flexible data submission**: Supports both JSON and CSV formats

**Key Validation Rules**:
- Fuel quantity must be greater than 0
- Start date must be before or equal to end date
- Dates cannot be in the future
- Transaction IDs must be unique within each request
- Facility names must exist in your organization

Each facility receives its own dedicated upload job for optimal processing and tracking.

## Headers

- `Authorization` string, required

## Request body

- Scope1FuelIngestRequest
  - `records` Scope1FuelRecord[], required: Array of scope 1 fuel consumption records
    - `transaction_id` string, required: Unique identifier for deduplication
    - `start_date` string, date, required: Start date of fuel consumption period (YYYY-MM-DD format)
    - `end_date` string, date, required: End date of fuel consumption period (YYYY-MM-DD format)
    - `facility_name` string, required: Facility name where fuel was consumed
    - `fuel_type` string, required: Type of fuel consumed
    - `quantity` number, required: Quantity of fuel consumed (must be > 0)
    - `unit_of_measurement` string, required: Unit of measurement for fuel quantity
    - `subfacility` string: Subfacility code (optional)
    - `supplier_name` string: Fuel supplier name (optional)
    - `supplier_country` string: Country of fuel supplier (optional)

## Response `200`

Scope 1 fuel data successfully ingested

- Scope1FuelIngestResponse
  - `status` 'success': Processing status
  - `message` string: Success message
  - `data` object
    - `sync_run_id` string: Unique identifier for this sync run
    - `import_type` string: Type of import
    - `total_records` integer: Total number of records processed
    - `facilities_processed` object[]
      - `facility_name` string: Name of the facility
      - `records_count` integer: Number of records processed for this facility
      - `status` string: Processing status for this facility
    - `upload_jobs_created` integer: Number of upload jobs created
    - `upload_job_ids` string[]: List of upload job IDs
    - `summary` object
      - `total_facilities` integer: Total number of facilities processed
      - `total_records` integer: Total number of records processed
      - `successful_facilities` integer: Number of facilities processed successfully
      - `failed_facilities` integer: Number of facilities that failed processing

## Other responses

- `400`: Validation error
- `401`: Authentication failed
- `403`: Invalid API key
- `409`: Duplicate transaction
- `422`: Processing error
- `500`: Internal server error

---

[API](https://skmtc.dev/unravelcarbon/apis/unravel-carbon-public-api.md) - [All operations](https://skmtc.dev/unravelcarbon/apis/unravel-carbon-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unravelcarbon/apis/unravel-carbon-public-api/revisions/310d3bb09dbe?raw)
