1. Events
Tjar
  • 🗂️ Overview
  • 🚀 Start Here
  • Orders
    • List Orders
    • Get Order Details
    • Order Statuses
    • Create Order
    • Change Order Status
  • Products
    • Digital
      • Create Digital Product
      • Get Digital Product Details
      • Update Digital Product
    • Booking
      • Get Booking Product Details
      • Create Booking Product
      • Update Booking Product
    • Service
      • Get Service Product
      • Create Service Product
      • Update Service Product
    • Physical
      • Get Physical Product Details
      • Create Physical Product
      • Update Physical Product
    • List All Products
    • Get Product Details
    • Delete Product
  • Media
    • Upload Media
    • Upload Multiple Media
    • Update Media
  • Webhook
    • Events
      • Cart Abandoned
      • Order Created
      • Order Created
      • Order Status Changed
      • Order Updated
      • Product Created
      • Product Deleted
      • Product Updated
      • Product Review Submitted
      • Product Stock Update
      • Customer Created
      • Customer Updated
      • Customer Login
      • Customer Welcome
      • Category Created
      • Category Updated
      • Category Deleted
      • Brand Created
      • Brand Updated
      • Brand Deleted
    • List Webhooks
      GET
    • Register Webhook
      POST
    • Update Webhook
      PUT
    • Delete Webhook
      DELETE
    • Verify Signature
      POST
    • Refresh Secret
      POST
    • Webhook Events
      GET
  • Abandoned Cart
    • List Abandoned Carts
    • Get Abandoned Cart Details
    • Send Reminder
  1. Events

Product Stock Update

Product Stock Update Webhook#

Triggered when a product's stock updated.

Event Name#

product.stock.update

Payload Example#

