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.
Get Product
GET
Returns full details for a single product, including images, digital codes, subscription variants, and categories.
/products/Authentication
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer YOUR_API_TOKEN | Yes |
Accept | application/json | Recommended |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The product ID |
Example Request
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Product ID |
store_id | integer | Store ID |
name | string | Product name |
slug | string | URL-friendly identifier |
type | string | Product type: product, code, service, subscription, course, license |
price | float | Display price |
discount_price | float/null | Discounted price if a discount is active |
discount_expiry | string/null | Discount expiry date |
description | string | Product description |
status | integer | Product status (1 = active, 3 = disabled) |
min_qty | integer | Minimum order quantity |
max_purchase_count | integer/null | Maximum total purchases allowed (null = unlimited) |
purchase_count | integer | Current total purchase count |
fields | array | Custom fields/options configured for the product |
is_noticeable | boolean | Whether the product accepts customer notes |
license_config | object/null | License configuration (for license type products) |
metadata | object/null | Product metadata including display settings |
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) |
image | object/null | Product image with full_link containing the full CDN URL |
image.full_link | string | Full CDN URL for the image |
codes | array | Available (unsold) digital codes (for code type products). Only codes where order_product_id is null are returned. |
subscription_variants | array | Subscription plans (for subscription type products). Each variant includes a durationText field with the Arabic duration label. |
subscription_variants[].durationText | string | Arabic label for the duration (e.g., “شهر”, “سنه”) |
categories | array | Assigned categories with pivot data |
The
codes array only includes unsold codes (where order_product_id is null). For security, ensure you do not expose this data to end users in client-side applications.Error Responses
| Code | Description |
|---|---|
401 | Unauthorized — invalid or missing token |
404 | Product not found |

