Update a license service
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.
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 fields to change.
application/json- body
The fields you can set on a license service. On create, name, label and type are required, and configuration too for a list (with at least one key) or a remote_url service. On update, send only the fields you want to change; inside configuration, only the fields you send change.
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. Optional for generated: on create, or when an update changes type to generated, leaving it out (or null) takes every default; on any other update it keeps the saved settings. On an update that does not send type, it is checked against the service's current type (for generated: prefix up to 8 letters or digits, activation_limit 1 to 100 or null, duration value 1 to 1000, subscription_grace_days 0 to 30), and a value outside those answers 400 with code invalid_input.
The updated 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 POST 'https://api.comecero.com/api/v1/license_services/string' \ -H 'Content-Type: application/json' \ -d '{ "configuration": { "remove_after_use": false }}'{ "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 }}Get a license service GET
Returns one license service, with every key of a `list` service. Secret and trusted tokens may call it.
Delete a license service DELETE
Deletes a license service for good. It is not checked whether products still use it, so remove it from your products first. Licenses already issued are kept. Secret and trusted tokens may call it.