{
  "event": "product.stock.update",
  "created_at": "2026-07-13T22:44:23+03:00",
  "data": {
    "product": {
      "id": 230,
      "identifier": 230,
      "slug": "nike-sports-ssshoe-01",
      "name": {
        "ar": "حذاء رياضي نايك",
        "en": "Nike Sports Shoe"
      },
      "summary": {
        "ar": "حذاء رياضي مريح وأنيق",
        "en": "Comfortable and stylish sports shoe"
      },
      "description": {
        "ar": "<p>وصف تفصيلي للحذاء الرياضي بمواد عالية الجودة</p>",
        "en": "<p>Detailed description of the sports shoe with high quality materials</p>"
      },
      "type": "physical",
      "type_id": 1,
      "price": 79.99,
      "sale_price": 49.99,
      "is_refundable": true,
      "min_purchase": 1,
      "max_purchase": 5,
      "image": "https://example.com/assets/img/no-image.jpg",
      "is_published": true,
      "stock": 120,
      "is_unlimited": false,
      "ratings": null,
      "video": {
        "video_source": "youtube",
        "video_id": "dQw4w9WgXcQ",
        "video": "dQw4w9WgXcQ"
      },
      "created_at": "2026-06-29 15:37:53",
      "updated_at": "2026-06-29 15:37:53",
      "product_options": [
        {
          "type": "number",
          "title": { "ar": "المقاس", "en": "Size" },
          "sub_title": { "ar": "", "en": "" },
          "options": null,
          "is_required": false,
          "multi_select": false
        }
      ],
      "brand": {
        "id": 1,
        "title": "",
        "name": { "ar": "Brand A", "en": "Brand A" },
        "description": { "ar": "Brand A", "en": "Brand A" },
        "logo": "https://example.com/assets/img/no-image.jpg",
        "banner": "https://example.com/assets/img/no-image.jpg"
      },
      "badge": {
        "id": 2,
        "name": "اكثر مبيعآ",
        "image": "https://example.com/assets/img/no-image.jpg"
      },
      "tags": [
        { "id": 603, "tag_name": "Nike" },
        { "id": 604, "tag_name": "Sports" },
        { "id": 605, "tag_name": "Shoes" },
        { "id": 606, "tag_name": "Running" }
      ],
      "categories": [
        {
          "id": 1,
          "name": { "ar": "Elektronik", "en": "Elektronik" },
          "description": { "ar": "Elektronik", "en": "Elektronik" },
          "image": "https://example.com/assets/img/no-image.jpg"
        },
        {
          "id": 1,
          "name": { "ar": "Elektronik", "en": "Elektronik" },
          "description": { "ar": "Elektronik", "en": "Elektronik" },
          "image": "https://example.com/assets/img/no-image.jpg"
        }
      ],
      "sub_categories": [
        {
          "id": 1,
          "name": { "ar": "Ebook", "en": "Ebook" },
          "description": { "ar": "Ebook", "en": "Ebook" },
          "image": "https://example.com/assets/img/no-image.jpg"
        },
        {
          "id": 2,
          "name": { "ar": "Video Tutorial", "en": "Video Tutorial" },
          "description": { "ar": "", "en": "" },
          "image": "https://example.com/assets/img/no-image.jpg"
        }
      ],
      "child_categories": [
        {
          "id": 1,
          "name": { "ar": "Pengetahuan Umum", "en": "Pengetahuan Umum" },
          "description": "",
          "image": "https://example.com/assets/img/no-image.jpg"
        }
      ],
      "inventory": {
        "id": 217,
        "sku": "NIKE-SHOssE-01",
        "stock_count": 120,
        "sold_count": 0,
        "inventory_details": [
          {
            "id": 341,
            "color": { "id": 1, "code": "#ff3838", "name": { "ar": "Red", "en": "Red" } },
            "size": null,
            "image": "https://example.com/assets/img/no-image.jpg",
            "additional_price": 0,
            "additional_cost": 0,
            "stock_count": 30,
            "sold_count": 0,
            "attributes": [
              { "id": 661, "name": "Material", "value": "Leather" },
              { "id": 662, "name": "Season", "value": "Summer" }
            ]
          },
          {
            "id": 342,
            "color": { "id": 4, "code": "#ffffff", "name": { "ar": "White", "en": "White" } },
            "size": null,
            "image": "https://example.com/assets/img/no-image.jpg",
            "additional_price": 5,
            "additional_cost": 2,
            "stock_count": 25,
            "sold_count": 0,
            "attributes": [
              { "id": 663, "name": "Material", "value": "Leather" },
              { "id": 664, "name": "Season", "value": "Summer" }
            ]
          },
          {
            "id": 343,
            "color": { "id": 5, "code": "#0984e3", "name": { "ar": "Blue", "en": "Blue" } },
            "size": null,
            "image": "https://example.com/assets/img/no-image.jpg",
            "additional_price": 0,
            "additional_cost": 0,
            "stock_count": 40,
            "sold_count": 0,
            "attributes": [
              { "id": 665, "name": "Material", "value": "Mesh" },
              { "id": 666, "name": "Season", "value": "Summer" }
            ]
          },
          {
            "id": 344,
            "color": { "id": 5, "code": "#0984e3", "name": { "ar": "Blue", "en": "Blue" } },
            "size": null,
            "image": "https://example.com/assets/img/no-image.jpg",
            "additional_price": 5,
            "additional_cost": 2,
            "stock_count": 35,
            "sold_count": 0,
            "attributes": [
              { "id": 667, "name": "Material", "value": "Mesh" },
              { "id": 668, "name": "Season", "value": "Summer" }
            ]
          }
        ]
      },
      "delivery_options": [
        {
          "id": 1,
          "icon": "las la-gift",
          "title": { "ar": "التسليم المقدر", "en": "التسليم المقدر" },
          "sub_title": { "ar": "خلال 4 أيام", "en": "خلال 4 أيام" }
        },
        {
          "id": 2,
          "icon": "las la-gift",
          "title": { "ar": "الشحن مجاني", "en": "الشحن مجاني" },
          "sub_title": { "ar": "عند الطلب بأكثر من 100 ريال", "en": "عند الطلب بأكثر من 100 ريال" }
        }
      ],
      "return_policy": {
        "id": 145,
        "shipping_return_description": "Return within 30 days with original packaging"
      },
      "gallery": [
        { "image": "https://example.com/assets/img/no-image.jpg" },
        { "image": "https://example.com/assets/img/no-image.jpg" },
        { "image": "https://example.com/assets/img/no-image.jpg" },
        { "image": "https://example.com/assets/img/no-image.jpg" }
      ],
      "meta_data": {
        "id": 222,
        "title": "Nike Sports Shoe | Best Price",
        "description": "Buy the best Nike sports shoes at unbeatable prices",
        "image": "https://example.com/assets/img/no-image.jpg",
        "fb_title": "Nike Sports Shoe — Great Deal",
        "fb_description": "Premium Nike sports shoes at the best prices. Shop now!",
        "fb_image": "https://example.com/assets/img/no-image.jpg",
        "tw_title": "Nike Sports Shoe",
        "tw_description": "Get your Nike sports shoes today at amazing prices!",
        "tw_image": "https://example.com/assets/img/no-image.jpg"
      },
      "digital_meta_data": null,
      "booking_meta_data": null,
      "service_meta_data": null,
      "uom": {
        "id": 83,
        "product_id": 230,
        "unit_id": 1,
        "unit": { "id": 1, "name": "Kg" },
        "uom": 10,
        "length": 30,
        "width": 12,
        "height": 10
      }
    }
  }
}

