Skip to content

Getting Started

The Tajir Integration API allows you to sync your store data with external systems like Odoo ERP. You can pull products, orders, customers, and inventory — or receive real-time webhook notifications when data changes.

Base URL

All API requests are made to:

https://api.durj.ly/api/v1/

Quick Start

1. Generate an API Token

Go to your Admin DashboardIntegrations (التكاملات) → API Keys tab and create a new token.

2. Make Your First Request

Terminal window
curl -H "Authorization: Bearer tjr_your_token_here" \
https://api.durj.ly/api/v1/products?limit=5

3. Response

{
"data": [
{
"id": "abc123",
"name": "Premium Coffee Beans",
"price": 25.00,
"stock": 150,
"variants": [],
"last_modified": "2026-04-20T10:30:00Z"
}
],
"pagination": {
"next_cursor": "2026-04-20T10:30:00Z",
"has_more": true,
"limit": 5
}
}

Key Concepts

Cursor-Based Pagination

All list endpoints use cursor-based pagination via the last_modified timestamp. Pass cursor from the previous response to get the next page.

Terminal window
curl -H "Authorization: Bearer tjr_..." \
"https://api.durj.ly/api/v1/products?cursor=2026-04-20T10:30:00Z&limit=50"

Rate Limiting

  • Standard endpoints: 60 requests/minute per token
  • Export endpoints: 10 requests/minute per token

Rate limit info is returned in response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

Available Entities

EntityEndpointDescription
Products/v1/productsCatalog with variants and images
Orders/v1/ordersSales orders with line items
Customers/v1/customersCustomer records
Inventory/v1/inventoryStock levels and movements