> For the complete documentation index, see [llms.txt](https://docs.licensespring.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.licensespring.com/management-api/license/import-licenses-from-csv.md).

# Import Licenses From CSV

**URL** : `/api/v1/licenses/import_from_csv/`

**Method** : `POST`

#### Content-Type

Required `Content-Type` is `multipart/form-data` with the following single key value pair:

* Key: `file`
* Value: `{csv file from which to import}`

#### Required CSV Headers

* `license__license_key`
* `product__short_code`

#### Possible CSV Headers

* `customer__email`
* `customer__first_name`
* `customer__last_name`
* `customer__company_name`
* `customer__phone`
* `customer__reference`
* `customer__address`
* `customer__postcode`
* `customer__state`
* `customer__city`
* `customer__country`
* `order__store_id`
* `order__type`
* `order__is_test`
* `order__is_trial`
* `order__download_id`
* `order__language`
* `order__campaign_params`
* `license__license_key`
* `license__enabled`
* `license__max_activations`
* `license__allow_unlimited_activations`
* `license__validity_period`
* `license__valid_duration`
* `license__license_type`
* `license__enable_maintenance_period`
* `license__maintenance_period`
* `license__maintenance_duration`
* `license__is_trial`
* `license__max_consumptions`
* `license__subscription_id`
* `license__prevent_vm`
* `license__allow_overages`
* `license__max_overages`
* `license__reset_consumption`
* `license__consumption_period`
* `license__trial_days`
* `license__is_floating`
* `license__is_floating_cloud`
* `license__floating_users`
* `license__note`
* `license__max_license_users`
* `license__floating_timeout`
* `product__short_code`

#### Data example

```csv
customer__email,order__store_id,license__license_key,product__short_code
example1@email.com,pn7XXkuCRdsadasdy9S2XSsCYQ,impo-rtor-derk-ey00,psc
example1@email.com,pn7XXkuCRdsadasdy9S2XSsCYQ,impo-rtor-derk-ey01,psc
```

#### Success Response

**Code** : `200 OK`

**Content examples** :

```json
{
    "job_id": 10
}
```

`job_id` from response can be used to query the import result.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.licensespring.com/management-api/license/import-licenses-from-csv.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
