Get a license service
Returns one license service, with every key of a list service. Secret and trusted tokens may call it.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
license_service_id*stringThe license service id.
show?stringComma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
hide?stringComma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
formatted?booleanWhen true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.
falseThe license service.
application/json- response
The source of license keys for a product: a list of keys you upload, your own license server that Comecero calls after each sale, or keys Comecero makes for you (generated).
object*"license_service"The object type. Always license_service.
"license_service"url*stringThe URL of this license service in the API.
urilicense_service_id*stringThe id of the license service.
date_created*stringWhen the service was created.
date-timedate_modified*stringWhen the service was last changed.
date-timetest*booleanTrue for a test-mode service.
account_id*stringThe account the service belongs to.
name*stringYour name for the service.
length <= 75label*stringWhat the key is called when shown to the customer, for example License Code or Registration Code.
length <= 75description*|Your notes about the service.
length <= 256instructions*|How to use the key, shown to the customer with it. Basic HTML is kept; anything else is stripped.
length <= 1024type*stringWhere keys come from: remote_url asks your license server, list hands out keys you uploaded, generated has Comecero make each key and lets your app activate it on a limited number of devices. A service can become generated only when Comecero has turned license keys on for your account (otherwise 409 with code feature_not_enabled).
"remote_url""list""generated"expand*|For remote_url: the child objects to expand in the order sent to your server, as in the expand query parameter. customer is always expanded.
show*|For remote_url: the only order fields to send to your server. Cannot be used with hide.
hide*|For remote_url: order fields to leave out of what is sent to your server. Cannot be used with show.
configuration*||The settings for the service's type.
formatted?Present only when you send formatted=true.
curl -X GET 'https://api.comecero.com/api/v1/license_services/string'{ "object": "license_service", "url": "https://api.comecero.com/api/v1/license_services/0095012789659LsuOeAWLC", "license_service_id": "0095012789659LsuOeAWLC", "date_created": "2026-11-02T16:26:29Z", "date_modified": "2026-11-02T16:45:25Z", "test": true, "account_id": "AB1234", "name": "Widget Pro keys", "label": "License Code", "description": null, "instructions": "Open Widget Pro, choose Help, then Enter License, and paste the code.", "type": "remote_url", "expand": null, "show": null, "hide": null, "configuration": { "url": "https://licenses.example.com/issue", "format": "json", "http_authorization_username": null, "custom_header_name": null, "custom_header_value": null }}Create a license service POST
Creates a license service. Link it to a product with the product's `license_service_id`, and every sale of that product gets a license key from it. A `generated` service needs license keys turned on for your account by Comecero; until then it answers `409` with code `feature_not_enabled`. Secret and trusted tokens may call it.
Update a license service POST
Changes a license service. Send only the fields you want to change. Inside `configuration`, only the fields you send change, but `licenses` replaces the whole key list, and for a `generated` service `null` clears `prefix`, `activation_limit` or `duration`. Changing `type` drops the settings of the old type. Without `type`, `configuration` is checked against the service's current type, so a `generated` service answers `400` (`invalid_input`) for a setting outside its limits, such as an `activation_limit` over 100. A service can become `generated` only when Comecero has turned license keys on for your account (otherwise `409` with code `feature_not_enabled`); one that already is stays editable. `prefix`, `activation_limit`, `duration` and `subscription_grace_days` apply to keys sold from then on: a key keeps the activation limit per unit and grace days it was sold with. `revoke_on_refund` and `revoke_on_chargeback` apply to every refund and chargeback handled after the change, on existing keys too. Secret and trusted tokens may call it.