# Product Order

###  Product order

| Attribute            | Type         | required / optional  | Description                                              
| -------------------- | ------------ | -------------------- | -------------------------------------------------------- 
| customer_id          | int          | required             | Customer ID (required, natural number greater than zero) 
| payment_method       | enum         | required             | Payment method (offline,bank_transfer,razorpay)               
| billing              | json         | required             | Billing <a href="#Billing">json format</a>               
| shipping             | json         | required             | Shipping <a href="#shipping">json format</a>             
| line_items           | json         | required             | line items data <a href="#Line_items"> json format</a> 
| shipping_lines       | json         | optional             | Shipping line data <a href="#Shipping_lines"> json format</a>
| tax_lines            | json         | optional             | tax line items data <a href="#Tax_lines"> json format</a>
| fee_lines            | json         | optional             | fee line data <a href="#Fee_lines"> items json format</a>
| coupon_lines         | json         | optional             | coupon line items data <a href="#Coupon_lines">  json format</a>
| customer_note        | json         | optional             | Customer note
| customer_ip_address  | varchar(45)  |                      | Auto captured, System generated value, should not be modified `READ-ONLY`
| customer_user_agent  | text         |                      | Auto captured, System generated value, should not be modified `READ-ONLY`


### Billing 

| Field      | Type         | Required | Description  |
| ---------- | ------------ | -------- | ------------ |
| first_name | varchar(100) | required | First name   |
| last_name  | varchar(100) | required | Last name    |
| address_1  | varchar(255) | required | Address      |
| city       | varchar(100) | required | City         |
| state      | varchar(50)  | required | State        |
| postcode   | varchar(20)  | required | Postal code  |
| country    | varchar(10)  | required | Country code |
| email      | varchar(255) | required | Email        |
| phone      | varchar(15)  | required | Phone        |


### Shipping 

| Field      | Type         | Required | Description  |
| ---------- | ------------ | -------- | ------------ |
| first_name | varchar(100) | required | First name   |
| last_name  | varchar(100) | required | Last name    |
| address_1  | varchar(255) | required | Address      |
| city       | varchar(100) | required | City         |
| state      | varchar(50)  | required | State        |
| postcode   | varchar(20)  | required | Postal code  |
| country    | varchar(10)  | required | Country code |


### Line_items

| Field      | Type | Required | Description |
| ---------- | ---- | -------- | ----------- |
| product_id | int  | required | Product ID  |
| quantity   | int  | required | Quantity    |


### Shipping_lines

| Field        | Type         | Required | Description         |
| ------------ | ------------ | -------- | ------------------- |
| method_id    | varchar(50)  | optional | Shipping method key |
| method_title | varchar(100) | optional | Shipping name       |
| total        | decimal      | optional | Shipping cost       |


### Tax_lines

| Field              | Type    | Required | Description  |
| ------------------ | ------- | -------- | ------------ |
| id                 | int     | optional | Tax ID       |
| rate_code          | varchar | optional | Tax code     |
| rate_id            | int     | optional | Tax rate ID  |
| label              | varchar | optional | Tax label    |
| compound           | boolean | optional | Compound tax |
| tax_total          | decimal | optional | Tax amount   |
| shipping_tax_total | decimal | optional | Shipping tax |


### Fee_lines

| Field      | Type    | Required | Description |
| ---------- | ------- | -------- | ----------- |
| name       | varchar | optional | Fee name    |
| tax_class  | varchar | optional | Tax class   |
| tax_status | varchar | optional | Tax status  |
| total      | decimal | optional | Fee amount  |
| total_tax  | decimal | optional | Fee tax     |


### Coupon_lines

| Field        | Type    | Required | Description     |
| ------------ | ------- | -------- | --------------- |
| code         | varchar | optional | Coupon code     |
| discount     | decimal | optional | Discount amount |
| discount_tax | decimal | optional | Discount tax    |


### Refunds

| Field   | Type  | Required | Description    |
| ------- | ----- | -------- | -------------- |
| refunds | array | optional | Refund details |

