Endpoint
This endpoint requires authentication with the
edit_products scope.Authentication
This endpoint requires an OAuth access token with theedit_products scope. Include your access token in the request:
Request Parameters
string
required
Your OAuth access token with
edit_products scopestring
required
The license key whose usage count should be decremented
string
The unique identifier for your product (recommended)
string
The product’s permalink (either unique or custom). Can be used instead of
product_id.Response Fields
boolean
Whether the operation was successful
integer
The updated usage count for this license (after decrementing)
object
Complete purchase information associated with this license (same structure as the verify endpoint)
Examples
Decrement license usage count
Success Response
Error Responses
Unauthorized (401)
Forbidden (403)
Returned when the access token doesn’t have theedit_products scope.
Not Found (404)
Returned when the license doesn’t exist or doesn’t belong to your product.Common Use Cases
Software Deactivation
When a customer deactivates your software on a device, you can decrement the usage counter to free up an activation slot. This is especially useful for licenses that limit the number of simultaneous activations.Undo Accidental Verification
If your system accidentally verified a license multiple times (e.g., due to a bug or network retry), you can decrement the counter to correct the usage count.Testing and Development
During development and testing, you may need to decrement usage counts to reset test licenses to their original state.The usage counter will not go below 0. If the current count is already 0, calling this endpoint will succeed but the count will remain at 0.