OVIRO LogoOVIRO
Quản lý sản phẩm (PIM)Thương hiệu

Chi tiết thương hiệu (ID)

Lấy thông tin chi tiết một thương hiệu theo ID

Endpoint

GET /site/brands/{id}

Headers

KeyValueBắt buộcMô tả
SiteTenantId{tenant_id}ID của công ty/tenant.

Parameters

TênKiểuBắt buộcMô tả
idintID của thương hiệu

Workflow & Logic

  1. Tìm thương hiệu theo ID.
  2. Kiểm tra thương hiệu thuộc đúng company (tenant).
  3. Kiểm tra trạng thái phải là Kích hoạt (status = 1).
  4. Nếu hợp lệ: Trả về đối tượng thương hiệu.
  5. Nếu không tìm thấy hoặc không hợp lệ: Trả về lỗi 404.

Response Schema

HTTP 200 - JSON Object

Trả về đối tượng Brand Object đầy đủ.

{
    "company_id": 1,
    "creator_id": 10,
    "id": 50,
    "name": "Nike",
    "description": "<p>Thương hiệu thể thao hàng đầu thế giới</p>",
    "display_order": 1.0,
    "avatar_file_id_list": [201],
    "avatar_file_list": [
        {
            "id": 201,
            "url": "https://example.com/nike-logo.jpg"
        }
    ],
    "gallery_file_id_list": [301, 302],
    "gallery_file_list": [
        {
            "id": 301,
            "url": "https://example.com/nike-gallery-1.jpg"
        },
        {
            "id": 302,
            "url": "https://example.com/nike-gallery-2.jpg"
        }
    ],
    "status": 1,
    "seo_url": "nike",
    "seo_title": "Nike - Thương hiệu thể thao",
    "seo_meta_description": "Sản phẩm chính hãng Nike",
    "seo_meta_keyword": "nike, thể thao",
    "seo_graph_file_id": 200,
    "seo_graph_file": {
        "id": 200,
        "url": "https://example.com/nike-seo-graph.jpg"
    },
    "seo_canonical": "",
    "seo_options": {},
    "date_created": 1710000000,
    "date_modified": 1710000000
}

HTTP 404

Nếu không tìm thấy thương hiệu hoặc thương hiệu không ở trạng thái kích hoạt.

On this page