Skip to main content
The /products resource represents the software titles and services you sell through Avalex. Each product record defines how licensing works — whether a license is required, whether billing recurs on a schedule, and the default number of IP addresses and hardware IDs (HWIDs) that a license for this product allows. When a license is issued for a product, it inherits these defaults unless overridden at the license level.

Required Permissions


List All Products

string
required
Bearer <token> or Basic credentials.
Returns an array of all product records in your catalog.
Response — 200 OK

Create a Product

string
required
Bearer <token> or Basic credentials.
string
required
Display name of the product.
string
required
Category of the product, such as software.
string
Human-readable description of the product.
number
required
Price in your account’s base currency.
boolean
required
Whether customers must have a valid license to use this product.
boolean
required
Whether this product is billed on a recurring schedule.
integer
Number of days between billing cycles. Only relevant when isSubscription is true.
integer | null
Default maximum number of IP addresses a license for this product may be bound to. Set to null for unlimited.
integer | null
Default maximum number of hardware IDs a license for this product may be bound to. Set to null for unlimited.
Creates a new product and returns the created record.
Response — 201 Created

Get a Product by ID

string
required
The unique product ID (e.g. prod_123).
Returns a single product record. Responds with 404 Not Found if no product with that ID exists.
Response — 200 OK

Update a Product

string
required
The unique product ID.
Performs a full replacement of the product record. You must include all fields you want to retain — omitted fields will be cleared. Returns 404 Not Found if the product does not exist.
Changing maxIps or maxHwids on a product does not retroactively update licenses that have already been issued. Only new licenses inherit the updated defaults.
Response — 200 OK

Delete a Product

string
required
The unique product ID.
Permanently removes the product record. Returns 204 No Content on success and 404 Not Found if the ID does not exist.
Response — 204 No Content

Product Schema

Full Schema Example