### payment_history

| Field                  | Type        |  Description                                                 |
|------------------------|--------------|--------------------------------------------------------------|
| order_id               | int          | Reference ID of the related order                            |
| customer_id            | int          | Reference ID of the customer                                 |
| razorpay_signature     | text         | Signature returned by Razorpay for verification (READ-ONLY)  |
| payment_status         | enu          | Current status of the payment                                |
| razorpay_order_id      | varchar(50)  | Order ID generated by Razorpay                               |
| payment_date           | datetime     | Timestamp when the payment was recorded (READ-ONLY)          |
| razorpay_payment_id    | varchar(255) | Payment ID provided by Razorpay                              |

## Get all product order

```shell
curl -X GET https://vedaay-api.mulika.in/orders \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "message": "Orders retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_records": 9,
        "total_pages": 1
    },
    "data": [
        {
            "id": "154",
            "status": "pending",
            "currency": "INR",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "10.00",
            "shipping_tax": "0.00",
            "cart_tax": "0.00",
            "total": "509.00",
            "total_tax": "0.00",
            "prices_include_tax": "0",
            "customer_id": "138",
            "customer_ip_address": null,
            "customer_user_agent": null,
            "customer_note": null,
            "billing": "{\"city\": \"Billing Address\", \"email\": \"rachana34@gmail.com\", \"phone\": \"1234512345\", \"state\": \"Billing Address\", \"country\": \"IN\", \"postcode\": \"12345\", \"address_1\": \"Billing Address\", \"address_2\": \"\", \"last_name\": \"Billing AddressBilling Address\", \"first_name\": \"Billing Address\"}",
            "shipping": "{\"city\": \"Billing Address\", \"state\": \"Billing Address\", \"country\": \"IN\", \"postcode\": \"12345\", \"address_1\": \"Billing Address\", \"address_2\": \"\", \"last_name\": \"Billing Address\", \"first_name\": \"Billing Address\"}",
            "payment_method": "bacs",
            "payment_method_title": "Direct Bank Transfer",
            "transaction_id": null,
            "date_paid": null,
            "date_paid_gmt": null,
            "date_completed": null,
            "date_completed_gmt": null,
            "meta_data": null,
            "line_items": "[{\"attr\": [{\"label\": \"courses-B\", \"attr_id\": 49, \"attr_value\": [{\"meta\": {\"course_id\": \"252\", \"course_levels\": [\"40\"]}, \"type\": \"course\", \"label\": \"Level 3\", \"items_id\": 116}]}], \"quantity\": 1, \"product_id\": 45, \"product_name\": \"BOOK\", \"product_price\": 500, \"parent_product_id\": 0, \"product_sale_price\": 499}]",
            "tax_lines": null,
            "shipping_lines": "[{\"total\": \"10.00\", \"method_id\": \"flat_rate\", \"method_title\": \"Flat Rate\"}]",
            "fee_lines": null,
            "coupon_lines": null,
            "refunds": null,
            "set_paid": "0",
            "created_at": "2026-01-17 10:09:44",
            "updated_at": "2026-01-17 10:09:44"
        },]
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #42c253; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /orders
</span>

 1.   GET /orders
 2.   GET /orders?page=1&per_page=20 
 3.   GET /orders?column_count=status,customer_id,payment_method,created_at 
 4.   GET /orders?filters[status]=Refunded&filters[customer_id]=201
 5.   GET /orders?status=Cancelled
 6.   GET /orders?include=282,281&exclude=280
 7.   GET /orders?customer_include=220&customer_exclude=201
 8.   GET /orders?start_date=2026-02-01&end_date=2026-02-02
 9.   GET /orders?customer_id=220&customer_status=status
 10.  GET /orders?order=asc
 11.  GET /orders?search=251
 12.  GET /orders?search_fields=id,customer_id,billing,status,shipping,line_items
 13.  GET /orders?customer_id=394&scope=394
 14.  GET /orders?scope=394

### Parameters
| Parameter        | Type    | Description                                                                                                   |
| ---------------- | ------- | ------------------------------------------------------------------------------------------------------------- |
| page             | integer | Page number for pagination (default: `12`)                                                                    |
| per_page         | integer | Number of orders per page (default: `10`, max: `100`)                                                         |
| status           | string  | Filter by order status(`pending`,`processing`,`on_hold` ,`completed`,`cancelled`,`refunded`,`failed`,`trash`) |
| include          | string  | Include specific order IDs (comma separated) `282,281`                                                        |
| exclude          | string  | Exclude specific order IDs (comma separated)  `280`                                                           |
| customer_include | string  | Include only specific customer IDs `220,221`                                                                  |
| customer_exclude | string  | Exclude specific customer IDs `201`                                                                           |
| fields           | string  | Return only specific fields `status,customer_id`                                                              |
| column_count     | string  | Select only specific columns `status,customer_id,payment_method,created_at`                                   |
| start_date       | string  | Filter orders starting from this date (YYYY-MM-DD). Must be less than or equal to end_date.                   |
| end_date         | string  | Filter orders up to this date (YYYY-MM-DD). Must be greater than or equal to start_date.                      |
| customer_id      | integer | Include specific customer ID                                                                                 |
| customer_status  | string  | Filter by customer Return only specific status                                                                |
| order            | string  | Filter by customer Return only ascending / descending (asc,desc) order                                        |
| search           | string  | Search by order id ,shipping_lines = email,line_items = product name (partial match)                          |
| search_fields    | string  | Search in specific fields `id,customer_id,billing,status,shipping,line_items`                                 |
| customer_id&scope| integer | Search for the same customer_id and scope_id within the same order.                                           |
| scope            | integer | Include specific scope ID                                                                                    |


## Get single product order

```shell
curl -X GET https://vedaay-api.mulika.in/orders/154 \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "code": 200,
    "data": {
        "id": "154",
        "status": "pending",
        "currency": "INR",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "10.00",
        "shipping_tax": "0.00",
        "cart_tax": "0.00",
        "total": "509.00",
        "total_tax": "0.00",
        "prices_include_tax": "0",
        "customer_id": "138",
        "customer_ip_address": null,
        "customer_user_agent": null,
        "customer_note": null,
        "billing": "{\"city\": \"Billing Address\", \"email\": \"rachana34@gmail.com\", \"phone\": \"1234512345\", \"state\": \"Billing Address\", \"country\": \"IN\", \"postcode\": \"12345\", \"address_1\": \"Billing Address\", \"address_2\": \"\", \"last_name\": \"Billing AddressBilling Address\", \"first_name\": \"Billing Address\"}",
        "shipping": "{\"city\": \"Billing Address\", \"state\": \"Billing Address\", \"country\": \"IN\", \"postcode\": \"12345\", \"address_1\": \"Billing Address\", \"address_2\": \"\", \"last_name\": \"Billing Address\", \"first_name\": \"Billing Address\"}",
        "payment_method": "bacs",
        "payment_method_title": "Direct Bank Transfer",
        "transaction_id": null,
        "date_paid": null,
        "date_paid_gmt": null,
        "date_completed": null,
        "date_completed_gmt": null,
        "meta_data": null,
        "line_items": "[{\"attr\": [{\"label\": \"courses-B\", \"attr_id\": 49, \"attr_value\": [{\"meta\": {\"course_id\": \"252\", \"course_levels\": [\"40\"]}, \"type\": \"course\", \"label\": \"Level 3\", \"items_id\": 116}]}], \"quantity\": 1, \"product_id\": 45, \"product_name\": \"BOOK\", \"product_price\": 500, \"parent_product_id\": 0, \"product_sale_price\": 499}]",
        "tax_lines": null,
        "shipping_lines": "[{\"total\": \"10.00\", \"method_id\": \"flat_rate\", \"method_title\": \"Flat Rate\"}]",
        "fee_lines": null,
        "coupon_lines": null,
        "refunds": null,
        "set_paid": "0",
        "created_at": "2026-01-17 10:09:44",
        "updated_at": "2026-01-17 10:09:44"
    }
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #674ed7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /orders/{id}
</span>


