Skip to main content

Endpoint

Verifies that a license key is valid for a given product. This endpoint can optionally increment a usage counter to track how many times a license has been verified. This is commonly used for software licensing to validate customer purchases.
This endpoint does not require authentication and can be called from your application without an access token.

Request Parameters

string
required
The license key to verify (typically found in the purchase receipt)
string
The unique identifier for your product. This parameter is recommended and may be required for products created after a certain date.
The product’s permalink (either unique or custom). Can be used instead of product_id.
boolean
default:"true"
Whether to increment the usage counter for this license. Set to false to verify without tracking usage.

Response Fields

boolean
Whether the license verification was successful
integer
The number of times this license has been verified (with increment_uses_count=true)
object
Information about the purchase associated with this license
string
Encrypted purchase ID
string
Name of the product
string
Encrypted product ID
Full URL to the product page
string
Short unique identifier for the product
string
Email address of the purchaser
integer
Purchase price in cents
string
Currency code (e.g., “usd”)
integer
Quantity purchased
string
Timestamp when the purchase was created
string
Timestamp of the sale
integer
Numeric order number
string
The license key (same as the verified key, or new key if rotated)
string
Comma-separated list of variant options selected
array
Array of custom field responses from the purchase form
boolean
Whether the purchase has been refunded
boolean
Whether the purchase has been charged back
string
If this is a subscription, when it ended
string
If this is a subscription, when it was cancelled
string
If this is a subscription, when the last payment failed
boolean
Whether the customer agreed to be contacted

Examples

Verify a license with usage tracking

Verify without incrementing usage

Success Response

Error Responses

Invalid License Key (404)

Disabled License (404)

Access Revoked (404)

Missing product_id (500)

For products created after a certain date, the product_id parameter is required. If you receive this error, make sure to include the product_id in your request.

Common Use Cases

Software Activation

When a customer launches your software for the first time, call this endpoint to validate their license key. You can use the increment_uses_count parameter to track activations.

Periodic License Checks

For ongoing validation, set increment_uses_count=false to verify the license is still valid without inflating the usage counter.

Subscription Status

Check the subscription_ended_at, subscription_cancelled_at, and subscription_failed_at fields to determine if a subscription-based license is still active.