Tjar
    • 🗂️ Overview
    • 🚀 Start Here
    • Orders
      • List Orders
        GET
      • Get Order Details
        GET
      • Order Statuses
        GET
      • Create Order
        POST
      • Change Order Status
        POST
    • 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
      • List All Products
        GET
      • Get Product Details
        GET
      • Create Product
        POST
      • Update Product
        PATCH
      • Delete Product
        DELETE
    • Media
      • Upload Media
        POST
      • Upload Multiple Media
        POST
      • Update Media
        POST
    • Webhook
      • 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

    🚀 Start Here

    This guide will help you make your first successful request to the Tjar API.
    If you're integrating for the first time, start here before exploring the endpoint reference.

    Before you begin#

    Make sure you have:
    access to the target Tjar store
    permission to use the Developers/API section
    a valid API key
    the correct store domain
    a tool to test requests, such as cURL, Postman, or your backend application

    Step 1 — Open the Developers page#

    Before calling the API, open the store dashboard Developers page:
    Open Developers Page
    From this page, you can:
    generate an API key
    rotate the API key
    reveal/copy the generated key
    register webhook endpoints
    manage webhook secrets
    view webhook status and capacity

    Developers page screenshot#

    Developers Page Top Section

    Step 2 — Generate an API key#

    To access protected endpoints, generate an API key from the Developers page.
    Path inside dashboard:
    General Settings → Developers
    Keep your API key secure. Do not expose it in frontend code or public client applications.

    Step 3 — Identify the store domain#

    Tjar APIs are tenant-based, so each store uses its own domain.
    Examples:
    store1.tjar.sa
    demo-store.tjar.test
    You will use that domain as the base of every API request.

    Step 4 — Build the base URL#

    Use this format:
    https://{store-domain}/api/core/v1
    Example
    https://example-store.tjar.sa/api/core/v1

    Step 5 — Send your first request#

    A simple first request is listing orders.

    Example request#


    Step 6 — Understand the request headers#

    Authorization#

    Used to authenticate protected requests.
    Authorization: Bearer {API_KEY}

    Accept#

    Requests JSON responses.
    Accept: application/json

    Accept-Language#

    Controls localized responses where supported.
    Accept-Language: en
    or
    Accept-Language: ar

    Content-Type#

    Used when sending JSON request bodies.
    Content-Type: application/json

    Step 7 — Read the response#

    Successful responses typically include structured JSON containing:
    a success status
    a message
    returned data
    pagination metadata for list endpoints
    If the request fails, verify:
    the API key is valid
    the store domain is correct
    the endpoint path is correct
    required headers are included
    the request body matches the endpoint specification
    the store user has the required permissions

    Step 8 — Configure webhooks#

    Once your first request works, you can return to the Developers page to register webhook endpoints.
    This is useful if your integration needs near real-time updates for:
    order changes
    product changes
    store event processing
    external system synchronization

    Webhooks page screenshot#

    Developers Page Webhooks Section

    Best practices#

    Follow these recommendations when building your integration:
    store API keys securely on the server side
    never expose secrets in browser-based code
    use pagination when working with list endpoints
    validate incoming webhook payloads
    log request and response errors for debugging
    test in a safe environment before going live
    rotate API keys carefully if multiple systems depend on them

    Recommended next pages#

    Suggested reading order:
    1.
    Orders
    2.
    Products
    3.
    Media
    4.
    Webhook

    Need help?#

    If you're unsure where to begin, start with:
    Orders for operational workflows
    Products for catalog sync
    Webhook for automation and event-driven integrations
    You're now ready to begin building with the Tjar API.
    Modified at 2026-04-08 17:04:53
    Previous
    🗂️ Overview
    Next
    Orders
    Built with