{
	"info": {
		"_postman_id": "9aff4c7c-8a90-4c6d-ab17-9b714b4ac5fb",
		"name": "Регистрация документа и подписей",
		"description": "Будет выполнена проверка ЭЦП в соответствии с требованиями законодательства: [https://sigex.kz/blog/signature-verification/](https://sigex.kz/blog/signature-verification/)",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "28878071"
	},
	"item": [
		{
			"name": "1. регистрация нового документа в системе",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"title\": \"document title\",\n  \"description\": \"document description\",\n  \"signType\": \"cms\",\n  \"signature\": \"signature\",\n  \"emailNotifications\": {\n    \"to\": [\"user@example.com\",\"other@example.com\"]\n  },\n  \"settings\": {\n    \"private\": false,\n    \"signaturesLimit\": 2,\n    \"switchToPrivateAfterLimitReached\": true,\n    \"unique\": [\"iin\"],\n    \"strictSignersRequirements\": false,\n    \"signersRequirements\": [\n      {\n        \"iin\": \"IIN112233445566\"\n      }\n    ]\n  }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://sigex.kz/api",
					"protocol": "https",
					"host": [
						"sigex",
						"kz"
					],
					"path": [
						"api"
					]
				},
				"description": "[https://sigex.kz/support/developers/#document-registration](https://sigex.kz/support/developers/#document-registration)"
			},
			"response": []
		},
		{
			"name": "2. фиксация значений хешей документа",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/octet-stream",
						"type": "text"
					}
				],
				"body": {
					"mode": "file",
					"file": {}
				},
				"url": {
					"raw": "https://sigex.kz/api/{{id}}/data",
					"protocol": "https",
					"host": [
						"sigex",
						"kz"
					],
					"path": [
						"api",
						"{{id}}",
						"data"
					]
				},
				"description": "[https://sigex.kz/support/developers/#document-hash](https://sigex.kz/support/developers/#document-hash)"
			},
			"response": []
		},
		{
			"name": "3. получение данных о зарегистрированном документе",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://sigex.kz/api/{{id}}",
					"protocol": "https",
					"host": [
						"sigex",
						"kz"
					],
					"path": [
						"api",
						"{{id}}"
					]
				},
				"description": "[https://sigex.kz/support/developers/#document-info](https://sigex.kz/support/developers/#document-info)"
			},
			"response": []
		}
	]
}