## Get all product order seller

```shell
curl -X GET https://vedaay-api.mulika.in/orders/seller \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "message": "2 order retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 12,
        "total_records": 2,
        "total_pages": 1
    },
    "data": [
        {
            "id": "6",
            "status": "pending",
            "currency": "INR",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "0.00",
            "shipping_tax": "0.00",
            "cart_tax": "0.00",
            "fee_total": "0.00",
            "fee_tax": "0.00",
            "total": "90.00",
            "total_tax": "0.00",
            "prices_include_tax": "0",
            "customer_id": "366",
            "seller_id": "337",
            "customer_ip_address": "192.168.1.96",
            "customer_user_agent": "192.168.1.96",
            "customer_note": "",
            "billing": "{\"city\": \"Shirur\", \"email\": \"vishal.shete@gmail.com\", \"phone\": \"9876543210\", \"state\": \"MH\", \"country\": \"IN\", \"postcode\": \"412210\", \"address_1\": \"Shirur\", \"last_name\": \"shete\", \"first_name\": \"vishal\"}",
            "shipping": "{\"city\": \"Shirur\", \"state\": \"MH\", \"country\": \"IN\", \"postcode\": \"412210\", \"address_1\": \"Shirur\", \"last_name\": \"shete\", \"first_name\": \"vishal\"}",
            "payment_method": "razorpay",
            "date_paid": null,
            "order_status": "pending",
            "completed_date": null,
            "date_completed_gmt": null,
            "line_items": "[{\"name\": \"Abacus\", \"type\": \"courses_kit\", \"image\": {\"image_id\": \"3\", \"image_src\": \"https://vedaay-api.mulika.in/media/src/3/1779797163_Gemini_Generated_Image_553vnx553vnx553v.png\"}, \"price\": 90, \"total\": 90, \"quantity\": 1, \"subtotal\": 90, \"course_id\": 1, \"attributes\": [], \"product_id\": 1, \"course_title\": \"Abacus\", \"product_role\": \"franchise\", \"course_levels\": [{\"level_id\": 1, \"level_name\": \"Level 0\"}, {\"level_id\": 2, \"level_name\": \"Level 1\"}, {\"level_id\": 3, \"level_name\": \"Level 2\"}, {\"level_id\": 4, \"level_name\": \"Level 3\"}, {\"level_id\": 5, \"level_name\": \"Level 4\"}, {\"level_id\": 6, \"level_name\": \"Level 5\"}], \"gallery_images\": [{\"image_id\": \"3\", \"image_src\": \"https://vedaay-api.mulika.in/media/src/3/1779797163_Gemini_Generated_Image_553vnx553vnx553v.png\"}], \"course_level_id\": [1, 2, 3, 4, 5, 6]}]",
            "tax_lines": "[]",
            "shipping_lines": "[]",
            "fee_lines": "[]",
            "coupon_lines": "[]",
            "refunds": null,
            "created_at": "2026-05-27 02:15:15",
            "updated_at": "2026-05-27 17:18:49",
            "subtotal": "90",
            "scope": "/107/337"
        },
        {
            "id": "7",
            "status": "pending",
            "currency": "INR",
            "discount_total": "0.00",
            "discount_tax": "0.00",
            "shipping_total": "0.00",
            "shipping_tax": "0.00",
            "cart_tax": "0.00",
            "fee_total": "0.00",
            "fee_tax": "0.00",
            "total": "90.00",
            "total_tax": "0.00",
            "prices_include_tax": "0",
            "customer_id": "366",
            "seller_id": "337",
            "customer_ip_address": "192.168.1.96",
            "customer_user_agent": "192.168.1.96",
            "customer_note": "",
            "billing": "{\"city\": \"Shirur\", \"email\": \"vishal.shete@gmail.com\", \"phone\": \"9876543210\", \"state\": \"MH\", \"country\": \"IN\", \"postcode\": \"412210\", \"address_1\": \"Shirur\", \"last_name\": \"shete\", \"first_name\": \"vishal\"}",
            "shipping": "{\"city\": \"Shirur\", \"state\": \"MH\", \"country\": \"IN\", \"postcode\": \"412210\", \"address_1\": \"Shirur\", \"last_name\": \"shete\", \"first_name\": \"vishal\"}",
            "payment_method": "razorpay",
            "date_paid": null,
            "order_status": "pending",
            "completed_date": null,
            "date_completed_gmt": null,
            "line_items": "[{\"name\": \"Abacus\", \"type\": \"courses_kit\", \"image\": {\"image_id\": \"3\", \"image_src\": \"https://vedaay-api.mulika.in/media/src/3/1779797163_Gemini_Generated_Image_553vnx553vnx553v.png\"}, \"price\": 90, \"total\": 90, \"quantity\": 1, \"subtotal\": 90, \"course_id\": 1, \"attributes\": [], \"product_id\": 1, \"course_title\": \"Abacus\", \"product_role\": \"franchise\", \"course_levels\": [{\"level_id\": 1, \"level_name\": \"Level 0\"}, {\"level_id\": 2, \"level_name\": \"Level 1\"}, {\"level_id\": 3, \"level_name\": \"Level 2\"}, {\"level_id\": 4, \"level_name\": \"Level 3\"}, {\"level_id\": 5, \"level_name\": \"Level 4\"}, {\"level_id\": 6, \"level_name\": \"Level 5\"}], \"gallery_images\": [{\"image_id\": \"3\", \"image_src\": \"https://vedaay-api.mulika.in/media/src/3/1779797163_Gemini_Generated_Image_553vnx553vnx553v.png\"}], \"course_level_id\": [1, 2, 3, 4, 5, 6]}]",
            "tax_lines": "[]",
            "shipping_lines": "[]",
            "fee_lines": "[]",
            "coupon_lines": "[]",
            "refunds": null,
            "created_at": "2026-05-27 02:15:15",
            "updated_at": "2026-05-27 18:17:23",
            "subtotal": "90",
            "scope": "/107/337"
        }
    ]
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #42c253; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /orders/seller
</span>

 1.   GET /orders
 2.   GET /orders?page=1&per_page=20 
 3.   GET /orders?column_count=status,seller_id,payment_method,created_at 
 4.   GET /orders?filters[status]=Refunded&filters[seller_id]=201
 5.   GET /orders?status=Cancelled
 6.   GET /orders?include=282,281&exclude=280
 7.   GET /orders?customer_include=220&customer_exclude=201
 8.   GET /orders?start_date=2026-02-01&end_date=2026-02-02
 9.   GET /orders?seller_id=220&customer_status=status
 10.  GET /orders?order=asc
 11.  GET /orders?search=251
 12.  GET /orders?search_fields=id,seller_id,billing,status,shipping,line_items
 13.  GET /orders?seller_id=394&scope=394
 14.  GET /orders?scope=394

### Parameters
| Parameter        | Type    | Description                                                                                                   |
| ---------------- | ------- | ------------------------------------------------------------------------------------------------------------- |
| page             | integer | Page number for pagination (default: `12`)                                                                    |
| per_page         | integer | Number of orders per page (default: `10`, max: `100`)                                                         |
| status           | string  | Filter by order status(`pending`,`processing`,`on_hold` ,`completed`,`cancelled`,`refunded`,`failed`,`trash`) |
| include          | string  | Include specific order IDs (comma separated) `282,281`                                                        |
| exclude          | string  | Exclude specific order IDs (comma separated)  `280`                                                           |
| customer_include | string  | Include only specific customer IDs `220,221`                                                                  |
| customer_exclude | string  | Exclude specific customer IDs `201`                                                                           |
| fields           | string  | Return only specific fields `status,seller_id`                                                              |
| column_count     | string  | Select only specific columns `status,seller_id,payment_method,created_at`                                   |
| start_date       | string  | Filter orders starting from this date (YYYY-MM-DD). Must be less than or equal to end_date.                   |
| end_date         | string  | Filter orders up to this date (YYYY-MM-DD). Must be greater than or equal to start_date.                      |
| seller_id        | integer | Include specific customer ID                                                                                 |
| customer_status  | string  | Filter by customer Return only specific status                                                                |
| order            | string  | Filter by customer Return only ascending / descending (asc,desc) order                                        |
| search           | string  | Search by order id ,shipping_lines = email,line_items = product name (partial match)                          |
| search_fields    | string  | Search in specific fields `id,seller_id,billing,status,shipping,line_items`                                 |
| seller_id&scope  | integer | Search for the same seller_id and scope_id within the same order.                                           |
| scope            | integer | Include specific scope ID                                                                                    |


## Get single product order seller

```shell
curl -X GET https://vedaay-api.mulika.in/orders/seller/7 \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "message": "Order retrieved successfully",
    "code": 200,
    "data": {
        "id": "7",
        "status": "pending",
        "currency": "INR",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "0.00",
        "shipping_tax": "0.00",
        "cart_tax": "0.00",
        "fee_total": "0.00",
        "fee_tax": "0.00",
        "total": "90.00",
        "total_tax": "0.00",
        "prices_include_tax": "0",
        "customer_id": "366",
        "seller_id": "337",
        "customer_ip_address": "192.168.1.96",
        "customer_user_agent": "192.168.1.96",
        "customer_note": "",
        "billing": {
            "city": "Shirur",
            "email": "vishal.shete@gmail.com",
            "phone": "9876543210",
            "state": "MH",
            "country": "IN",
            "postcode": "412210",
            "address_1": "Shirur",
            "last_name": "shete",
            "first_name": "vishal"
        },
        "shipping": {
            "city": "Shirur",
            "state": "MH",
            "country": "IN",
            "postcode": "412210",
            "address_1": "Shirur",
            "last_name": "shete",
            "first_name": "vishal"
        },
        "payment_method": "razorpay",
        "date_paid": null,
        "order_status": "pending",
        "completed_date": null,
        "date_completed_gmt": null,
        "line_items": [
            {
                "name": "Abacus",
                "type": "courses_kit",
                "image": {
                    "image_id": "3",
                    "image_src": "https://vedaay-api.mulika.in/media/src/3/1779797163_Gemini_Generated_Image_553vnx553vnx553v.png"
                },
                "price": 90,
                "total": 90,
                "quantity": 1,
                "subtotal": 90,
                "course_id": 1,
                "attributes": [],
                "product_id": 1,
                "course_title": "Abacus",
                "product_role": "franchise",
                "course_levels": [
                    {
                        "level_id": 1,
                        "level_name": "Level 0"
                    },
                    {
                        "level_id": 2,
                        "level_name": "Level 1"
                    },
                    {
                        "level_id": 3,
                        "level_name": "Level 2"
                    },
                    {
                        "level_id": 4,
                        "level_name": "Level 3"
                    },
                    {
                        "level_id": 5,
                        "level_name": "Level 4"
                    },
                    {
                        "level_id": 6,
                        "level_name": "Level 5"
                    }
                ],
                "gallery_images": [
                    {
                        "image_id": "3",
                        "image_src": "https://vedaay-api.mulika.in/media/src/3/1779797163_Gemini_Generated_Image_553vnx553vnx553v.png"
                    }
                ],
                "course_level_id": [
                    1,
                    2,
                    3,
                    4,
                    5,
                    6
                ]
            }
        ],
        "tax_lines": [],
        "shipping_lines": [],
        "fee_lines": [],
        "coupon_lines": [],
        "refunds": null,
        "created_at": "2026-05-27 02:15:15",
        "updated_at": "2026-05-27 18:17:23",
        "subtotal": "90",
        "scope": "/107/337"
    }
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #674ed7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /orders/seller/{id}
</span>


