Flavours API Documentation
  1. Product Categories
Flavours API Documentation
  • Readme
  • Developer Guide
  • Authorization
  • Includables
  • Pagination
  • Sorting
  • Retrieve Market Information
  • Retrieve Branch Information
  • Me
    • Overview
    • Detail
      GET
  • Branches
    • Overview
    • List
      GET
    • Detail
      GET
    • Create
      POST
    • Update
      POST
    • Delete
      DELETE
  • Orders
    • Overview
    • List
      GET
    • Detail
      GET
    • Create
      POST
    • Calculate
      POST
    • Checkout
      POST
    • Update
      POST
    • Sync
      POST
  • Customers
    • Overview
    • List
    • Detail
    • Create
    • Update
  • Products
    • Overview
    • List
    • Detail
    • Create
    • Update
    • Delete
  • Product Categories
    • Overview
    • List
      GET
    • Detail
      GET
  • Discounts
    • Overview
    • List
    • Detail
    • Verify
  • Payment Methods
    • Overview
    • List
    • Detail
  • Table
    • Overview
    • List
    • Detail
    • Create
    • Update
    • Delete
  • Printer
  • Webhook
    • Orders Webhooks
      • Webhook Events
      • Payload
    • Product Webhooks
      • Webhook Events
      • Payload
    • Loyalty Webhooks
      • Promotional Coupon
    • Customers Webhooks
      • Webhook Events
      • Payload
    • Error Webhook
      • Stay Alert to Connectivity Issues
    • Third-Party
      • Ballurh
        • Install Ballurh
      • Loyapro
        • Loyalty
          • Check Reward
          • Redeem Reward
      • Bonat
        • Check Reward
        • Redeem Reward
      • Fai
        • Register Entity
  1. Product Categories

Detail

Developing
DEVELOPMENT
https://api.flavours.sa/dev/api/v2
DEVELOPMENT
https://api.flavours.sa/dev/api/v2
GET
https://api.flavours.sa/dev/api/v2
/product-categories/{productCategoryId}
This endpoint returns comprehensive data product category's core attributes (ID, name, logo) and its detail.

Path Parameters#

Validation :#

FieldTypeRuleDescription
productCategoryIdstringrequiredId from 'Product Category` model

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
productCategoryId
string 
required
Example:
1

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flavours.sa/dev/api/v2/product-categories/1'

Responses

🟢200OK
application/json
Body
meta
object 
required
code
integer 
required
status
string 
required
message
string 
required
data
object 
required
id
integer 
required
icon
string 
required
name_en
string 
required
name_ar
string 
required
deleted_at
null 
required
sectors
array [object {3}] 
required
Example
{
  "meta": {
    "code": 200,
    "status": "success",
    "message": "Data Loaded Successfully"
  },
  "data": {
    "id": 1,
    "icon": "🥤",
    "name_en": "Mojito",
    "name_ar": "موهيتو",
    "deleted_at": null,
    "sectors": [
      {
        "id": 1,
        "sector_id": 1,
        "product_category_id": 1
      },
      {
        "id": 26,
        "sector_id": 2,
        "product_category_id": 1
      },
      {
        "id": 51,
        "sector_id": 3,
        "product_category_id": 1
      },
      {
        "id": 76,
        "sector_id": 4,
        "product_category_id": 1
      },
      {
        "id": 126,
        "sector_id": 6,
        "product_category_id": 1
      },
      {
        "id": 402,
        "sector_id": 13,
        "product_category_id": 1
      },
      {
        "id": 545,
        "sector_id": 5,
        "product_category_id": 1
      }
    ]
  }
}
Previous
List
Next
Overview
Built with