{
	"info": {
		"_postman_id": "b9a5f4c3-e8d1-4e2a-a9e4-c8a7f6d5e4c3",
		"name": "rzain ERP - Numbering Settings",
		"description": "Collection for managing dynamic numbering formats across the ERP system.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Get All Additional Settings",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/app-settings/additional",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"v1",
						"app-settings",
						"additional"
					]
				},
				"description": "Retrieves all additional settings including the new 'numbering' block."
			},
			"response": []
		},
		{
			"name": "Get Numbering Entities",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/v1/app-settings/numbering-entities",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"v1",
						"app-settings",
						"numbering-entities"
					]
				},
				"description": "Returns a list of all entities that support numbering with their Arabic and English labels."
			},
			"response": []
		},
		{
			"name": "Preview Numbering Format",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"numbering_preview\": {\n        \"prefix\": \"INV-\",\n        \"include_year\": true,\n        \"year_format\": \"Y\",\n        \"sequence_length\": 5\n    }\n}"
				},
				"url": {
					"raw": "{{base_url}}/api/v1/app-settings/additional/preview-numbering",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"v1",
						"app-settings",
						"additional",
						"preview-numbering"
					]
				},
				"description": "Generates a sample code preview based on the provided configuration without saving."
			},
			"response": []
		},
		{
			"name": "Update Numbering Settings",
			"request": {
				"method": "PUT",
				"header": [
					{
						"key": "Accept",
						"value": "application/json"
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"numbering\": {\n        \"purchase_order\": {\n            \"prefix\": \"PO-\",\n            \"include_year\": true,\n            \"year_format\": \"Y\",\n            \"sequence_length\": 6\n        },\n        \"sales_invoice\": {\n            \"prefix\": \"INV-\",\n            \"include_year\": false,\n            \"sequence_length\": 5\n        }\n    }\n}"
				},
				"url": {
					"raw": "{{base_url}}/api/v1/app-settings/additional",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"v1",
						"app-settings",
						"additional"
					]
				},
				"description": "Updates the dynamic numbering formats for specific entities."
			},
			"response": []
		}
	],
	"variable": [
		{
			"key": "base_url",
			"value": "http://127.0.0.1:8000"
		}
	]
}