## Create product order

```shell
curl -X POST https://vedaay-api.mulika.in/orders \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
  "customer_id": 220,
  "payment_method": "bacs",
  "payment_method_title": "Direct Bank Transfer",
  "set_paid": 0,

  "customer_note": "",

  "billing": {
    "first_name": "Sophia",
    "last_name": "Wilson",
    "address_1": "Shirur",
    "city": "Shirur",
    "state": "MH",
    "postcode": "412210",
    "country": "IN",
    "email": "sophia.wilson@gmail.com",
    "phone": "9876543210"
  },

  "shipping": {
    "first_name": "Sophia",
    "last_name": "Wilson",
    "address_1": "Shirur",
    "city": "Shirur",
    "state": "MH",
    "postcode": "412210",
    "country": "IN"
  },

  "line_items": [
    {
      "product_id": 146,
      "quantity": 2
    }
  ],
  "refunds": []
}'
 ```
> Responce:

```json
   {
    "status": "success",
    "order": {
        "id": "192",
        "status": "pending",
        "currency": "INR",
        "discount_total": "10.00",
        "discount_tax": "0.00",
        "shipping_total": "10.00",
        "shipping_tax": "0.00",
        "cart_tax": "1.35",
        "total": "1605.25",
        "subtotal": "1598",
        "total_tax": "2.25",
        "prices_include_tax": "0",
        "customer_id": "220",
        "customer_ip_address": null,
        "customer_user_agent": null,
        "customer_note": "",
        "billing": "{\"city\": \"Shirur\", \"email\": \"sophia.wilson@gmail.com\", \"phone\": \"9876543210\", \"state\": \"MH\", \"country\": \"IN\", \"postcode\": \"412210\", \"address_1\": \"Shirur\", \"last_name\": \"Wilson\", \"first_name\": \"Sophia\"}",
        "shipping": "{\"city\": \"Shirur\", \"state\": \"MH\", \"country\": \"IN\", \"postcode\": \"412210\", \"address_1\": \"Shirur\", \"last_name\": \"Wilson\", \"first_name\": \"Sophia\"}",
        "payment_method": "bacs",
        "payment_method_title": "Direct Bank Transfer",
        "transaction_id": null,
        "date_paid": null,
        "date_paid_gmt": null,
        "date_completed": null,
        "date_completed_gmt": null,
        "meta_data": null,
        "line_items": "[{\"name\": \"new  test\", \"price\": 799, \"total\": 1598, \"quantity\": 2, \"subtotal\": 1598, \"product_id\": 146}]",
        "refunds": null,
        "set_paid": "0",
        "created_at": "2026-01-28 11:48:45",
        "updated_at": "2026-01-28 11:48:45"
    }
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #d7be4e; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /orders
</span>


## Update product order

```shell
curl -X PUT https://vedaay-api.mulika.in/orders/157 \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
  "status": "pending",
  }'
