> ## Documentation Index
> Fetch the complete documentation index at: https://docs.isometric.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attribution by API

Attribution allows partial amortization of a CO₂e flux to a particular GHG entry. In many cases, attribution can be handled automatically by Certify's amortization rules, however more custom attribution strategies can be implemented using the API.

> [!NOTE]
>
> Prefer the `ghg_entry*` attribution endpoints on this page. The `removal*` endpoints remain available as deprecated
> compatibility aliases.

> [!TIP]
>
> The user guides on [attributing components](https://docs.isometric.com/user-guides/certify/attribution.md) and [project
> emissions](https://docs.isometric.com/user-guides/certify/project-emissions.md) give a useful general introduction to concepts covered in the rest
> of this page.

## Attribution within a GHG entry

To add a new project operation component with partial attribution to a GHG entry, first [create the component](https://docs.isometric.com/api-reference/certify/post-component.md) and then call the [Patch GHG Entry Components](https://docs.isometric.com/api-reference/certify/patch-ghg-entry-components.md) endpoint with a request as follows:

```json Patch GHG Entry Components theme={null}
{
  "components_to_add": [
    {
      "attribution_factor": 0.612,
      "component_group_key": "biomass-transport",
      "component_id": "cmp_1EP2SB7MZ1S036PY"
    }
  ]
}
```

The attribution factor is a fraction and determines the proportion of the component that is attributed to the GHG entry. In the example above, 0.612 (or 61.2%) of the biomass transport component will be attributed to the GHG entry.

## GHG Statement level attribution

Emissions can be [added to a GHG statement](https://docs.isometric.com/user-guides/certify/attribution.md#ghg-statement-level-attribution) if they relate to that reporting period. In the case that a statement has multiple GHG entries, the emission will be automatically split evenly across all GHG entries.

The component can be created and attributed in the same request to [Post GHG Statement Component](https://docs.isometric.com/api-reference/certify/post-ghg-statement-component.md). Note that no attribution factor is needed in this case as attribution is calculated automatically.

```json Add a GHG statement level emission theme={null}
{
  "component_data": {
    "activity_completed_at": "2023-11-07T05:31:56Z",
    "activity_started_at": "2023-11-07T05:31:56Z",
    "component_blueprint_key": "<string>",
    "description": "<string>",
    "display_name": "<string>",
    "inputs": [
      {
        "__typename": "CreateComponentListInput",
        "datapoint_ids": [
          "dtp_1DVKHKS101S0Q61Q"
        ],
        "input_key": "<string>"
      }
    ],
    "project_id": "prj_1CTWZQGKE1S0VAXA",
    "supplier_reference_id": "<string>"
  },
  "ghg_statement_id": "ggs_1GDQJ99Z51S0DYW9"
}
```

## Attribution of project emissions

Project emissions can be automatically allocated by Certify using an [amortization rule](https://docs.isometric.com/user-guides/certify/project-emissions.md#amortization-rules). If a `Manual` amortization rule is selected, suppliers can define their own amortization strategy using API updates to amend GHG entries.

Once a project emission and GHG entry have been created, the emission can be attributed by calling the [Post Project Component GHG Entry Attribution](https://docs.isometric.com/api-reference/certify/post-project-component-ghg-entry-attribution.md) endpoint:

```json Attribute project emission to GHG entry theme={null}
{
  "attribution_factor": 0.654,
  "ghg_entry_id": "rmv_1EEM6NJXX1S0EXKD"
}
```

> [!NOTE]
>
> The project emission component ID is specified as a path parameter in the request.

## Full attribution

Components cannot be attributed beyond 100%. In the event a request is sent attempting to over-attribute a component, the API will respond with a `400` error.


## Related topics

- [API changelog](https://docs.isometric.com/api-reference/certify/api-changelog.md)
- [Delete Project Component Removal Attribution](https://docs.isometric.com/api-reference/certify/delete-project-component-removal-attribution.md)
- [Delete Project Component Ghg Entry Attribution](https://docs.isometric.com/api-reference/certify/delete-project-component-ghg-entry-attribution.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.