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

# What counts as a use

> When an ESX export is charged, what is never charged, and what to look at before you ask for the file.

ESX exports are charged by use. Sending, checking and building a roof are free; a use is counted when you first ask for an export's ESX.

## A use

On a live export, the first successful `POST /v1/esx-exports/{id}/download` is one use. The export's `first_downloaded_at` records when. The price of a use is in your agreement with OSA, not in the API.

That call is a `POST`, not a `GET`, because the first one is charged.

## Not a use

* **Checking a roof** with `POST /v1/esx-exports/checks`. No export is recorded.
* **Sending a roof** with `POST /v1/esx-exports`, whether it is built, refused or fails. An export you never ask for is never charged.
* **Asking again.** Later calls return a fresh link and are not another use.
* **A corrected version**, however many you send. If you already asked for the export's ESX, asking for the new one is not another use.
* **A version that fails while being sent.** The export is `failed` until you send the version again, still at no further charge.
* **Asking too early, or while the export provider is unavailable.** `409 export_not_ready` and `503 export_provider_unavailable` are not charged.
* **Test exports**, sent with an `osa_test_` key.

Each export is counted once, so correct an order's roof as a new version of its export, not as a new export. A second export with the same `reference` is refused with `409 duplicate_export` in any case.

## Before you ask

You are charged whether or not the export has warnings. Before you ask for the file, look at:

* `clean`: `true` when the latest version has no warnings.
* `major_warnings`: the number of `major` warnings on the latest version.

If they show a problem you want fixed first, send a corrected roof as a new version and ask for the file once that is `ready`. [Roof checks and problems](https://docs.osaconnection.com/roof-checks.md) says what each warning means, and [ESX exports](https://docs.osaconnection.com/esx-exports.md#correct-a-roof) how to send a new version.


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