{"openapi":"3.1.0","info":{"title":"ARM20 API13 Gateway — catalog","version":"0.6.3","description":"Public ARM20 policy gateway. Existing UPM APIs are upstream services and are not exposed directly."},"servers":[{"url":"https://api13.arm20.com"}],"paths":{"/":{"get":{"summary":"Gateway landing page","responses":{"200":{"description":"HTML landing page"}}},"post":{"summary":"Retired legacy contract tombstone","deprecated":true,"responses":{"410":{"$ref":"#/components/responses/Error"}}}},"/manual":{"get":{"summary":"API user manual welcome page","responses":{"200":{"description":"HTML user manual"}}}},"/manual/{page}":{"get":{"summary":"API user manual topic page","parameters":[{"name":"page","in":"path","required":true,"schema":{"type":"string","enum":["quickstart","access","requests","idempotency","errors","scenarios","search","playground","sdks","glossary","changelog","methods"]}}],"responses":{"200":{"description":"HTML user manual topic"},"404":{"$ref":"#/components/responses/Error"}}}},"/manual/methods/{section}":{"get":{"summary":"API method reference business section","parameters":[{"name":"section","in":"path","required":true,"schema":{"type":"string","enum":["catalog","inventory","documents","finance","checkout","cashdesk","prro","reports","templates","service"]}}],"responses":{"200":{"description":"HTML method reference section"},"404":{"$ref":"#/components/responses/Error"}}}},"/v1/health":{"get":{"summary":"Gateway liveness","responses":{"200":{"$ref":"#/components/responses/Health"}}}},"/v1/ready":{"get":{"summary":"Gateway configuration and writable-state readiness","responses":{"200":{"$ref":"#/components/responses/Readiness"},"503":{"$ref":"#/components/responses/Readiness"}}}},"/v1/openapi.json":{"get":{"summary":"This OpenAPI document","responses":{"200":{"description":"OpenAPI 3.1 JSON document"}}}},"/v1/openapi/{section}.json":{"get":{"summary":"Smaller OpenAPI document for one business section","parameters":[{"name":"section","in":"path","required":true,"schema":{"type":"string","enum":["catalog","inventory","documents","finance","checkout","cashdesk","prro","reports","templates","service"]}}],"responses":{"200":{"description":"Section-specific OpenAPI 3.1 JSON document"},"404":{"$ref":"#/components/responses/Error"}}}},"/v1/schemas/{method}.json":{"get":{"summary":"Request and response JSON Schema for one public method","parameters":[{"name":"method","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_.]{1,99}$"}}],"responses":{"200":{"description":"JSON Schema 2020-12 document"},"404":{"$ref":"#/components/responses/Error"}}}},"/v1/auth/token":{"post":{"summary":"Exchange ARM20 credentials for a short-lived access token","security":[{"basicAuth":[]},{}],"requestBody":{"$ref":"#/components/requestBodies/Credentials"},"responses":{"200":{"$ref":"#/components/responses/Token"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/v1/auth/api-key":{"post":{"summary":"Get or restore the permanent API key stored in the tenant Conf table","description":"This is an idempotent credential exchange. After credentials are parsed, a dedicated proxy-safe per-IP rate limit is applied while the strict 8/min limit remains per normalized login. Before reading or writing Conf.Api13Key it calls the fixed parameterless settings/ensure_api_user contract for Users.Ind=1313 and Users.Nt=Api_user. It never exposes a generic write operation.","security":[{"basicAuth":[]},{}],"requestBody":{"$ref":"#/components/requestBodies/Credentials"},"responses":{"200":{"$ref":"#/components/responses/ApiKey"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/v1/auth/introspect":{"post":{"summary":"Inspect the current principal and scopes","security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Introspection"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/v1/auth/revoke":{"post":{"summary":"Revoke the current short-lived bearer session","description":"Accepts only an a13s1 short-lived session token. Permanent a13k1 API keys are not revoked by this endpoint.","security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Revoke"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/v1/operations":{"post":{"summary":"List methods allowed by the current scopes","security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Operations"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/v1/rpc":{"post":{"summary":"Execute one explicitly published business method","description":"The operation catalog identifies whether a method is mutating and requires idempotency protection.","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Required when the selected operation has mutating=true and idempotency_required=true; optional for read-only operations.","schema":{"type":"string","minLength":8,"maxLength":255,"pattern":"^[A-Za-z0-9][A-Za-z0-9._~:+/=-]*$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RpcRequest"}}}},"responses":{"200":{"description":"Method-specific successful JSON envelope","headers":{"Idempotency-Replayed":{"description":"For a successful mutating operation, false after its first execution and true when the stored result was replayed. Absent for read-only operations.","schema":{"type":"string","enum":["true","false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RpcSuccess"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/v1/rpc/validate":{"post":{"summary":"Validate one RPC request without executing it","description":"Checks authentication, scope, method and params. It never calls the upstream service and never changes business data.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RpcRequest"}}}},"responses":{"200":{"$ref":"#/components/responses/Validation"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/v1/rpc/page":{"post":{"summary":"Execute and page one read-only row method","description":"Provides one consistent cursor/limit envelope for published read methods. It never accepts write operations.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedRpcRequest"}}}},"responses":{"200":{"$ref":"#/components/responses/PagedRpc"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A short-lived a13s1 session token or a permanent a13k1 API key."},"basicAuth":{"type":"http","scheme":"basic"}},"requestBodies":{"Credentials":{"required":false,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","maxProperties":0},{"type":"object","required":["login","password"],"additionalProperties":false,"properties":{"login":{"type":"string","minLength":1,"maxLength":190},"password":{"type":"string","format":"password","minLength":1,"maxLength":512}}}]}}}}},"responses":{"Health":{"description":"Gateway process is alive","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthEnvelope"}}}},"Readiness":{"description":"Current readiness state, including failed checks when HTTP 503 is returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessEnvelope"}}}},"Token":{"description":"Short-lived bearer token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenEnvelope"}}}},"ApiKey":{"description":"Permanent tenant API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyEnvelope"}}}},"Introspection":{"description":"Current active principal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntrospectionEnvelope"}}}},"Revoke":{"description":"Current token was revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeEnvelope"}}}},"Operations":{"description":"Methods granted to the current principal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsEnvelope"}}}},"Validation":{"description":"The request is valid and was not executed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationEnvelope"}}}},"PagedRpc":{"description":"One page of a read-only row result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedRpcEnvelope"}}}},"Error":{"description":"Stable error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"schemas":{"RpcRequest":{"oneOf":[{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.contrag.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_actions.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_cards.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.post.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_kupm.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_zap.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.users.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.post.restore"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"minLength":1,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"}},"required":["key"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.contrag.save"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"},"nt":{"type":"string","maxLength":255,"minLength":1,"title":"Назва контрагента","example":"Тестовий товар","description":"Поле «Назва контрагента» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"},"rekv":{"type":"string","maxLength":4096,"title":"Реквізити","example":"Приклад","description":"Поле «Реквізити» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"}},"required":["nt"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_actions.save"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"},"uin":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"title":"Ідентифікатор запису","example":1,"description":"Внутрішній числовий ідентифікатор запису, отриманий методом читання відповідного довідника.","x-api13-group":"Основні"},"disc":{"type":"string","maxLength":64,"minLength":1,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Відсоток знижки","format":"decimal-string","example":"100.00","description":"Точне числове значення «Відсоток знижки» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"percent"},"action_type":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"title":"Тип операції","example":1,"description":"Поле «Тип операції» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"dfr":{"type":"string","maxLength":30,"minLength":1,"title":"Початкова дата","format":"date","example":"2026-07-23","description":"Дата «Початкова дата» у календарному форматі YYYY-MM-DD.","x-api13-group":"Дати й час"},"dto":{"type":"string","maxLength":30,"minLength":1,"title":"Кінцева дата","format":"date","example":"2026-07-23","description":"Дата «Кінцева дата» у календарному форматі YYYY-MM-DD.","x-api13-group":"Дати й час"},"hfrom":{"type":"string","maxLength":12,"title":"Час від","format":"time","example":"12:00:00","description":"Час «Час від» у форматі HH:MM:SS.","x-api13-group":"Дати й час"},"hto":{"type":"string","maxLength":12,"title":"Час до","format":"time","example":"12:00:00","description":"Час «Час до» у форматі HH:MM:SS.","x-api13-group":"Дати й час"}},"required":["uin","disc","action_type","dfr","dto"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_cards.save"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"},"code":{"type":"string","maxLength":50,"minLength":1,"title":"Номер дисконтної картки","example":"1001","description":"Публічний код товару, картки або іншого запису, як він відображається у програмі.","x-api13-group":"Основні"},"df":{"type":"string","maxLength":250,"title":"Прізвище","example":"Приклад","description":"Поле «Прізвище» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"di":{"type":"string","maxLength":250,"title":"Ім’я","example":"Приклад","description":"Поле «Ім’я» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"do":{"type":"string","maxLength":250,"title":"По батькові","example":"Приклад","description":"Поле «По батькові» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"birth_date":{"type":"string","maxLength":20,"title":"Дата народження","format":"date","example":"2026-07-23","description":"Дата «Дата народження» у календарному форматі YYYY-MM-DD.","x-api13-group":"Дати й час"},"disc":{"type":"string","maxLength":64,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Відсоток знижки","format":"decimal-string","example":"100.00","description":"Точне числове значення «Відсоток знижки» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"percent"},"sumpok":{"type":"string","maxLength":64,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Сума покупок","format":"decimal-string","example":"100.00","description":"Точне числове значення «Сума покупок» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"},"dateadded":{"type":"string","maxLength":30,"title":"Дата додавання","format":"date","example":"2026-07-23","description":"Дата «Дата додавання» у календарному форматі YYYY-MM-DD.","x-api13-group":"Дати й час"},"dopinf":{"type":"string","maxLength":4096,"title":"Додаткова інформація","example":"Приклад","description":"Поле «Додаткова інформація» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"assigned_user_id":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"title":"Призначений користувач","example":1,"description":"Ідентифікатор «Призначений користувач», отриманий із результату відповідного методу читання цієї бази.","x-api13-group":"Додаткові"},"isdolg":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"title":"Дозволити борг","example":1,"description":"Поле «Дозволити борг» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"maxdolg":{"type":"string","maxLength":64,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Ліміт боргу","format":"decimal-string","example":"100.00","description":"Точне числове значення «Ліміт боргу» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"},"tel":{"type":"string","maxLength":30,"title":"Телефон","format":"phone","example":"+380501234567","description":"Поле «Телефон» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"bonus_p":{"type":"string","maxLength":64,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Відсоток бонусів","format":"decimal-string","example":"100.00","description":"Точне числове значення «Відсоток бонусів» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"percent"}},"required":["code"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.post.save"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"},"nt":{"type":"string","maxLength":255,"minLength":1,"title":"Назва постачальника","example":"Тестовий товар","description":"Поле «Назва постачальника» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"},"rekv":{"type":"string","maxLength":4096,"title":"Реквізити","example":"Приклад","description":"Поле «Реквізити» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"otsr":{"type":"string","maxLength":64,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Відстрочка платежу","format":"decimal-string","example":"100.00","description":"Точне числове значення «Відстрочка платежу» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"},"sumd":{"type":"string","maxLength":64,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Сума боргу","format":"decimal-string","example":"100.00","description":"Точне числове значення «Сума боргу» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"}},"required":["nt"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_kupm.save"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"},"fld":{"type":"string","maxLength":250,"minLength":1,"title":"Системне ім’я поля","example":"Приклад","description":"Поле «Системне ім’я поля» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"rus":{"type":"string","maxLength":255,"minLength":1,"title":"Російський текст","example":"Приклад","description":"Поле «Російський текст» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"ukr":{"type":"string","maxLength":250,"minLength":1,"title":"Український текст","example":"Приклад","description":"Поле «Український текст» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"width":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"title":"Ширина колонки","example":1,"description":"Поле «Ширина колонки» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"}},"required":["fld","rus","ukr"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_zap.save"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"},"fld":{"type":"string","maxLength":250,"minLength":1,"title":"Системне ім’я поля","example":"Приклад","description":"Поле «Системне ім’я поля» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"rus":{"type":"string","maxLength":255,"minLength":1,"title":"Російський текст","example":"Приклад","description":"Поле «Російський текст» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"ukr":{"type":"string","maxLength":250,"minLength":1,"title":"Український текст","example":"Приклад","description":"Поле «Український текст» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"width":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"title":"Ширина колонки","example":1,"description":"Поле «Ширина колонки» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"}},"required":["fld","rus","ukr"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"catalog.users.save"},"params":{"type":"object","additionalProperties":false,"properties":{"key":{"type":"string","maxLength":512,"title":"Ключ запису","example":"Приклад","description":"Стабільний ключ запису, отриманий попереднім методом читання цього самого довідника.","x-api13-group":"Основні"},"nt":{"type":"string","maxLength":255,"minLength":1,"title":"Ім’я користувача","example":"Тестовий товар","description":"Поле «Ім’я користувача» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"},"card":{"type":"string","maxLength":45,"minLength":1,"title":"Картка користувача","example":"990000001","description":"Поле «Картка користувача» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"rekv":{"type":"string","maxLength":4096,"title":"Реквізити","example":"Приклад","description":"Поле «Реквізити» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"level":{"type":"string","maxLength":2,"minLength":1,"title":"Рівень категорії","example":"Приклад","description":"Поле «Рівень категорії» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"kf":{"type":"string","maxLength":64,"pattern":"^-?[0-9]+(?:[.,][0-9]+)?$","title":"Коефіцієнт","format":"decimal-string","example":"100.00","description":"Точне числове значення «Коефіцієнт» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається.","x-api13-group":"Суми та кількості","x-api13-unit":"ratio"},"kasx":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"title":"Номер каси","example":1,"description":"Поле «Номер каси» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"typex":{"type":"string","maxLength":20,"title":"Тип запису","example":"Приклад","description":"Поле «Тип запису» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"tel":{"type":"string","maxLength":100,"title":"Телефон","format":"phone","example":"+380501234567","description":"Поле «Телефон» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"}},"required":["nt","card","level"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"category.add"},"params":{"type":"object","additionalProperties":false,"properties":{"level":{"type":"integer","minimum":0,"maximum":1,"default":0,"title":"Рівень категорії","example":1,"description":"Поле «Рівень категорії» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"name":{"type":"string","maxLength":512,"minLength":1,"pattern":"^[^\\x00-\\x1F\\x7F]{3,512}$","title":"Назва","example":"Тестовий товар","description":"Поле «Назва» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"},"parent_name":{"type":"string","maxLength":512,"default":"","title":"Батьківська категорія","example":"","description":"Поле «Батьківська категорія» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"uktzed":{"type":"string","maxLength":4096,"default":"","title":"Код УКТ ЗЕД","example":"","description":"Поле «Код УКТ ЗЕД» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"uperc":{"type":"string","maxLength":32,"pattern":"^(?:(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,8})?|-(?:[1-9][0-9]*(?:\\.[0-9]{1,8})?|0\\.(?=[0-9]{0,7}[1-9])[0-9]{1,8})))?$","x-api13-scale":8,"description":"Точне числове значення «Націнка категорії» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається. Decimal encoded as a JSON string; at most 8 fractional digits.","default":"0","title":"Націнка категорії","format":"decimal-string","example":"100.00","x-api13-group":"Суми та кількості","x-api13-unit":"percent"},"nocloud":{"type":"boolean","default":false,"title":"Не публікувати у хмарі","example":false,"description":"Визначає, чи застосовувати параметр «Не публікувати у хмарі». Передавайте JSON true або false.","x-api13-group":"Додаткові"},"nominus":{"type":"boolean","default":false,"title":"Заборонити від’ємний залишок","example":false,"description":"Визначає, чи застосовувати параметр «Заборонити від’ємний залишок». Передавайте JSON true або false.","x-api13-group":"Додаткові"},"k_disc":{"type":"string","maxLength":32,"pattern":"^(?:(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,8})?|-(?:[1-9][0-9]*(?:\\.[0-9]{1,8})?|0\\.(?=[0-9]{0,7}[1-9])[0-9]{1,8})))?$","x-api13-scale":8,"description":"Точне числове значення «Коефіцієнт знижки» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається. Decimal encoded as a JSON string; at most 8 fractional digits.","default":"0","title":"Коефіцієнт знижки","format":"decimal-string","example":"100.00","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"},"k_bonus":{"type":"string","maxLength":32,"pattern":"^(?:(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,8})?|-(?:[1-9][0-9]*(?:\\.[0-9]{1,8})?|0\\.(?=[0-9]{0,7}[1-9])[0-9]{1,8})))?$","x-api13-scale":8,"description":"Точне числове значення «Коефіцієнт бонусів» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається. Decimal encoded as a JSON string; at most 8 fractional digits.","default":"0","title":"Коефіцієнт бонусів","format":"decimal-string","example":"100.00","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"}},"required":["name"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"category.clear_picture"},"params":{"type":"object","additionalProperties":false,"properties":{"uin":{"type":"string","maxLength":4096,"minLength":1,"title":"Ідентифікатор запису","example":"Приклад","description":"Внутрішній числовий ідентифікатор запису, отриманий методом читання відповідного довідника.","x-api13-group":"Основні"}},"required":["uin"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"category.clear_temp_picture"},"params":{"type":"object","additionalProperties":false,"properties":{}},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"category.delete"},"params":{"type":"object","additionalProperties":false,"properties":{"uin":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"default":0,"title":"Ідентифікатор запису","example":1,"description":"Внутрішній числовий ідентифікатор запису, отриманий методом читання відповідного довідника.","x-api13-group":"Основні"}}},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"category.move_goods"},"params":{"type":"object","additionalProperties":false,"properties":{"uin":{"type":"integer","minimum":0,"maximum":2147483647,"title":"Ідентифікатор запису","example":1,"description":"Внутрішній числовий ідентифікатор запису, отриманий методом читання відповідного довідника.","x-api13-group":"Основні"},"codes":{"type":"array","items":{"type":"string","maxLength":190,"minLength":1,"pattern":"^[^\\x00-\\x1F\\x7F]{1,190}$","title":"Codes item","example":"Приклад","description":"Поле «Codes item» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"minItems":1,"maxItems":900,"uniqueItems":true,"title":"Коди товарів","example":[],"description":"Масив кодів товарів. Порядок елементів зберігається під час передавання до операції.","x-api13-group":"Колекції"}},"required":["uin","codes"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"category.rename"},"params":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":512,"minLength":1,"pattern":"^[^\\x00-\\x1F\\x7F]{3,512}$","title":"Назва","example":"Тестовий товар","description":"Поле «Назва» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"},"uin":{"type":"integer","minimum":1,"maximum":2147483647,"title":"Ідентифікатор запису","example":1,"description":"Внутрішній числовий ідентифікатор запису, отриманий методом читання відповідного довідника.","x-api13-group":"Основні"},"uktzed":{"type":"string","maxLength":4096,"default":"","title":"Код УКТ ЗЕД","example":"","description":"Поле «Код УКТ ЗЕД» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"uperc":{"type":"string","maxLength":32,"pattern":"^(?:(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,8})?|-(?:[1-9][0-9]*(?:\\.[0-9]{1,8})?|0\\.(?=[0-9]{0,7}[1-9])[0-9]{1,8})))?$","x-api13-scale":8,"description":"Точне числове значення «Націнка категорії» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається. Decimal encoded as a JSON string; at most 8 fractional digits.","default":"0","title":"Націнка категорії","format":"decimal-string","example":"100.00","x-api13-group":"Суми та кількості","x-api13-unit":"percent"},"nocloud":{"type":"boolean","default":false,"title":"Не публікувати у хмарі","example":false,"description":"Визначає, чи застосовувати параметр «Не публікувати у хмарі». Передавайте JSON true або false.","x-api13-group":"Додаткові"},"nominus":{"type":"boolean","default":false,"title":"Заборонити від’ємний залишок","example":false,"description":"Визначає, чи застосовувати параметр «Заборонити від’ємний залишок». Передавайте JSON true або false.","x-api13-group":"Додаткові"},"k_disc":{"type":"string","maxLength":32,"pattern":"^(?:(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,8})?|-(?:[1-9][0-9]*(?:\\.[0-9]{1,8})?|0\\.(?=[0-9]{0,7}[1-9])[0-9]{1,8})))?$","x-api13-scale":8,"description":"Точне числове значення «Коефіцієнт знижки» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається. Decimal encoded as a JSON string; at most 8 fractional digits.","default":"0","title":"Коефіцієнт знижки","format":"decimal-string","example":"100.00","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"},"k_bonus":{"type":"string","maxLength":32,"pattern":"^(?:(?:(?:0|[1-9][0-9]*)(?:\\.[0-9]{1,8})?|-(?:[1-9][0-9]*(?:\\.[0-9]{1,8})?|0\\.(?=[0-9]{0,7}[1-9])[0-9]{1,8})))?$","x-api13-scale":8,"description":"Точне числове значення «Коефіцієнт бонусів» у JSON-рядку; десятковий роздільник — крапка, символ одиниці не додається. Decimal encoded as a JSON string; at most 8 fractional digits.","default":"0","title":"Коефіцієнт бонусів","format":"decimal-string","example":"100.00","x-api13-group":"Суми та кількості","x-api13-unit":"currency-of-operation"}},"required":["name","uin"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"category.wizard_apply_tree"},"params":{"type":"object","additionalProperties":false,"properties":{"replace":{"type":"boolean","default":false,"title":"Замінити наявні дані","example":false,"description":"Визначає, чи застосовувати параметр «Замінити наявні дані». Передавайте JSON true або false.","x-api13-group":"Додаткові"},"nodes":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"depth":{"type":"integer","minimum":0,"maximum":32,"title":"Глибина вузла","example":1,"description":"Поле «Глибина вузла» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"name":{"type":"string","maxLength":512,"minLength":1,"pattern":"^[^\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]{3,512}$","title":"Назва","example":"Тестовий товар","description":"Поле «Назва» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"}},"required":["depth","name"]},"minItems":1,"maxItems":300,"title":"Nodes","example":[],"description":"Список «Nodes». Структуру одного елемента, обов’язкові поля та межі кількості наведено нижче.","x-api13-group":"Додаткові"}},"required":["nodes"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"references.translate_kupm"},"params":{"type":"object","additionalProperties":false,"properties":{}},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"references.translate_zap"},"params":{"type":"object","additionalProperties":false,"properties":{"lang":{"type":"string","enum":["ru","ua"],"default":"ru","title":"Мова","example":"ru","description":"Варіант «Мова». Використовуйте лише одне зі значень, розшифрованих нижче.","x-api13-group":"Додаткові","x-enumDescriptions":["російська","українська"],"x-api13-enum-labels":{"ru":"російська","ua":"українська"}}}},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"settings.delete_tp"},"params":{"type":"object","additionalProperties":false,"properties":{"ind":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"default":0,"title":"Ідентифікатор рядка","example":1,"description":"Ідентифікатор «Ідентифікатор рядка», отриманий із результату відповідного методу читання цієї бази.","x-api13-group":"Додаткові"}}},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"settings.init_user_tp"},"params":{"type":"object","additionalProperties":false,"properties":{"target_user_id":{"type":"integer","minimum":1,"maximum":2147483647,"title":"Цільовий користувач","example":1,"description":"Ідентифікатор «Цільовий користувач», отриманий із результату відповідного методу читання цієї бази.","x-api13-group":"Додаткові"}},"required":["target_user_id"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"settings.save_tp"},"params":{"type":"object","additionalProperties":false,"properties":{"dopinf":{"type":"string","maxLength":4096,"default":"","title":"Додаткова інформація","example":"","description":"Поле «Додаткова інформація» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"ind":{"type":"integer","minimum":1,"maximum":2147483647,"title":"Ідентифікатор рядка","example":1,"description":"Ідентифікатор «Ідентифікатор рядка», отриманий із результату відповідного методу читання цієї бази.","x-api13-group":"Додаткові"},"mode":{"type":"string","enum":["edit"],"default":"edit","title":"Режим операції","example":"edit","description":"Вибирає один із підтримуваних сценаріїв операції. Значення та їх зміст наведено у списку варіантів.","x-api13-group":"Основні","x-enumDescriptions":["редагувати наявний запис"],"x-api13-enum-labels":{"edit":"редагувати наявний запис"}},"nt":{"type":"string","maxLength":512,"default":"","title":"Ім’я користувача","example":"Тестовий товар","description":"Поле «Ім’я користувача» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"}},"required":["ind"]},"id":{"type":["string","integer","null"]}}},{"type":"object","required":["method","params"],"additionalProperties":false,"properties":{"method":{"const":"settings.save_user_identity"},"params":{"type":"object","additionalProperties":false,"properties":{"card":{"type":"string","maxLength":512,"minLength":1,"title":"Номер дисконтної картки","example":"990000001","description":"Поле «Номер дисконтної картки» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"},"nt":{"type":"string","maxLength":512,"minLength":1,"title":"Ім’я користувача","example":"Тестовий товар","description":"Поле «Ім’я користувача» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Основні"},"target_user_id":{"type":"integer","minimum":1,"maximum":2147483647,"title":"Цільовий користувач","example":1,"description":"Ідентифікатор «Цільовий користувач», отриманий із результату відповідного методу читання цієї бази.","x-api13-group":"Додаткові"},"typex":{"type":"string","maxLength":512,"default":"","title":"Тип запису","example":"","description":"Поле «Тип запису» відповідного документа або довідника ARM20. Передавайте значення так, як воно зберігається у Windows.","x-api13-group":"Додаткові"}},"required":["card","nt","target_user_id"]},"id":{"type":["string","integer","null"]}}}]},"PagedRpcRequest":{"oneOf":[{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"references.translate_kupm"},"params":{"type":"object","additionalProperties":false,"properties":{}},"id":{"type":["string","integer","null"]},"cursor":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,4})$","default":"0"},"limit":{"type":"integer","minimum":1,"maximum":500,"default":100}}},{"type":"object","required":["method"],"additionalProperties":false,"properties":{"method":{"const":"references.translate_zap"},"params":{"type":"object","additionalProperties":false,"properties":{"lang":{"type":"string","enum":["ru","ua"],"default":"ru","title":"Мова","example":"ru","description":"Варіант «Мова». Використовуйте лише одне зі значень, розшифрованих нижче.","x-api13-group":"Додаткові","x-enumDescriptions":["російська","українська"],"x-api13-enum-labels":{"ru":"російська","ua":"українська"}}}},"id":{"type":["string","integer","null"]},"cursor":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,4})$","default":"0"},"limit":{"type":"integer","minimum":1,"maximum":500,"default":100}}}]},"RpcSuccess":{"oneOf":[{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.contrag.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_actions.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_cards.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.post.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_kupm.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_zap.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.users.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.post.restore"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.contrag.save"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_actions.save"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.discount_cards.save"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.post.save"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_kupm.save"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.translate_zap.save"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"catalog.users.save"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","catalog","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"catalog":{"type":"string","title":"Catalog","description":"Повернене значення «Catalog» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"category.add"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","category_id"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"category_id":{"type":"string","title":"Ідентифікатор категорії","description":"Повернене значення «Ідентифікатор категорії» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"category.clear_picture"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"category.clear_temp_picture"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"category.delete"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","category_id"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"category_id":{"type":"string","title":"Ідентифікатор категорії","description":"Повернене значення «Ідентифікатор категорії» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"category.move_goods"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","requested_count"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"requested_count":{"type":"string","title":"Requested count","description":"Повернене значення «Requested count» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"category.rename"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","category_id"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"category_id":{"type":"string","title":"Ідентифікатор категорії","description":"Повернене значення «Ідентифікатор категорії» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"category.wizard_apply_tree"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","inserted"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"inserted":{"type":"string","title":"Inserted","description":"Повернене значення «Inserted» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"references.translate_kupm"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","value"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"value":{"type":"string"}}},"rows":{"type":"array","items":{"type":"object","required":["field","russian","ukrainian"],"additionalProperties":false,"properties":{"field":{"type":"string","title":"Поле","description":"Повернене значення «Поле» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"russian":{"type":"string","title":"Russian","description":"Повернене значення «Russian» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"ukrainian":{"type":"string","title":"Ukrainian","description":"Повернене значення «Ukrainian» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}}}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"references.translate_zap"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","value"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"value":{"type":"string"}}},"rows":{"type":"array","items":{"type":"object","required":["field","caption","width","align"],"additionalProperties":false,"properties":{"field":{"type":"string","title":"Поле","description":"Повернене значення «Поле» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"caption":{"type":"string","title":"Caption","description":"Повернене значення «Caption» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"width":{"type":"string","title":"Ширина колонки","description":"Повернене значення «Ширина колонки» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"align":{"type":"string","title":"Align","description":"Повернене значення «Align» відповідного запису, документа або підсумку ARM20.","example":"Приклад"}}}}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"settings.delete_tp"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"settings.init_user_tp"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"settings.save_tp"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","mode","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"mode":{"type":"string","title":"Режим операції","description":"Повернене значення «Режим операції» відповідного запису, документа або підсумку ARM20.","example":"Приклад"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}},{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","id"],"additionalProperties":false,"properties":{"method":{"const":"settings.save_user_identity"},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":false,"properties":{"upstream":{"type":"object","required":["name","version","resource"],"additionalProperties":false,"properties":{"name":{"const":"UPMAPI"},"version":{"type":"string"},"resource":{"type":"string"}}},"status":{"type":"object","required":["code","operation","affected"],"additionalProperties":false,"properties":{"code":{"const":"OK"},"operation":{"type":"string"},"affected":{"type":"string","title":"Змінено записів","description":"Кількість записів, які upstream фактично змінив.","example":"Приклад"}}},"rows":{"type":"array","items":{},"maxItems":0}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string"}}}]},"Principal":{"type":"object","required":["subject","tenant_id","scopes","issued_at","expires_at","auth_type"],"additionalProperties":false,"properties":{"subject":{"type":"string","minLength":1},"tenant_id":{"type":"string","pattern":"^[a-f0-9]{24}$"},"scopes":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"issued_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"auth_type":{"type":"string","enum":["bearer","basic","api_key","api_key_provision"]}}},"ReadinessChecks":{"type":"object","required":["registry","token_secret","api_keys","cache_writable","data_writable","log_writable","secure_policy","secure_backends","persistent_runtime","secure_tunnels"],"additionalProperties":false,"properties":{"registry":{"type":"boolean"},"token_secret":{"type":"boolean"},"api_keys":{"type":"boolean"},"cache_writable":{"type":"boolean"},"data_writable":{"type":"boolean"},"log_writable":{"type":"boolean"},"secure_policy":{"type":"boolean"},"secure_backends":{"type":"boolean"},"persistent_runtime":{"type":"boolean"},"secure_tunnels":{"type":"boolean"}}},"ReadyEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["status","checks"],"additionalProperties":false,"properties":{"status":{"const":"ready"},"checks":{"$ref":"#/components/schemas/ReadinessChecks"}}},"request_id":{"type":"string","minLength":1}}},"NotReadyEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":false},"data":{"type":"object","required":["status","checks"],"additionalProperties":false,"properties":{"status":{"const":"not_ready"},"checks":{"$ref":"#/components/schemas/ReadinessChecks"}}},"request_id":{"type":"string","minLength":1}}},"ReadinessEnvelope":{"oneOf":[{"$ref":"#/components/schemas/ReadyEnvelope"},{"$ref":"#/components/schemas/NotReadyEnvelope"}]},"HealthEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["status","version","build","registry_configured","bearer_configured","api_keys_enabled"],"additionalProperties":false,"properties":{"status":{"const":"ok"},"version":{"type":"string","minLength":1},"build":{"type":"string","minLength":1},"registry_configured":{"type":"boolean"},"bearer_configured":{"type":"boolean"},"api_keys_enabled":{"type":"boolean"}}},"request_id":{"type":"string","minLength":1}}},"TokenEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["access_token","token_type","expires_in","scope","principal"],"additionalProperties":false,"properties":{"access_token":{"type":"string","pattern":"^a13s1\\.[A-Za-z0-9_-]+$"},"token_type":{"const":"Bearer"},"expires_in":{"type":"integer","minimum":0},"scope":{"type":"string"},"principal":{"$ref":"#/components/schemas/Principal"}}},"request_id":{"type":"string","minLength":1}}},"ApiKeyEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["api_key","api_url","created"],"additionalProperties":false,"properties":{"api_key":{"type":"string","pattern":"^a13k1\\.[A-Za-z0-9_-]{22}\\.[A-Za-z0-9_-]{43}$"},"api_url":{"type":"string","format":"uri"},"created":{"type":"boolean"}}},"request_id":{"type":"string","minLength":1}}},"IntrospectionEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["active","principal"],"additionalProperties":false,"properties":{"active":{"const":true},"principal":{"$ref":"#/components/schemas/Principal"}}},"request_id":{"type":"string","minLength":1}}},"RevokeEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["revoked"],"additionalProperties":false,"properties":{"revoked":{"const":true}}},"request_id":{"type":"string","minLength":1}}},"ParameterDefinition":{"type":"object","required":["type"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["string","enum","bool","int","decimal","array","object"]},"title":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"group":{"type":"string","minLength":1},"format":{"type":"string","minLength":1},"unit":{"type":"string","minLength":1},"example":true,"enum_labels":{"type":"object","additionalProperties":{"type":"string"}},"required":{"type":"boolean"},"values":{"type":"array","items":{"type":"string"}},"default":{"type":["string","boolean","integer","number","array","object"]},"min":{"type":"integer"},"max":{"type":"integer"},"pattern":{"type":"string"},"scale":{"type":"integer","minimum":0},"numeric_min":{"type":"number"},"numeric_max":{"type":"number"},"exclusive_min":{"type":"boolean"},"exclusive_max":{"type":"boolean"},"min_items":{"type":"integer","minimum":0},"max_items":{"type":"integer","minimum":0},"unique":{"type":"boolean"},"items":{"$ref":"#/components/schemas/ParameterDefinition"},"fields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ParameterDefinition"}}}},"FieldDefinition":{"type":"object","required":["title","description","type","example"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"type":{"type":"string","minLength":1},"format":{"type":"string","minLength":1},"unit":{"type":"string","minLength":1},"example":true}},"OperationErrorDefinition":{"type":"object","required":["code","http","description","retry"],"additionalProperties":false,"properties":{"code":{"type":"string","minLength":1},"http":{"type":"integer","minimum":400,"maximum":599},"description":{"type":"string","minLength":1},"retry":{"type":"string","minLength":1}}},"OperationDefinition":{"type":"object","required":["method","description","scope","params","result","mutating","idempotency_required","since","stability","deprecated","aliases","errors","related_methods"],"additionalProperties":false,"properties":{"method":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"scope":{"type":"string","minLength":1},"params":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ParameterDefinition"}},"result":{"oneOf":[{"type":"object","required":["mode","columns"],"additionalProperties":false,"properties":{"mode":{"const":"rows"},"columns":{"type":"array","items":{"type":"string","minLength":1}},"field_specs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldDefinition"}}}},{"type":"object","required":["mode","columns"],"additionalProperties":false,"properties":{"mode":{"const":"rows_uncounted"},"columns":{"type":"array","items":{"type":"string","minLength":1}},"field_specs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldDefinition"}}}},{"type":"object","required":["mode","row_shapes"],"additionalProperties":false,"properties":{"mode":{"const":"tagged_rows"},"row_shapes":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","minLength":1}}},"shape_field_specs":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldDefinition"}}}}},{"type":"object","required":["mode","contract","row_shapes","constraints"],"additionalProperties":false,"properties":{"mode":{"const":"variable_rows"},"contract":{"type":"string","enum":["goods_card_refs","pos_debt_pay_bonus","pos_debt_pay_cash","pos_scan_product_info","pos_search_products"]},"row_shapes":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","minLength":1}}},"constraints":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}},"field_specs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldDefinition"}}}},{"type":"object","required":["mode","fields"],"additionalProperties":false,"properties":{"mode":{"const":"status"},"fields":{"type":"array","uniqueItems":true,"items":{"type":"string","minLength":1}},"field_specs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldDefinition"}}}},{"type":"object","required":["mode","value_type"],"additionalProperties":false,"properties":{"mode":{"const":"scalar"},"value_type":{"const":"string"},"value_spec":{"$ref":"#/components/schemas/FieldDefinition"}}}]},"mutating":{"type":"boolean","description":"True when the operation can change upstream business data."},"idempotency_required":{"type":"boolean","description":"True when /v1/rpc requires the Idempotency-Key request header."},"since":{"type":"string","pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$"},"stability":{"type":"string","enum":["experimental","stable","deprecated"]},"deprecated":{"type":"boolean"},"aliases":{"type":"array","items":{"type":"string","minLength":1}},"errors":{"type":"array","items":{"$ref":"#/components/schemas/OperationErrorDefinition"}},"related_methods":{"type":"array","items":{"type":"string","minLength":1}}}},"OperationsEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["operations"],"additionalProperties":false,"properties":{"operations":{"type":"array","items":{"$ref":"#/components/schemas/OperationDefinition"}}}},"request_id":{"type":"string","minLength":1}}},"ValidationEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["valid","executed","method","mutating","idempotency_required_for_execution","required_headers_for_execution","accepted_parameters","provided_parameter_count","id"],"additionalProperties":false,"properties":{"valid":{"const":true},"executed":{"const":false},"method":{"type":"string","minLength":1},"mutating":{"type":"boolean"},"idempotency_required_for_execution":{"type":"boolean"},"required_headers_for_execution":{"type":"array","items":{"type":"string","minLength":1}},"accepted_parameters":{"type":"array","items":{"type":"string","minLength":1}},"provided_parameter_count":{"type":"integer","minimum":0},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string","minLength":1}}},"PagedRpcEnvelope":{"type":"object","required":["ok","data","request_id"],"additionalProperties":false,"properties":{"ok":{"const":true},"data":{"type":"object","required":["method","result","page","id"],"additionalProperties":false,"properties":{"method":{"type":"string","minLength":1},"result":{"type":"object","required":["upstream","status","rows"],"additionalProperties":true,"properties":{"upstream":{"type":"object"},"status":{"type":"object"},"rows":{"type":"array"}}},"page":{"type":"object","required":["limit","returned","total","next_cursor"],"additionalProperties":false,"properties":{"limit":{"type":"integer","minimum":1,"maximum":500},"returned":{"type":"integer","minimum":0,"maximum":500},"total":{"type":"integer","minimum":0},"next_cursor":{"type":["string","null"],"pattern":"^(?:0|[1-9][0-9]{0,4})$"}}},"id":{"type":["string","integer","null"]}}},"request_id":{"type":"string","minLength":1}}},"ErrorEnvelope":{"type":"object","required":["ok","error","request_id"],"additionalProperties":false,"properties":{"ok":{"const":false},"error":{"type":"object","required":["code","message","details"],"additionalProperties":false,"properties":{"code":{"type":"string","minLength":1},"message":{"type":"string","minLength":1},"details":{"type":"object","additionalProperties":true}}},"request_id":{"type":"string","minLength":1}}}}},"x-api13-operations":{"catalog.contrag.delete":{"description":"Видаляє контрагента з довідника.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.contrag.delete.json"},"catalog.discount_actions.delete":{"description":"Видаляє правило акції зі знижкою або бонусом.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.discount_actions.delete.json"},"catalog.discount_cards.delete":{"description":"Видаляє дисконтну картку з довідника.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.discount_cards.delete.json"},"catalog.post.delete":{"description":"Видаляє постачальника з довідника.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.post.delete.json"},"catalog.translate_kupm.delete":{"description":"Видаляє переклад елемента інтерфейсу програми.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.translate_kupm.delete.json"},"catalog.translate_zap.delete":{"description":"Видаляє налаштування підпису та вигляду колонки.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.translate_zap.delete.json"},"catalog.users.delete":{"description":"Видаляє користувача з довідника працівників.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.users.delete.json"},"catalog.post.restore":{"description":"Відновлює раніше видаленого постачальника.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.post.restore.json"},"catalog.contrag.save":{"description":"Створює або оновлює картку контрагента.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.contrag.save.json"},"catalog.discount_actions.save":{"description":"Створює або оновлює правило акції зі знижкою або бонусом.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.discount_actions.save.json"},"catalog.discount_cards.save":{"description":"Створює або оновлює дисконтну картку клієнта.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.discount_cards.save.json"},"catalog.post.save":{"description":"Створює або оновлює картку постачальника.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.post.save.json"},"catalog.translate_kupm.save":{"description":"Створює або оновлює переклад елемента інтерфейсу програми.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.translate_kupm.save.json"},"catalog.translate_zap.save":{"description":"Створює або оновлює підпис, ширину та вирівнювання колонки.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.translate_zap.save.json"},"catalog.users.save":{"description":"Створює або оновлює користувача в довіднику працівників.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/catalog.users.save.json"},"category.add":{"description":"Додає нову категорію або підкатегорію товарів.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/category.add.json"},"category.clear_picture":{"description":"Видаляє зображення вибраної категорії товарів.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/category.clear_picture.json"},"category.clear_temp_picture":{"description":"Очищає тимчасове зображення після скасування створення категорії.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/category.clear_temp_picture.json"},"category.delete":{"description":"Видаляє категорію або підкатегорію товарів.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/category.delete.json"},"category.move_goods":{"description":"Переносить вибрані товари до іншої підкатегорії або прибирає їх із категорії.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/category.move_goods.json"},"category.rename":{"description":"Перейменовує категорію товарів і зберігає її параметри.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/category.rename.json"},"category.wizard_apply_tree":{"description":"Застосовує дерево категорій, сформоване майстром початкового налаштування.","scope":"catalog.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/category.wizard_apply_tree.json"},"references.translate_kupm":{"description":"Повертає переклади елементів інтерфейсу програми.","scope":"references.read","mutating":false,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/references.translate_kupm.json"},"references.translate_zap":{"description":"Повертає підписи, ширини та вирівнювання колонок.","scope":"references.read","mutating":false,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/references.translate_zap.json"},"settings.delete_tp":{"description":"Видаляє торгову точку з користувацьких налаштувань.","scope":"settings.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/settings.delete_tp.json"},"settings.init_user_tp":{"description":"Створює початкові налаштування торгової точки для користувача.","scope":"settings.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/settings.init_user_tp.json"},"settings.save_tp":{"description":"Зберігає налаштування торгової точки користувача.","scope":"settings.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/settings.save_tp.json"},"settings.save_user_identity":{"description":"Зберігає ім’я та ідентифікатор поточного користувача.","scope":"settings.write","mutating":true,"since":"0.4.0","stability":"stable","deprecated":false,"schema":"/v1/schemas/settings.save_user_identity.json"}},"x-api13-system-user":{"id":1313,"name":"Api_user","provisioned_during_api_key_exchange":true,"caller_can_override":false},"x-api13-section":"catalog"}