comecerodocs

Retry a license request

POST
/license_requests/{license_request_id}/retry

Runs a license request again now, failed or not. On success a new license is saved and added to the order item, and automatic retries stop. A failure is not returned as an error: the call still answers 200, so check status in the response (with debug=true for the reason). No request body. Secret and trusted tokens may call it.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

license_request_id*string

The license request id.

Query Parameters

debug?boolean

When true, the response adds retry_count, the attempt dates and last_failure_meta.

expand?string

Comma-separated child objects to return in full instead of as a URL, for example customer,payments. Use dot notation for nested objects (items.product), up to four levels deep. A single object takes up to 12 paths; a list takes up to 2, applied to every item. Extra paths are dropped without an error. See Expanding objects.

show?string

Comma-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?string

Comma-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?boolean

When 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.

Defaultfalse

Response Body

The license request after the attempt.

application/json
  1. response

One attempt by Comecero to get a license key from a license service for an order item. For a remote_url service this is also the body Comecero posts to your license server. Failed requests are retried on their own for several days.

object*"license_request"

The object type. Always license_request.

Value in"license_request"
url*string

The URL of this license request in the API.

Formaturi
license_request_id*string

The id of the license request.

date_created*string

When the request was first made.

Formatdate-time
date_modified*string

When the request last changed.

Formatdate-time
test*boolean

True for a test-mode request.

account_id*string

The account the request belongs to.

status*string

queued before the first attempt, completed once a key was issued, retry while it waits for another automatic attempt, and failed when the attempts ran out.

Value in"queued""completed""retry""failed"
product_id*string

The product the key is for.

license?||

The license issued, as a link, or the full object when you send expand=license. Null until a key is issued. Left out for tokens that may not read licenses.

license_service?|

The license service asked, as a link, or the full object when you send expand=license_service. Left out for tokens that may not read license services.

order*|

The order as it was sent to the license service, with the customer expanded and the service's expand, show and hide applied.

retry_count?integer

How many attempts have been made. Returned only with debug=true.

date_last_request_attempt?|

When the last attempt was made. Returned only with debug=true.

Formatdate-time
date_next_request_attempt?|

When the next automatic attempt is due. Returned only with debug=true.

Formatdate-time
last_failure_meta?|

Why the last attempt failed, with the first 500 characters of your server's response. Returned only with debug=true.

formatted?

Present only when you send formatted=true.

Example Request
curl -X POST 'https://api.comecero.com/api/v1/license_requests/string/retry'
Example Response
{  "object": "license_request",  "url": "https://api.comecero.com/api/v1/license_requests/0142130710483Lruow24Z6",  "license_request_id": "0142130710483Lruow24Z6",  "date_created": "2026-11-02T00:45:10Z",  "date_modified": "2026-11-07T15:02:44Z",  "test": true,  "account_id": "AB1234",  "status": "completed",  "product_id": "widget-pro.test",  "license": "https://api.comecero.com/api/v1/licenses/0142130710581LiRr8sT2c",  "license_service": "https://api.comecero.com/api/v1/license_services/0095012789659LsuOeAWLC",  "order": {    "object": "order",    "url": "https://api.comecero.com/api/v1/orders/6622-NXKHE-858",    "order_id": "6622-NXKHE-858",    "test": true  }}