API Documentation
Build powerful integrations with Dukaantech POS using our comprehensive REST API
API Overview
Everything you need to integrate with Dukaantech POS
RESTful API
Standard HTTP methods with JSON responses for easy integration.
- • GET, POST, PUT, DELETE
- • JSON request/response
- • RESTful resource URLs
- • HTTP status codes
Authentication
Secure API access using API keys and OAuth 2.0.
- • API Key authentication
- • OAuth 2.0 support
- • Rate limiting
- • IP whitelisting
Webhooks
Real-time notifications when events occur in your system.
- • Order events
- • Payment notifications
- • Inventory updates
- • Custom events
API Endpoints
Comprehensive endpoints for all POS operations
Orders
GET
/api/v1/orders
List orders
POST
/api/v1/orders
Create order
GET
/api/v1/orders/{id}
Get order details
PUT
/api/v1/orders/{id}
Update order
Products
GET
/api/v1/products
List products
POST
/api/v1/products
Create product
GET
/api/v1/products/{id}
Get product details
DELETE
/api/v1/products/{id}
Delete product
Inventory
GET
/api/v1/inventory
List inventory
PUT
/api/v1/inventory/{id}
Update stock
POST
/api/v1/inventory/adjust
Adjust inventory
Payments
GET
/api/v1/payments
List payments
POST
/api/v1/payments
Process payment
GET
/api/v1/payments/{id}
Get payment details
Code Examples
Get started quickly with these code samples
Create an Order
// JavaScript Example
const response = await fetch(
'https://api.Dukaantechpos.com/v1/orders',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer_id: "12345",
items: [{
product_id: "101",
quantity: 2
}]
})
}
);
Python Example
# Python Example
import requests
import json
# API Configuration
api_key = "YOUR_API_KEY"
base_url = "https://api.Dukaantechpos.com/v1"
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
}
# Create Order
order_data = {
"customer_id": "12345",
"items": [{
"product_id": "101",
"quantity": 2
}]
}
response = requests.post(
f"{base_url}/orders",
headers=headers,
json=order_data
)
SDKs and Tools
Official SDKs and development tools
Ready to Build?
Start building powerful integrations with Dukaantech POS API today.