{
    "info": {
        "_postman_id": "c2d4e6f8-aabb-ccdd-eeff-orders-public-v2",
        "name": "ILS Orders API",
        "description": "Public Postman collection for the ILS Orders API.\n\nGenerated from https://ilsportal.io/\n\nSetup:\n  1. Import this collection.\n  2. Create a Postman environment with these variables:\n        base_url      pre-filled with this panel's API base\n        auth_key      your API key from Panel > Channel > Public API\n        reference_id  (auto-filled after Create)\n  3. Run 'Create Order' first; copy the returned reference_id into the variable. Then run Detail / Update / Delete.\n\nAll endpoints are POST and accept/return application/json.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://ilsportal.io/api"
        },
        {
            "key": "auth_key",
            "value": "YOUR_API_KEY"
        },
        {
            "key": "channel_id",
            "value": "YOUR_ENCODED_CHANNEL_ID"
        },
        {
            "key": "reference_id",
            "value": ""
        }
    ],
    "item": [
        {
            "name": "Create Order",
            "request": {
                "method": "POST",
                "description": "See https://ilsportal.io/api-integration#endpoint-create",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    },
                    {
                        "key": "auth-key",
                        "value": "{{auth_key}}"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}order/create",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "order",
                        "create"
                    ]
                },
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"order_id\": 202610010001,\n    \"order_name\": \"#1001\",\n    \"order_date\": \"16-06-2026\",\n    \"reference_no\": 1001,\n    \"channel_id\": \"{{channel_id}}\",\n    \"payment_type\": \"PREPAID\",\n    \"tax_include\": true,\n    \"order_notes\": \"Please ship promptly\",\n    \"tags\": [\n        \"WEB\",\n        \"PRIORITY\"\n    ],\n    \"weight_unit\": \"KG\",\n    \"invoice_number\": \"INV/2026/00045\",\n    \"package_details\": {\n        \"length\": 30,\n        \"width\": 20,\n        \"height\": 10\n    },\n    \"shipping_gstin\": \"24AAACI1681G1ZE\",\n    \"billing_gstin\": \"24AAACI1681G1ZE\",\n    \"shipping_address\": {\n        \"first_name\": \"Chetna\",\n        \"last_name\": \"Patel\",\n        \"address1\": \"123 Varachha\",\n        \"address2\": \"Near Mota Varachha\",\n        \"city\": \"Surat\",\n        \"province\": \"Gujarat\",\n        \"province_code\": \"GJ\",\n        \"zip\": \"395008\",\n        \"country\": \"India\",\n        \"country_code\": \"IN\",\n        \"phone\": \"+919033104668\",\n        \"email\": \"buyer@example.com\",\n        \"company\": \"\"\n    },\n    \"products\": [\n        {\n            \"product_name\": \"T-Shirt Cotton\",\n            \"product_sku\": \"TSHRT-001\",\n            \"product_price\": 299,\n            \"product_quantity\": 2,\n            \"product_weight\": 0.25,\n            \"product_weight_unit\": \"KG\",\n            \"product_tax\": 5,\n            \"product_discount\": 10,\n            \"product_hsn\": \"61091000\",\n            \"product_variant_title\": \"Red / Large\"\n        }\n    ],\n    \"shipping_detail\": {\n        \"shipping_title\": \"Standard\",\n        \"shipping_charge\": 40\n    }\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Get Order Details",
            "request": {
                "method": "POST",
                "description": "See https://ilsportal.io/api-integration#endpoint-get",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    },
                    {
                        "key": "auth-key",
                        "value": "{{auth_key}}"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}order/detail",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "order",
                        "detail"
                    ]
                },
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"reference_id\": \"{{reference_id}}\"\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Update Order",
            "request": {
                "method": "POST",
                "description": "See https://ilsportal.io/api-integration#endpoint-update",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    },
                    {
                        "key": "auth-key",
                        "value": "{{auth_key}}"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}order/update",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "order",
                        "update"
                    ]
                },
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"reference_id\": \"{{reference_id}}\",\n    \"tags\": [\n        \"VIP\",\n        \"GIFT\"\n    ],\n    \"order_notes\": \"Leave at front desk\",\n    \"tracking_details\": {\n        \"tracking_number\": \"TR123456\",\n        \"tracking_company\": \"DTDC\",\n        \"tracking_url\": \"https://trackdtdc.in/TR123456\",\n        \"items\": [\n            {\n                \"sku\": \"TSHRT-001\",\n                \"quantity\": 2\n            }\n        ]\n    }\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Delete Order",
            "request": {
                "method": "POST",
                "description": "See https://ilsportal.io/api-integration#endpoint-delete",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    },
                    {
                        "key": "auth-key",
                        "value": "{{auth_key}}"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}order/delete",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "order",
                        "delete"
                    ]
                },
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"reference_id\": \"{{reference_id}}\"\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        }
    ]
}