comecerodocs

Get an import receipt

GET
/license_services/{license_service_id}/imports/{import_id}

Read saved row results, including a request still running after a lost reply. Secret and trusted tokens need license and service read access. Limited tokens cannot read receipts. Full keys are hidden. Read this before retrying the same body and key. Wait for each license's active_in_apollo before using devices, even when the import is completed.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

license_service_id*string

The resource id.

import_id*string

The resource id.

Match^lim_[0-9a-f]{64}$

Response Body

The saved receipt.

application/json
  1. response
object*string

The object type.

import_id*string

The saved receipt id.

Match^lim_[0-9a-f]{64}$
url*string

The receipt URL.

Formaturi
account_id*string

The owning account.

test*boolean

The authenticated mode.

date_created*string

When the request was saved.

Formatdate-time
date_modified*string

When progress last changed.

Formatdate-time
dry_run*boolean

Whether this was a dry run.

status*string

A completed import may still be preparing devices.

Value in"running""completed"
summary*
results*array<>
Example Request
curl -X GET 'https://api.comecero.com/api/v1/license_services/string/imports/string'
Example Response
{  "object": "license_import",  "import_id": "lim_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",  "url": "https://api.comecero.com/api/v1/license_services/ls_test/imports/lim_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",  "account_id": "AB1234",  "test": true,  "date_created": "2026-12-03T10:00:00Z",  "date_modified": "2026-12-03T10:00:01Z",  "dry_run": false,  "status": "completed",  "summary": {    "imported": 1,    "valid": 0,    "duplicate": 0,    "error": 1  },  "results": [    {      "index": 0,      "row_id": "ls-42",      "result": "imported",      "license_id": "license_test",      "license": "https://api.comecero.com/api/v1/licenses/license_test",      "key_last4": "8ABE",      "imported_activations": 1,      "error": null    },    {      "index": 1,      "row_id": "ls-43",      "result": "error",      "license_id": null,      "license": null,      "key_last4": null,      "imported_activations": 0,      "error": {        "type": "invalid_request",        "code": "license_import_invalid",        "message": "The activation count does not match the supplied devices.",        "reference": "LicenseImport",        "status": 400,        "meta": {          "field": "rows[1].activation_usage"        }      }    }  ]}

Import license keys POST

Import existing keys and devices into a generated service. Secret and trusted tokens need licenses:create and read access to the service, customers and products. Limited tokens cannot import. The token sets Test or Live mode. Other service types return 409 license_import_service_conflict. Send 1 to 20 rows, at most 500 devices and a body of at most 1 MiB. Each key allows 90 devices; contact support for more. Unknown fields and duplicate JSON properties are refused. Dry run checks rows and saves a receipt without creating licenses or devices. Confirm with a new Idempotency-Key. Check every row in a 200 report: failed rows do not undo successful rows. Exact source duplicates return the existing license. Changed source data returns license_import_conflict. A key used by another license returns license_key_conflict, including across modes in one account. Re-import does not restore removed devices or old settings. Match Comecero customers and products first. Optional order_id and item_id must name a one-time line for the same customer and product, and need order read/update access. Import creates no payments, invoices or subscriptions and keeps the exact expiry. Wait for active_in_apollo before using devices. After an unknown result, read the receipt when its ID is known, then explicitly retry the same body and key. If no receipt ID was received, deliberately resend the same body and Idempotency-Key to recover or continue it. Requests are never retried automatically.

List licenses GET

Returns the license keys issued for your orders, oldest first unless you send `desc=true`. Secret and trusted tokens may call it.