All order endpoints require authentication with
auth:sanctum.Create Order
Request
Payment method:
cash_on_delivery, wallet, manual_payment_1, or online payment gateway nameResponse
Success status
Success or error message
Combined order ID (0 if failed)
Example
The order creation process:
- Validates minimum order amount (if configured)
- Checks cart is not empty
- Gets shipping address from cart
- Creates combined order and individual orders per seller
- Reduces product stock
- Applies coupons and calculates totals
- Clears cart
- Sends notifications
Cancel Order
Path Parameters
Order ID
Response
Example
Purchase History
Get Order List
Response
Paginated list of orders with details.Example
Get Order Details
Path Parameters
Order ID
Get Order Items
Path Parameters
Order ID
Re-order
Path Parameters
Order ID to re-order
Digital Products
Get Digital Purchased Products
Download Digital Product
Path Parameters
Product ID
Invoice
Path Parameters
Order ID
Example
Refund Requests
Get Refund Request List
Send Refund Request
Order detail ID
Reason for refund
Requested refund amount
Order Tracking
Orders go through the following delivery statuses:- pending - Order placed, awaiting confirmation
- confirmed - Order confirmed by seller
- picked_up - Picked up by delivery person
- on_the_way - Out for delivery
- delivered - Successfully delivered
- cancelled - Order cancelled
- unpaid - Payment not received
- paid - Payment received
Order Response Structure
Typical order object includes:Order ID
Unique order code
Customer ID
Total order amount
Payment method used
Payment status (paid/unpaid)
Current delivery status
Shipping address details (JSON)
Discount from coupon
Shipping method (home_delivery, pickup_point, carrier)
Order source (app, web)
Order timestamp