Reactivate a license

Reactivate (unsuspend) a previously revoked license key.

Use this when:

  • a customer completes payment after being revoked

  • you temporarily suspended access and want to restore it

Endpoint

POST /project/{project}/licenses/{license}/reactivate

Full URL:

https://api.devpayr.dev/api/v1/project/{project}/licenses/{license}/reactivate

Authentication

βœ… Required: API Key

Send your API key using:

X-API-KEY: <your_api_key>

Path Parameters

Parameter
Type
Required
Description

project

integer

Yes

The ID of the project that owns the license.

license

integer

Yes

The ID of the license record to reactivate.

license here is the license ID, not the license key string (uuid).

Request Body

No request body is required.

Example Request

Response

Success (200)

Returns a standard success envelope with a message.

Example Response (typical)

Our API returns both:

  • a top-level success message, and

  • a data.message that describes the reactivation result.

Access Rules

DevPayr validates the request in the following order:

1) API key must be allowed to manage the project

Project-scoped API keys

  • If your API key is scoped to a project, it must match {project}.

Error (403)

Global API keys

  • If your API key is global, it must belong to the owner of the project.

Error (403)

2) License must belong to the project

If the license is not tied to the project:

Error (403)

3) License must be revoked before reactivating

You can only reactivate a revoked license.

Error (403)

4) License must not be expired

If the license has an expiration date and it is already in the past, reactivation is blocked.

Error (403)

Errors

Missing API Key (401)

Invalid / Expired API Key (403)

Not Found (404)

If the project or license record does not exist:

Rate Limited (429)

Last updated