```
> Responce:

```json
{
    "status": "success",
    "message": "Order updated successfully",
    "code": 200,
    "data": {
        "id": "157",
        "status": "pending",
        "currency": "INR",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "10.00",
        "shipping_tax": "0.00",
        "cart_tax": "0.00",
        "total": "509.00",
        "total_tax": "0.00",
        "prices_include_tax": "0",
        "customer_id": "220",
        "customer_ip_address": null,
        "customer_user_agent": null,
        "customer_note": null,
        "billing": "{\"city\": \"shirur\", \"state\": \"AN\", \"country\": \"IND\", \"postcode\": \"101010\", \"address_1\": \"shirur\", \"address_2\": \"shirur\", \"last_name\": \"TEST ABCUS\", \"first_name\": \"TEST ABCUS\"}",
        "shipping": "{\"city\": \"shirur\", \"state\": \"AN\", \"country\": \"IND\", \"postcode\": \"101010\", \"address_1\": \"shirur\", \"address_2\": \"shirur\", \"last_name\": \"TEST\", \"first_name\": \"TEST\"}",
        "payment_method": "bacs",
        "payment_method_title": "Direct Bank Transfer",
        "transaction_id": null,
        "date_paid": null,
        "date_paid_gmt": null,
        "date_completed": null,
        "date_completed_gmt": null,
        "meta_data": null,
        "line_items": "[{\"attr\": [{\"label\": \"courses-B\", \"attr_id\": 49, \"attr_value\": [{\"meta\": {\"course_id\": \"252\", \"course_levels\": [\"40\"]}, \"type\": \"course\", \"label\": \"Level 2\", \"items_id\": 116}]}], \"quantity\": 1, \"product_id\": 45, \"product_name\": \"BOOK\", \"product_price\": 500, \"parent_product_id\": 0, \"product_sale_price\": 499}]",
        "tax_lines": null,
        "shipping_lines": "[{\"total\": \"10.00\", \"method_id\": \"flat_rate\", \"method_title\": \"Flat Rate\"}]",
        "fee_lines": null,
        "coupon_lines": null,
        "refunds": null,
        "set_paid": "1",
        "created_at": "2026-01-19 11:37:22",
        "updated_at": "2026-01-19 12:08:21"
    }
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #4e92d7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">PUT</span> /orders/{id}
</span>


##  Product order payment

```shell
curl -X POST https://vedaay-api.mulika.in/orders/156/pay \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
 ```
> Responce:

```json
    {
    "status": "success",
    "message": "Order marked as paid and student courses updated",
    "data": {
        "id": "156",
        "status": "completed",
        "currency": "INR",
        "discount_total": "0.00",
        "discount_tax": "0.00",
        "shipping_total": "10.00",
        "shipping_tax": "0.00",
        "cart_tax": "0.00",
        "total": "100.00",
        "total_tax": "0.00",
        "prices_include_tax": "0",
        "customer_id": "138",
        "customer_ip_address": null,
        "customer_user_agent": null,
        "customer_note": null,
        "billing": "{\"city\": \"Billing Address\", \"email\": \"rachana34@gmail.com\", \"phone\": \"1234512345\", \"state\": \"Billing Address\", \"country\": \"IN\", \"postcode\": \"12345\", \"address_1\": \"Billing Address\", \"address_2\": \"\", \"last_name\": \"Billing Address\", \"first_name\": \"Billing Address\"}",
        "shipping": "{\"city\": \"Billing Address\", \"state\": \"Billing Address\", \"country\": \"IN\", \"postcode\": \"12345\", \"address_1\": \"Billing Address\", \"address_2\": \"\", \"last_name\": \"Billing Address\", \"first_name\": \"Billing Address\"}",
        "payment_method": "online",
        "payment_method_title": "Online Payment",
        "transaction_id": "TXN1768828987",
        "date_paid": "2026-01-19 13:23:07",
        "date_paid_gmt": "2026-01-19 13:23:07",
        "date_completed": null,
        "date_completed_gmt": null,
        "meta_data": null,
        "line_items": "[{\"attr\": [{\"label\": \"courses-B\", \"attr_id\": 49, \"attr_value\": [{\"meta\": {\"course_id\": \"252\", \"course_levels\": [\"40\"]}, \"type\": \"course\", \"label\": \"Level 2\", \"items_id\": 116}]}], \"quantity\": 1, \"product_id\": 62, \"product_name\": \"Variation 2\", \"product_price\": 100, \"parent_product_id\": 0, \"product_sale_price\": 90}]",
        "tax_lines": null,
        "shipping_lines": "[{\"total\": \"10.00\", \"method_id\": \"flat_rate\", \"method_title\": \"Flat Rate\"}]",
        "fee_lines": null,
        "coupon_lines": null,
        "refunds": null,
        "set_paid": "1",
        "created_at": "2026-01-19 10:53:45",
        "updated_at": "2026-01-19 13:23:07"
    }
}
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #d7be4e; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /orders/{id}/pay
</span>

## Delete product order


```shell
curl -X DELETE https://vedaay-api.mulika.in/orders/157 \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "message": "Order deleted successfully",
    "code": 200,
    "data": {
        "order_id": "157"
    }
}
```
<span style="background: #000000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #d74e4e; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">DELETE</span> /orders/{id}
</span>