Skip to main content
GET
/
api
/
v2
/
admin
/
products
/
{id}
Get product details
curl --request GET \
  --url https://faisalshop.mvp-apps.ae/api/v2/admin/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Tenant-ID: <x-tenant-id>'
{
  "id": 123,
  "name": "<string>",
  "description": "<string>",
  "price": 123,
  "stock": 123,
  "category_id": 123
}

Overview

Retrieve detailed information about a specific product by ID. The product must belong to the tenant specified in the X-Tenant-ID header.

Authorization

  • User must be authenticated with a valid Bearer token
  • User must be a member of the tenant
  • Requires X-Tenant-ID header

Tenant Isolation

Products are automatically filtered by tenant. If you request a product that belongs to a different tenant, you’ll receive a 404 error.

Example Usage

curl -X GET \
  https://faisalshop.mvp-apps.ae/api/v2/admin/products/42 \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'X-Tenant-ID: 123'
const response = await axios.get(
  `/api/v2/admin/products/${productId}`,
  {
    headers: {
      Authorization: `Bearer ${token}`,
      'X-Tenant-ID': tenantId
    }
  }
);

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Tenant-ID
string
required

Tenant ID for multi-tenancy

Path Parameters

id
integer
required

Response

200 - application/json

Product details

id
integer
name
string
description
string
price
number<float>
stock
integer
category_id
integer