{
    "info": {
        "_postman_id": "b0e64898-c983-4efa-86b4-85cbbb422884",
        "name": "Catalog Domain API",
        "description": "Postman collection for the Catalog domain API.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Categories",
            "item": [
                {
                    "name": "List Categories",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/categories",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "categories"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Category Tree",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/categories/tree",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "categories",
                                "tree"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get Category",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/categories/:category",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "categories",
                                ":category"
                            ],
                            "variable": [
                                {
                                    "key": "category",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create Category",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"New Category\",\n    \"parent_id\": null\n}",
                            "options": {
                                "json": {
                                    "expand": true
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/catalog/categories",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "categories"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update Category",
                    "request": {
                        "method": "PUT",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Updated Category\"\n}",
                            "options": {
                                "json": {
                                    "expand": true
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/catalog/categories/:category",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "categories",
                                ":category"
                            ],
                            "variable": [
                                {
                                    "key": "category",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Delete Category",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/categories/:category",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "categories",
                                ":category"
                            ],
                            "variable": [
                                {
                                    "key": "category",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Restore Category",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/categories/:category/restore",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "categories",
                                ":category",
                                "restore"
                            ],
                            "variable": [
                                {
                                    "key": "category",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Category Items",
            "item": [
                {
                    "name": "List Category Items",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/category-items",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "category-items"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Search Items",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/category-items/search/:query",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "category-items",
                                "search",
                                ":query"
                            ],
                            "variable": [
                                {
                                    "key": "query",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Toggle Visibility",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/category-items/:item/toggle-visibility",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "category-items",
                                ":item",
                                "toggle-visibility"
                            ],
                            "variable": [
                                {
                                    "key": "item",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Warehouses",
            "item": [
                {
                    "name": "List Warehouses",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/warehouses",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "warehouses"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create Warehouse",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Warehouse A\",\n    \"is_active\": true\n}",
                            "options": {
                                "json": {
                                    "expand": true
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/catalog/warehouses",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "warehouses"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get Warehouse",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/warehouses/:warehouse",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "warehouses",
                                ":warehouse"
                            ],
                            "variable": [
                                {
                                    "key": "warehouse",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Inventory",
            "item": [
                {
                    "name": "List Inventory",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/inventory",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "inventory"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Inventory Adjustment",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"quantity\": 10,\n    \"reason\": \"Manual adjustment\"\n}",
                            "options": {
                                "json": {
                                    "expand": true
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/catalog/inventory/:inventory/adjust",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "inventory",
                                ":inventory",
                                "adjust"
                            ],
                            "variable": [
                                {
                                    "key": "inventory",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Transactions",
            "item": [
                {
                    "name": "List Transactions",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/transactions",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "transactions"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Date Range Transactions",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/transactions/date-range?start_date=2023-01-01&end_date=2023-12-31",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "transactions",
                                "date-range"
                            ],
                            "query": [
                                {
                                    "key": "start_date",
                                    "value": "2023-01-01"
                                },
                                {
                                    "key": "end_date",
                                    "value": "2023-12-31"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Materials",
            "item": [
                {
                    "name": "List Materials",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/materials",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "materials"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get Material",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/materials/:material",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "materials",
                                ":material"
                            ],
                            "variable": [
                                {
                                    "key": "material",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Units",
            "item": [
                {
                    "name": "List Units",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/units",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "units"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List Unit Categories",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/unit-categories",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "unit-categories"
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Services",
            "item": [
                {
                    "name": "List Services",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/services",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "services"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List All Prices",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/services/prices",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "services",
                                "prices"
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Bundles",
            "item": [
                {
                    "name": "List Bundles",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/bundles",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "bundles"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Available Bundles",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/bundles/available",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "bundles",
                                "available"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Bundle Pricing",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/bundles/:bundle/pricing?quantity=1",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "bundles",
                                ":bundle",
                                "pricing"
                            ],
                            "query": [
                                {
                                    "key": "quantity",
                                    "value": "1"
                                }
                            ],
                            "variable": [
                                {
                                    "key": "bundle",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Catalog Products",
            "item": [
                {
                    "name": "List Products",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/catalog-products",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "catalog-products"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Product Statistics",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/catalog-products/statistics",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "catalog-products",
                                "statistics"
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Inventory Types",
            "item": [
                {
                    "name": "List Inventory Types",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/inventory-types",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "inventory-types"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create Inventory Type",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"New Type\",\n    \"code\": \"NT001\"\n}",
                            "options": {
                                "json": {
                                    "expand": true
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/catalog/inventory-types",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "inventory-types"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Restore Inventory Type",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{base_url}}/catalog/inventory-types/:id/restore",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "catalog",
                                "inventory-types",
                                ":id",
                                "restore"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": ""
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{token}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "base_url",
            "value": "deomback.rzain.com.tr/api/v1",
            "type": "string"
        },
        {
            "key": "token",
            "value": "YOUR_BEARER_TOKEN_HERE",
            "type": "string"
        }
    ]
}