Documentation Index
Fetch the complete documentation index at: https://docs.rmz.gg/llms.txt
Use this file to discover all available pages before exploring further.
List Products
GET
Returns a paginated list of products with basic information (ID, name, slug, type, and price).
/productsAuthentication
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer YOUR_API_TOKEN | Yes |
Accept | application/json | Recommended |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number (default: 1) |
Example Request
Success Response
Only the selected fields (
id, name, slug, type, price) are returned from the database, but the model’s computed attributes (actual_price, current_stock, is_new, is_discounted, etc.) are always appended. Use the Get Product endpoint for the full product object.Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Product ID |
name | string | Product name |
slug | string | URL-friendly product identifier |
type | string | Product type: product, code, service, subscription, course, license |
price | float | Product price |
actual_price | float | Computed selling price (discount price if active, otherwise regular price) |
current_stock | integer | Current available stock |
is_new | boolean | Whether the product was created in the last 12 hours |
is_discounted | boolean | Whether an active discount is currently applied |
is_discount_expired | boolean | Whether the discount has expired |
show_discount_countdown | boolean | Whether to show a discount countdown timer |
show_discount_savings | boolean | Whether to show discount savings amount |
discount_savings_amount | float | Amount saved with discount (0 if no active discount) |
Error Responses
| Code | Description |
|---|---|
401 | Unauthorized — invalid or missing token |

