Saltar al contenido principal
GET
/
api
/
v1
/
service-footprint
/
glec
Retrieve the list of GLEC service footprint
curl --request GET \
  --url https://www.manglai.io/api/v1/service-footprint/glec \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "authorship": {
        "lastImpersonatedBy": "<string>",
        "lastModifiedBy": {
          "id": "<string>",
          "name": "<string>",
          "email": "<string>",
          "roles": [
            "<string>"
          ],
          "isLoggedIn": true,
          "language": "<string>",
          "company": {
            "classification": "<string>"
          }
        },
        "owner": {
          "id": "<string>",
          "name": "<string>",
          "email": "<string>",
          "roles": [
            "<string>"
          ],
          "isLoggedIn": true,
          "language": "<string>",
          "company": {
            "classification": "<string>"
          }
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "validation": {}
      },
      "id": "<string>",
      "companyId": "<string>",
      "clientId": "<string>",
      "externalId": "<string>",
      "startDate": "2023-11-07T05:31:56Z",
      "endDate": "2023-11-07T05:31:56Z",
      "load": 123,
      "loadUnit": "mt",
      "from": "<string>",
      "to": "<string>",
      "distance": 123,
      "actions": [
        {
          "id": "<string>",
          "mode": "<string>",
          "vehicleId": "<string>",
          "from": "<string>",
          "to": "<string>",
          "distance": 123,
          "load": 123,
          "loadUnit": "mt",
          "energyQuantity": "<string>",
          "driver": "<string>",
          "emission": 123,
          "emissions": [
            {
              "emission": 123,
              "emissionFactorSnapshot": {
                "id": "<string>",
                "countryCode": "<string>",
                "entityName": "<string>",
                "year": 123,
                "emissionFactor": 123,
                "conversion": "<string>",
                "description": "<string>",
                "entity": {
                  "fuelType": "<string>",
                  "fuelLifeCycle": "<string>"
                },
                "origin": "<string>",
                "source": "<string>",
                "unit": "<string>",
                "unitType": "<string>",
                "status": "<string>"
              }
            }
          ],
          "sourceEmission": {
            "energy": 123,
            "distance": 123
          },
          "sourceEmissions": {
            "energy": [
              {
                "emission": 123,
                "emissionFactorSnapshot": {
                  "id": "<string>",
                  "countryCode": "<string>",
                  "entityName": "<string>",
                  "year": 123,
                  "emissionFactor": 123,
                  "conversion": "<string>",
                  "description": "<string>",
                  "entity": {
                    "fuelType": "<string>",
                    "fuelLifeCycle": "<string>"
                  },
                  "origin": "<string>",
                  "source": "<string>",
                  "unit": "<string>",
                  "unitType": "<string>",
                  "status": "<string>"
                }
              }
            ],
            "distance": [
              {
                "emission": 123,
                "emissionFactorSnapshot": {
                  "id": "<string>",
                  "countryCode": "<string>",
                  "entityName": "<string>",
                  "year": 123,
                  "emissionFactor": 123,
                  "conversion": "<string>",
                  "description": "<string>",
                  "entity": {
                    "vehicleType": "<string>",
                    "vehicleCategoryType": "<string>",
                    "fuelType": "<string>",
                    "fuelLifeCycle": "<string>"
                  },
                  "origin": "<string>",
                  "source": "<string>",
                  "unit": "<string>",
                  "unitType": "<string>",
                  "status": "<string>"
                }
              }
            ]
          }
        }
      ],
      "emission": 123,
      "emissionByScope": {
        "scope-1": 123,
        "scope-3": 123
      },
      "sourceEmission": {
        "energy": 123,
        "distance": 123
      },
      "sourceEmissionByScope": {
        "energy": {
          "scope-1": 123,
          "scope-3": 123
        },
        "distance": {
          "scope-1": 123,
          "scope-3": 123
        }
      }
    }
  ],
  "pagination": {
    "total": 123,
    "page": 123,
    "limit": 123
  }
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de consulta

companyId
string
requerido

The unique identifier of the company.

clientId
string

The unique identifier of the client.

vehicleId
string

The unique identifier of the vehicle.

externalId
string

The unique identifier of the external service footprint entry.

startDate
string<date>
requerido

The start date of the period.

endDate
string<date>
requerido

The end date of the period.

supplierId
string

The unique identifier of the supplier.

Respuesta

200 - application/json

Successful response with emissions data

data
object[]
pagination
object