Orders
Order history, order details, cancel order, download invoice, and track order
Last updated: Feb 09, 2026
Orders
Note: All order endpoints require authentication.
Get Orders
Get customer order history.
GET /api/v1/customer/orders
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number |
per_page | integer | Items per page |
status | string | Filter by status |
Get Order Details
Get single order details.
GET /api/v1/customer/orders/{id}
Response: 200 OK
{
"success": true,
"data": {
"id": 12345,
"order_number": "ORD-2026-0001",
"status": "processing",
"payment_status": "paid",
"payment_method": "razorpay",
"subtotal": 49.98,
"discount": 0,
"shipping": 0,
"tax": 9.00,
"total": 58.98,
"currency": "INR",
"items": [
{
"id": 1,
"product_id": 5,
"product_name": "Premium Yoga Mat",
"sku": "YOGA-001",
"price": 24.99,
"quantity": 2,
"total": 49.98
}
],
"shipping_address": { "..." },
"billing_address": { "..." },
"notes": "Please call before delivery",
"created_at": "2026-02-08T10:00:00+00:00",
"updated_at": "2026-02-08T12:00:00+00:00"
}
}
Cancel Order
Request order cancellation.
POST /api/v1/customer/orders/{id}/cancel
Request Body:
{
"reason": "Changed my mind"
}
Get Invoice
Download order invoice.
GET /api/v1/customer/orders/{id}/invoice
Track Order
Get order tracking information.
GET /api/v1/customer/orders/{id}/track