---
description: >-
  Lighthouse functionality that allows you to build advanced Chargebacks for
  tools connected to the platform.
---

# Advanced Chargeback

**Step by step execution:**



**Create and Manage Advanced Chargeback**



**Step 1**: Go to Chargeback and select the Advanced Chargeback feature from the side menu:

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FDBuis1WqnGbmqA5vSWah%2Fimage.png?alt=media&#x26;token=ff692ed5-b769-4751-ba5b-14b3fc221818" alt=""><figcaption></figcaption></figure>

The system will open to the Advanced Chargeback main screen.

**Step 2**: Click "**+ Add**"

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F0UIqFyHLYg5odVbySME6%2Fimage.png?alt=media&#x26;token=95c0f82f-28a0-4fdd-93b1-bd4a56a8f3a5" alt=""><figcaption></figcaption></figure>

The system will open on the screen to register a new Advanced Chargeback



**Step 3**: Enter the **Properties** data

Will be necessary to inform the data relating to the Chargeback properties:

* **Name**: Inform a name for the Advanced Chargeback&#x20;
* **Billing connector**: The system will automatically fill with the selected billing information, and it is not possible to edit it.&#x20;
* **Observability connector**: Select one of the available options in the field.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FUrHziJ2htetYqvR342x3%2Fimage.png?alt=media&#x26;token=623a4857-aade-4388-9fb6-cc66e7ea502d" alt=""><figcaption></figcaption></figure>

**Step 4**: Enter **Billing** data&#x20;

By clicking on the next button, the system will advance to the **Billing** screen, where it is possible to add the following data:&#x20;

* **Cost field**: Select the field that will be used in the calculation&#x20;
* **Rule**: Informe the rule that will be used from the Organizational Map

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FC906xbXagQZ1f7K7bnJ6%2Fimage.png?alt=media&#x26;token=827cb00c-2681-4dea-a758-07d7d3632191" alt=""><figcaption></figcaption></figure>

**Step 5**: Enter **Observability** data&#x20;

When you click the next button, the system will advance to the **Observability** screen, where it is possible to add the following data:&#x20;

* **Grouping field**: Select the field that will be used to group the resources.&#x20;
* **Additional fields**: Select the fields that will be added to the final table.&#x20;
* **Filters**: Inform the desired filter options&#x20;
* **Metrics**: Select the field and enter the percentage that will be assigned to it for calculation purposes. More than one metric can be added.
* **Metrics**: Select the field and enter the percentage that will be assigned to it to make the calculation, and more than one metric can be added.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FKtyOZWZPid2XC0hwta5o%2Fimage.png?alt=media&#x26;token=32d502b0-d402-46e4-ace1-32c17b4cc606" alt=""><figcaption></figcaption></figure>

**Step 6**: Enter **Partition** data

When you click the next button, the system will advance to the **Partition** screen, where it is possible to add the following data:&#x20;

* **Billing partition**: Select the billing field that will be used to make the comparison.&#x20;
* **Source partition**: Select the field that will be used in the observability to compare with the billing.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FZEl8wnGw9oTaYsSAST2d%2Fimage.png?alt=media&#x26;token=cf4b55be-d35f-48d1-9038-7505dbdf252d" alt=""><figcaption></figcaption></figure>

In this part, the system will match billing with observability, where the Resource ID is usually used. This way, it identifies in billing how much the Resource ID was spent and checks the same ID in observability to make the distribution and obtain more accurate information.

When filling in the **Billing Partition** and **Source Partition** data, the system will inform how many matched in the billing, how many were found in the source and how many did not match.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FBjrv6aIZx2dKrJ7eHVfu%2Fimage.png?alt=media&#x26;token=85574bf4-771c-42cd-a517-0d853a034099" alt=""><figcaption></figcaption></figure>

Finally, by clicking Save, it is possible to view the Advanced Chargeback created on the main screen:

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FRTO64BOFuuFweoPzSNqD%2Fimage.png?alt=media&#x26;token=2beeeb76-869b-4c6d-a495-5a8e509d4fdc" alt=""><figcaption></figcaption></figure>