Payload Schema#

Root Object#

FieldTypeDescription
eventstringWebhook event name
created_atdatetimeEvent creation timestamp
dataobjectEvent payload

Product Object#

FieldTypeDescription
idintegerProduct ID
identifierintegerProduct identifier
slugstringURL slug
nameobjectLocalized name (ar, en)
summaryobjectLocalized short summary (ar, en)
descriptionobjectLocalized full description (HTML, ar, en)
typestringProduct type (e.g. physical, digital)
type_idintegerNumeric product type code
pricedecimalRegular price
sale_pricedecimalDiscounted/sale price
is_refundablebooleanWhether product supports refunds
min_purchaseintegerMinimum purchasable quantity
max_purchaseintegerMaximum purchasable quantity
imagestringProduct image URL
is_publishedbooleanPublish status
stockintegerCurrent stock count
is_unlimitedbooleanWhether stock is unlimited
ratingsobject|nullProduct rating summary, if available
videoobject|null{video_source, video_id, video}
created_atdatetimeProduct creation date
updated_atdatetimeLast product update date
product_optionsarrayConfigurable options for the product
brandobjectProduct brand
badgeobjectProduct badge
tagsarrayProduct tags, each {id, tag_name}
categoriesarrayProduct categories
sub_categoriesarrayProduct subcategories
child_categoriesarrayProduct child categories
inventoryobjectInventory details (see below)
delivery_optionsarrayDelivery option messages
return_policyobjectReturn policy details
galleryarrayProduct gallery images, each {image}
meta_dataobjectSEO/social meta data
digital_meta_dataobject|nullDigital product metadata, if applicable
booking_meta_dataobject|nullBooking product metadata, if applicable
service_meta_dataobject|nullService product metadata, if applicable
uomobjectUnit of measure / dimensions

Product Option Object#

FieldTypeDescription
typestringInput type (text, number, textarea, checkbox, radio)
titleobjectLocalized title (ar, en)
sub_titleobjectLocalized subtitle (ar, en)
optionsobject|nullSelectable choices with cost, keyed by locale then label
is_requiredbooleanWhether the option is required
multi_selectbooleanWhether multiple selections are allowed

Brand Object#

FieldTypeDescription
idintegerBrand ID
titlestringBrand title
nameobjectLocalized name (ar, en)
descriptionobjectLocalized description (ar, en)
logostringBrand logo URL
bannerstringBrand banner URL

Badge Object#

FieldTypeDescription
idintegerBadge ID
namestringBadge name
imagestringBadge image URL

Tag Object#

FieldType
idinteger
tag_namestring

Category / Sub-category / Child-category Object#

FieldTypeDescription
idintegerCategory ID
nameobjectLocalized name (ar, en)
descriptionobject|stringLocalized description (ar, en)
imagestringCategory image URL

Inventory Object#

FieldTypeDescription
idintegerInventory record ID
skustringStock keeping unit
stock_countintegerTotal units in stock
sold_countintegerTotal units sold
inventory_detailsarrayPer-variant stock breakdown (see below)

Inventory Detail Object (inventory_details[])#

FieldTypeDescription
idintegerInventory detail ID
colorobject|null{id, code, name} variant color
sizeobject|nullVariant size, if applicable
imagestringVariant image URL
additional_pricedecimalExtra price for this variant
additional_costdecimalExtra cost for this variant
stock_countintegerStock count for this variant
sold_countintegerSold count for this variant
attributesarrayVariant attributes, each {id, name, value}

Delivery Option Object#

FieldTypeDescription
idintegerDelivery option ID
iconstringIcon class
titleobjectLocalized title (ar, en)
sub_titleobjectLocalized subtitle (ar, en)

Return Policy Object#

FieldTypeDescription
idintegerReturn policy ID
shipping_return_descriptionstringReturn policy description text

Meta Data Object#

FieldTypeDescription
idintegerMeta data record ID
titlestringSEO title
descriptionstringSEO description
imagestringSEO image URL
fb_titlestringFacebook share title
fb_descriptionstringFacebook share description
fb_imagestringFacebook share image URL
tw_titlestringTwitter share title
tw_descriptionstringTwitter share description
tw_imagestringTwitter share image URL

UOM Object#

FieldTypeDescription
idintegerUOM record ID
product_idintegerRelated product ID
unit_idintegerUnit ID
unitobject{id, name} unit info
uomdecimalWeight/measure value
lengthdecimalProduct length
widthdecimalProduct width
heightdecimalProduct height

Response#

Your endpoint should return:
Modified at 2026-07-13 20:15:42
Previous
Product Review Submitted
Next
Customer Created
Built with