{ "openapi": "3.0.3", "info": { "title": "Yume API", "version": "2.0.1", "description": "V1" }, "servers": [ { "url": "https://api.yume.cloud" } ], "paths": { "/v1/attachments/comments/": { "get": { "operationId": "v1_attachments_comments_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CommentAttachment" } } } }, "description": "" } } }, "post": { "operationId": "v1_attachments_comments_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } } }, "description": "" } } } }, "/v1/attachments/comments/{id}/": { "get": { "operationId": "v1_attachments_comments_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } } }, "description": "" } } }, "put": { "operationId": "v1_attachments_comments_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } } }, "description": "" } } }, "patch": { "operationId": "v1_attachments_comments_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedCommentAttachment" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedCommentAttachment" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedCommentAttachment" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentAttachment" } } }, "description": "" } } }, "delete": { "operationId": "v1_attachments_comments_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/attachments/files/": { "get": { "operationId": "v1_attachments_files_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileAttachment" } } } }, "description": "" } } }, "post": { "operationId": "v1_attachments_files_create", "tags": [ "v1" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FileAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileAttachment" } } }, "description": "" } } } }, "/v1/attachments/files/{id}/": { "get": { "operationId": "v1_attachments_files_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileAttachment" } } }, "description": "" } } }, "put": { "operationId": "v1_attachments_files_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FileAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileAttachment" } } }, "description": "" } } }, "patch": { "operationId": "v1_attachments_files_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedFileAttachment" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileAttachment" } } }, "description": "" } } }, "delete": { "operationId": "v1_attachments_files_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/attachments/files/bulk_create/": { "get": { "operationId": "v1_attachments_files_bulk_create_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedFileAttachmentBulkCreateList" } } }, "description": "" } } }, "post": { "operationId": "v1_attachments_files_bulk_create_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileAttachmentBulkCreate" } } }, "description": "" } } } }, "/v1/attachments/images/": { "get": { "operationId": "v1_attachments_images_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ImageAttachment" } } } }, "description": "" } } }, "post": { "operationId": "v1_attachments_images_create", "tags": [ "v1" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ImageAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImageAttachment" } } }, "description": "" } } } }, "/v1/attachments/images/{id}/": { "get": { "operationId": "v1_attachments_images_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImageAttachment" } } }, "description": "" } } }, "put": { "operationId": "v1_attachments_images_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ImageAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImageAttachment" } } }, "description": "" } } }, "patch": { "operationId": "v1_attachments_images_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedImageAttachment" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImageAttachment" } } }, "description": "" } } }, "delete": { "operationId": "v1_attachments_images_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/attachments/images/bulk_create/": { "get": { "operationId": "v1_attachments_images_bulk_create_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedImageAttachmentBulkCreateList" } } }, "description": "" } } }, "post": { "operationId": "v1_attachments_images_bulk_create_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImageAttachmentBulkCreate" } } }, "description": "" } } } }, "/v1/attachments/links/": { "get": { "operationId": "v1_attachments_links_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LinkAttachment" } } } }, "description": "" } } }, "post": { "operationId": "v1_attachments_links_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } } }, "description": "" } } } }, "/v1/attachments/links/{id}/": { "put": { "operationId": "v1_attachments_links_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } } }, "description": "" } } }, "patch": { "operationId": "v1_attachments_links_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedLinkAttachment" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedLinkAttachment" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedLinkAttachment" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkAttachment" } } }, "description": "" } } }, "delete": { "operationId": "v1_attachments_links_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/attachments/multipart/complete/": { "post": { "operationId": "v1_attachments_multipart_complete_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/attachments/multipart/init/": { "post": { "operationId": "v1_attachments_multipart_init_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/attachments/multipart/part/": { "post": { "operationId": "v1_attachments_multipart_part_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/auth/cross_login/": { "post": { "operationId": "v1_auth_cross_login_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CrossTokenLogin" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CrossTokenLogin" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CrossTokenLogin" } } }, "required": true }, "security": [ {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CrossTokenLogin" } } }, "description": "" } } } }, "/v1/auth/forgot-password/": { "post": { "operationId": "v1_auth_forgot_password_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPassword" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ForgotPassword" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ForgotPassword" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPassword" } } }, "description": "" } } } }, "/v1/auth/google/auth-url/": { "get": { "operationId": "v1_auth_google_auth_url_retrieve", "description": "Generate Google OAuth authorization URL", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/auth/google/callback/": { "post": { "operationId": "v1_auth_google_callback_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/auth/login/": { "post": { "operationId": "v1_auth_login_create", "description": "Takes a set of user credentials and returns an access and refresh JSON web\ntoken pair to prove the authentication of those credentials.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "description": "" } } } }, "/v1/auth/logout/": { "post": { "operationId": "v1_auth_logout_create", "description": "Takes a token and blacklists it. Must be used with the\n`rest_framework_simplejwt.token_blacklist` app installed.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "description": "" } } } }, "/v1/auth/profile/": { "get": { "operationId": "v1_auth_profile_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserDetail" } } }, "description": "" } } }, "put": { "operationId": "v1_auth_profile_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileLimited" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ProfileLimited" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ProfileLimited" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileLimited" } } }, "description": "" } } }, "patch": { "operationId": "v1_auth_profile_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedProfileLimited" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedProfileLimited" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedProfileLimited" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileLimited" } } }, "description": "" } } } }, "/v1/auth/refresh/": { "post": { "operationId": "v1_auth_refresh_create", "description": "Takes a refresh type JSON web token and returns an access type JSON web\ntoken if the refresh token is valid.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "description": "" } } } }, "/v1/auth/reset-password/{token_id}/": { "post": { "operationId": "v1_auth_reset_password_create", "parameters": [ { "in": "path", "name": "token_id", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPassword" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ResetPassword" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ResetPassword" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPassword" } } }, "description": "" } } } }, "/v1/auth/reset/confirm/": { "post": { "operationId": "v1_auth_reset_confirm_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPConfirm" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPConfirm" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPConfirm" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPConfirm" } } }, "description": "" } } } }, "/v1/auth/reset/init/": { "post": { "operationId": "v1_auth_reset_init_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPInit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPInit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPInit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPInit" } } }, "description": "" } } } }, "/v1/auth/reset/verify/": { "post": { "operationId": "v1_auth_reset_verify_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPVerify" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPVerify" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPVerify" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordResetOTPVerify" } } }, "description": "" } } } }, "/v1/billing/cards/": { "get": { "operationId": "v1_billing_cards_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TenantCard" } } } }, "description": "" } } }, "post": { "operationId": "v1_billing_cards_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantCardInit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantCardInit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantCardInit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantCardInit" } } }, "description": "" } } } }, "/v1/billing/cards/{id}/": { "put": { "operationId": "v1_billing_cards_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantCard" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantCard" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantCard" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantCard" } } }, "description": "" } } }, "patch": { "operationId": "v1_billing_cards_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTenantCard" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTenantCard" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTenantCard" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantCard" } } }, "description": "" } } }, "delete": { "operationId": "v1_billing_cards_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/billing/cards/create/": { "post": { "operationId": "v1_billing_cards_create_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/billing/invoices/": { "get": { "operationId": "v1_billing_invoices_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedTenantInvoiceList" } } }, "description": "" } } }, "post": { "operationId": "v1_billing_invoices_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } } }, "description": "" } } } }, "/v1/billing/invoices/{id}/": { "get": { "operationId": "v1_billing_invoices_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoice" } } }, "description": "" } } }, "put": { "operationId": "v1_billing_invoices_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } } }, "description": "" } } }, "patch": { "operationId": "v1_billing_invoices_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTenantInvoiceDetail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTenantInvoiceDetail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTenantInvoiceDetail" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceDetail" } } }, "description": "" } } }, "delete": { "operationId": "v1_billing_invoices_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/billing/invoices/{id}/manual/": { "post": { "operationId": "v1_billing_invoices_manual_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceManual" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantInvoiceManual" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantInvoiceManual" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceManual" } } }, "description": "" } } } }, "/v1/billing/invoices/calculate/": { "post": { "operationId": "v1_billing_invoices_calculate_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceCalculation" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantInvoiceCalculation" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantInvoiceCalculation" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantInvoiceCalculation" } } }, "description": "" } } } }, "/v1/billing/invoices/check/": { "post": { "operationId": "v1_billing_invoices_check_create", "tags": [ "v1" ], "responses": { "200": { "description": "No response body" } } } }, "/v1/billing/invoices/result/": { "post": { "operationId": "v1_billing_invoices_result_create", "tags": [ "v1" ], "responses": { "200": { "description": "No response body" } } } }, "/v1/blacklist/": { "get": { "operationId": "v1_blacklist_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedBlacklistListList" } } }, "description": "" } } }, "post": { "operationId": "v1_blacklist_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } } }, "description": "" } } } }, "/v1/blacklist/{blacklist_id}/": { "get": { "operationId": "v1_blacklist_retrieve", "parameters": [ { "in": "path", "name": "blacklist_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistDetail" } } }, "description": "" } } }, "put": { "operationId": "v1_blacklist_update", "parameters": [ { "in": "path", "name": "blacklist_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } } }, "description": "" } } }, "patch": { "operationId": "v1_blacklist_partial_update", "parameters": [ { "in": "path", "name": "blacklist_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedBlacklistCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedBlacklistCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedBlacklistCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistCreate" } } }, "description": "" } } }, "delete": { "operationId": "v1_blacklist_destroy", "parameters": [ { "in": "path", "name": "blacklist_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/blacklist/{blacklist_id}/disable/": { "get": { "operationId": "v1_blacklist_disable_retrieve", "parameters": [ { "in": "path", "name": "blacklist_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistDisable" } } }, "description": "" } } }, "post": { "operationId": "v1_blacklist_disable_create", "parameters": [ { "in": "path", "name": "blacklist_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistDisable" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BlacklistDisable" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BlacklistDisable" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistDisable" } } }, "description": "" } } } }, "/v1/blacklist/check/": { "get": { "operationId": "v1_blacklist_check_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedBlacklistIdentityList" } } }, "description": "" } } } }, "/v1/blacklist/identities/merge/": { "post": { "operationId": "v1_blacklist_identities_merge_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistMerge" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BlacklistMerge" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BlacklistMerge" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlacklistMerge" } } }, "description": "" } } } }, "/v1/cars/": { "get": { "operationId": "v1_cars_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OKAutoTenantCar" } } } }, "description": "" } } }, "post": { "operationId": "v1_cars_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoTenantCar" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OKAutoTenantCar" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OKAutoTenantCar" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoTenantCar" } } }, "description": "" } } } }, "/v1/cars/{id}/": { "get": { "operationId": "v1_cars_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoTenantCar" } } }, "description": "" } } }, "delete": { "operationId": "v1_cars_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/cars/penalties/": { "get": { "operationId": "v1_cars_penalties_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedOKAutoPenaltyList" } } }, "description": "" } } } }, "/v1/cars/penalties/{id}/": { "get": { "operationId": "v1_cars_penalties_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoPenalty" } } }, "description": "" } } }, "put": { "operationId": "v1_cars_penalties_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OKAutoPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OKAutoPenalty" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoPenalty" } } }, "description": "" } } }, "patch": { "operationId": "v1_cars_penalties_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOKAutoPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOKAutoPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOKAutoPenalty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoPenalty" } } }, "description": "" } } } }, "/v1/cars/penalties/count/": { "get": { "operationId": "v1_cars_penalties_count_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/cars/penalties/general/": { "get": { "operationId": "v1_cars_penalties_general_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoPenaltyGeneral" } } }, "description": "" } } } }, "/v1/cars/penalties/refresh/": { "post": { "operationId": "v1_cars_penalties_refresh_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/cars/states/": { "get": { "operationId": "v1_cars_states_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OKAutoState" } } } }, "description": "" } } }, "post": { "operationId": "v1_cars_states_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoState" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OKAutoState" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OKAutoState" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoState" } } }, "description": "" } } } }, "/v1/cars/states/{id}/": { "put": { "operationId": "v1_cars_states_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoState" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OKAutoState" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OKAutoState" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoState" } } }, "description": "" } } }, "patch": { "operationId": "v1_cars_states_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOKAutoState" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOKAutoState" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOKAutoState" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OKAutoState" } } }, "description": "" } } }, "delete": { "operationId": "v1_cars_states_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/cars/sync/webhook/": { "post": { "operationId": "v1_cars_sync_webhook_create", "tags": [ "v1" ], "security": [ {} ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/agents/": { "get": { "operationId": "v1_crm_agents_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Referral" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_agents_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Referral" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Referral" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Referral" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Referral" } } }, "description": "" } } } }, "/v1/crm/attraction_methods/": { "get": { "operationId": "v1_crm_attraction_methods_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AttractionMethod" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_attraction_methods_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } } }, "description": "" } } } }, "/v1/crm/attraction_methods/{id}/": { "get": { "operationId": "v1_crm_attraction_methods_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_attraction_methods_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_attraction_methods_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedAttractionMethod" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedAttractionMethod" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedAttractionMethod" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttractionMethod" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_attraction_methods_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/categories/": { "get": { "operationId": "v1_crm_categories_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Category" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_categories_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Category" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Category" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Category" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Category" } } }, "description": "" } } } }, "/v1/crm/categories/{id}/": { "get": { "operationId": "v1_crm_categories_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Category" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_categories_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Category" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Category" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Category" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Category" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_categories_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedCategory" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedCategory" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedCategory" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Category" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_categories_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/clients/": { "get": { "operationId": "v1_crm_clients_list", "parameters": [ { "in": "query", "name": "attraction", "schema": { "type": "integer" } }, { "in": "query", "name": "attraction__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "deleted", "schema": { "type": "boolean" } }, { "in": "query", "name": "individual_passport__iin", "schema": { "type": "string" } }, { "in": "query", "name": "individual_passport__iin__icontains", "schema": { "type": "string" } }, { "in": "query", "name": "legal_passport__bin", "schema": { "type": "string" } }, { "in": "query", "name": "legal_passport__bin__icontains", "schema": { "type": "string" } }, { "in": "query", "name": "legal_type", "schema": { "type": "integer", "nullable": true, "enum": [ 0, 1, 2, 3 ] }, "description": "* `0` - ИП\n* `1` - ТОО\n* `2` - АО\n* `3` - ПК" }, { "in": "query", "name": "name", "schema": { "type": "string" } }, { "in": "query", "name": "name__icontains", "schema": { "type": "string" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "phone", "schema": { "type": "string" } }, { "in": "query", "name": "phone__icontains", "schema": { "type": "string" } }, { "in": "query", "name": "phone__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "signed", "schema": { "type": "boolean" } }, { "in": "query", "name": "ticks", "schema": { "type": "array", "items": { "type": "integer" } }, "explode": true, "style": "form" }, { "in": "query", "name": "ticks__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - Физ. лицо\n* `1` - Юр. лицо" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedClientList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_clients_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientEdit" } } }, "description": "" } } } }, "/v1/crm/clients/{client_id}/bonuses/": { "get": { "operationId": "v1_crm_clients_bonuses_list", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "request", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - transaction_spend\n* `1` - transaction_earn" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedBonusTransactionList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_clients_bonuses_create", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BonusTransaction" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BonusTransaction" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BonusTransaction" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BonusTransaction" } } }, "description": "" } } } }, "/v1/crm/clients/{client_id}/bonuses/{bonus_id}/": { "delete": { "operationId": "v1_crm_clients_bonuses_destroy", "parameters": [ { "in": "path", "name": "bonus_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/clients/{client_id}/passport/individual/": { "get": { "operationId": "v1_crm_clients_passport_individual_retrieve", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_clients_passport_individual_create", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_clients_passport_individual_update", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_clients_passport_individual_partial_update", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedClientPassportIndividual" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedClientPassportIndividual" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedClientPassportIndividual" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportIndividual" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_clients_passport_individual_destroy", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/clients/{client_id}/passport/legal/": { "get": { "operationId": "v1_crm_clients_passport_legal_retrieve", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_clients_passport_legal_create", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_clients_passport_legal_update", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_clients_passport_legal_partial_update", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedClientPassportLegal" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedClientPassportLegal" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedClientPassportLegal" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPassportLegal" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_clients_passport_legal_destroy", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/clients/{client_id}/popular_product/": { "get": { "operationId": "v1_crm_clients_popular_product_retrieve", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseInventoryGroup" } } }, "description": "" } } } }, "/v1/crm/clients/{id}/": { "get": { "operationId": "v1_crm_clients_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Client" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_clients_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientEdit" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_clients_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedClientEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedClientEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedClientEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientEdit" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_clients_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/clients/general/": { "get": { "operationId": "v1_crm_clients_general_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientGeneral" } } }, "description": "" } } } }, "/v1/crm/clients/import/individual/": { "post": { "operationId": "v1_crm_clients_import_individual_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IndividualClientImport" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IndividualClientImport" } } }, "description": "" } } } }, "/v1/crm/clients/import/legal/": { "post": { "operationId": "v1_crm_clients_import_legal_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LegalClientImport" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LegalClientImport" } } }, "description": "" } } } }, "/v1/crm/clients/ticks/": { "get": { "operationId": "v1_crm_clients_ticks_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedClientTickList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_clients_ticks_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientTick" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientTick" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientTick" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientTick" } } }, "description": "" } } } }, "/v1/crm/clients/ticks/{id}/": { "get": { "operationId": "v1_crm_clients_ticks_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientTick" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_clients_ticks_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientTick" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ClientTick" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ClientTick" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientTick" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_clients_ticks_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedClientTick" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedClientTick" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedClientTick" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientTick" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_clients_ticks_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/constants/": { "get": { "operationId": "v1_crm_constants_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManagerContants" } } }, "description": "" } } } }, "/v1/crm/converter/csv/": { "post": { "operationId": "v1_crm_converter_csv_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/converter/id-card/": { "post": { "operationId": "v1_crm_converter_id_card_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/converter/xlsx/": { "post": { "operationId": "v1_crm_converter_xlsx_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/counterparties/": { "get": { "operationId": "v1_crm_counterparties_list", "parameters": [ { "in": "query", "name": "side", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - self\n* `1` - foreign" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Counterparty" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_counterparties_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Counterparty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Counterparty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Counterparty" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Counterparty" } } }, "description": "" } } } }, "/v1/crm/counterparties/{id}/": { "get": { "operationId": "v1_crm_counterparties_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Counterparty" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_counterparties_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Counterparty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Counterparty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Counterparty" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Counterparty" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_counterparties_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedCounterparty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedCounterparty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedCounterparty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Counterparty" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_counterparties_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/dashboard/": { "get": { "operationId": "v1_crm_dashboard_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/disable/": { "get": { "operationId": "v1_crm_disable_list", "parameters": [ { "in": "query", "name": "category", "schema": { "type": "number" } }, { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "group", "schema": { "type": "number" } }, { "in": "query", "name": "group__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "method", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "service", "schema": { "type": "integer" } }, { "in": "query", "name": "service__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "service__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "set", "schema": { "type": "integer" } }, { "in": "query", "name": "set__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "set__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedDisableListList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_disable_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DisableBulk" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DisableBulk" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DisableBulk" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DisableBulk" } } }, "description": "" } } } }, "/v1/crm/discounts/": { "get": { "operationId": "v1_crm_discounts_list", "parameters": [ { "in": "query", "name": "deleted", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Скидка\n* `1` - Промокод\n* `2` - Сумма" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Discount" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_discounts_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Discount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Discount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Discount" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Discount" } } }, "description": "" } } } }, "/v1/crm/discounts/{id}/": { "get": { "operationId": "v1_crm_discounts_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Discount" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_discounts_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscountUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DiscountUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DiscountUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscountUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_discounts_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedDiscountUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedDiscountUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedDiscountUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscountUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_discounts_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/filters/": { "get": { "operationId": "v1_crm_filters_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CachedFilter" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_filters_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CachedFilter" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CachedFilter" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CachedFilter" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CachedFilter" } } }, "description": "" } } } }, "/v1/crm/filters/{key}/": { "get": { "operationId": "v1_crm_filters_retrieve_2", "parameters": [ { "in": "path", "name": "key", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CachedFilter" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_filters_create_2", "parameters": [ { "in": "path", "name": "key", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CachedFilter" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CachedFilter" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CachedFilter" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CachedFilter" } } }, "description": "" } } } }, "/v1/crm/groups/": { "get": { "operationId": "v1_crm_groups_list", "parameters": [ { "in": "query", "name": "available", "schema": { "type": "boolean" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "disable__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "discount", "schema": { "type": "integer" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "free", "schema": { "type": "boolean" } }, { "in": "query", "name": "has_sublease", "schema": { "type": "boolean" } }, { "in": "query", "name": "id__exclude", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "saleable", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "shareable", "schema": { "type": "boolean" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - Аренда\n* `1` - Продажа" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryGroupList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_groups_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } } }, "description": "" } } } }, "/v1/crm/groups/{group_id}/tarifs/": { "get": { "operationId": "v1_crm_groups_tarifs_list", "parameters": [ { "in": "path", "name": "group_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryGroupTarif" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_groups_tarifs_create", "parameters": [ { "in": "path", "name": "group_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } } }, "description": "" } } } }, "/v1/crm/groups/{group_id}/tarifs/{tarif_id}/": { "get": { "operationId": "v1_crm_groups_tarifs_retrieve", "parameters": [ { "in": "path", "name": "group_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "tarif_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_groups_tarifs_update", "parameters": [ { "in": "path", "name": "group_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "tarif_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_groups_tarifs_partial_update", "parameters": [ { "in": "path", "name": "group_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "tarif_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventoryGroupTarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventoryGroupTarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventoryGroupTarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupTarif" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_groups_tarifs_destroy", "parameters": [ { "in": "path", "name": "group_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "tarif_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/groups/{id}/": { "get": { "operationId": "v1_crm_groups_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupDetail" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_groups_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_groups_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventoryGroupUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventoryGroupUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventoryGroupUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_groups_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/groups/import/": { "post": { "operationId": "v1_crm_groups_import_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupImport" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryGroupImport" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryGroupImport" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupImport" } } }, "description": "" } } } }, "/v1/crm/groups/states/": { "get": { "operationId": "v1_crm_groups_states_list", "parameters": [ { "in": "query", "name": "group_ids", "schema": { "type": "array", "items": { "type": "number" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryGroupState" } } } }, "description": "" } } } }, "/v1/crm/groups/statuses/": { "get": { "operationId": "v1_crm_groups_statuses_list", "parameters": [ { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryGroupStatus" } } } }, "description": "" } } } }, "/v1/crm/integrations/": { "get": { "operationId": "v1_crm_integrations_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "string", "title": "Тип", "enum": [ "integration", "module" ] }, "description": "Тип интеграции\n\n* `integration` - integration\n* `module` - module" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Integration" } } } }, "description": "" } } } }, "/v1/crm/integrations/{slug}/": { "get": { "operationId": "v1_crm_integrations_retrieve", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Integration" } } }, "description": "" } } } }, "/v1/crm/integrations/{slug}/connect/": { "post": { "operationId": "v1_crm_integrations_connect_create", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationConnection" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/IntegrationConnection" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/IntegrationConnection" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationConnection" } } }, "description": "" } } } }, "/v1/crm/integrations/{slug}/disconnect/": { "post": { "operationId": "v1_crm_integrations_disconnect_create", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationDisconnection" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/IntegrationDisconnection" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/IntegrationDisconnection" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationDisconnection" } } }, "description": "" } } } }, "/v1/crm/integrations/binotel/calls/": { "get": { "operationId": "v1_crm_integrations_binotel_calls_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/binotel/outward_call/": { "post": { "operationId": "v1_crm_integrations_binotel_outward_call_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BinotelCall" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BinotelCall" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BinotelCall" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BinotelCall" } } }, "description": "" } } } }, "/v1/crm/integrations/binotel/recording/": { "post": { "operationId": "v1_crm_integrations_binotel_recording_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BinotelRecording" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BinotelRecording" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BinotelRecording" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BinotelRecording" } } }, "description": "" } } } }, "/v1/crm/integrations/geolocation/devices/": { "get": { "operationId": "v1_crm_integrations_geolocation_devices_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Device" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_integrations_geolocation_devices_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeviceUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DeviceUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DeviceUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeviceUpdate" } } }, "description": "" } } } }, "/v1/crm/integrations/geolocation/devices/{device_id}/positions/": { "get": { "operationId": "v1_crm_integrations_geolocation_devices_positions_list", "parameters": [ { "in": "path", "name": "device_id", "schema": { "type": "integer" }, "required": true }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Position" } } } }, "description": "" } } } }, "/v1/crm/integrations/geolocation/devices/{id}/": { "get": { "operationId": "v1_crm_integrations_geolocation_devices_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeviceUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_integrations_geolocation_devices_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/integrations/geolocation/trips/": { "get": { "operationId": "v1_crm_integrations_geolocation_trips_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/geolocation/users/": { "get": { "operationId": "v1_crm_integrations_geolocation_users_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TraccarUser" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_integrations_geolocation_users_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TraccarUserCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TraccarUserCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TraccarUserCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TraccarUserCreate" } } }, "description": "" } } } }, "/v1/crm/integrations/ringostat/accounts/online/": { "get": { "operationId": "v1_crm_integrations_ringostat_accounts_online_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/ringostat/calls/": { "get": { "operationId": "v1_crm_integrations_ringostat_calls_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "phone", "schema": { "type": "string" }, "description": "Phone number to filter calls by" }, { "in": "query", "name": "status", "schema": { "type": "string" }, "description": "Status to filter calls by" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedRingostatResultList" } } }, "description": "" } } } }, "/v1/crm/integrations/ringostat/clients/": { "post": { "operationId": "v1_crm_integrations_ringostat_clients_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RingostatCreateClient" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/RingostatCreateClient" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/RingostatCreateClient" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RingostatCreateClient" } } }, "description": "" } } } }, "/v1/crm/integrations/ringostat/connect/": { "post": { "operationId": "v1_crm_integrations_ringostat_connect_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RingostatConnect" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/RingostatConnect" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/RingostatConnect" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RingostatConnect" } } }, "description": "" } } } }, "/v1/crm/integrations/ringostat/outward_call/": { "post": { "operationId": "v1_crm_integrations_ringostat_outward_call_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RingostatCall" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/RingostatCall" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/RingostatCall" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RingostatCall" } } }, "description": "" } } } }, "/v1/crm/integrations/ringostat/webhook/": { "post": { "operationId": "v1_crm_integrations_ringostat_webhook_create", "tags": [ "v1" ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/integrations/sipuni/calls/": { "get": { "operationId": "v1_crm_integrations_sipuni_calls_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedSipuniCallRecordList" } } }, "description": "" } } } }, "/v1/crm/integrations/sipuni/operators/": { "get": { "operationId": "v1_crm_integrations_sipuni_operators_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedSipuniOperatorList" } } }, "description": "" } } } }, "/v1/crm/integrations/sipuni/recording/{call_id}/": { "get": { "operationId": "v1_crm_integrations_sipuni_recording_retrieve", "parameters": [ { "in": "path", "name": "call_id", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/sipuni/webhook/": { "post": { "operationId": "v1_crm_integrations_sipuni_webhook_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/integrations/wazzup/connect/": { "post": { "operationId": "v1_crm_integrations_wazzup_connect_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/wazzup/iframe/": { "post": { "operationId": "v1_crm_integrations_wazzup_iframe_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/wazzup/message/": { "post": { "operationId": "v1_crm_integrations_wazzup_message_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupMessage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WazzupMessage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WazzupMessage" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupMessage" } } }, "description": "" } } } }, "/v1/crm/integrations/wazzup/settings/": { "get": { "operationId": "v1_crm_integrations_wazzup_settings_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupSettings" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_integrations_wazzup_settings_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupSettings" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WazzupSettings" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WazzupSettings" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupSettings" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_integrations_wazzup_settings_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWazzupSettings" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWazzupSettings" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWazzupSettings" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupSettings" } } }, "description": "" } } } }, "/v1/crm/integrations/wazzup/sync/": { "post": { "operationId": "v1_crm_integrations_wazzup_sync_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/wazzup/templates/": { "get": { "operationId": "v1_crm_integrations_wazzup_templates_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/integrations/wazzup/triggers/": { "get": { "operationId": "v1_crm_integrations_wazzup_triggers_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WazzupTrigger" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_integrations_wazzup_triggers_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } } }, "description": "" } } } }, "/v1/crm/integrations/wazzup/triggers/{id}/": { "put": { "operationId": "v1_crm_integrations_wazzup_triggers_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_integrations_wazzup_triggers_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWazzupTrigger" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWazzupTrigger" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWazzupTrigger" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupTrigger" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_integrations_wazzup_triggers_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/integrations/wazzup/webhook/": { "post": { "operationId": "v1_crm_integrations_wazzup_webhook_create", "description": "Concrete view for creating a model instance.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupWebhook" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WazzupWebhook" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WazzupWebhook" } } } }, "security": [ {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WazzupWebhook" } } }, "description": "" } } } }, "/v1/crm/integrations/wialon/accounts/": { "get": { "operationId": "v1_crm_integrations_wialon_accounts_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WialonAccount" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_integrations_wialon_accounts_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WialonAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WialonAccount" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonAccount" } } }, "description": "" } } } }, "/v1/crm/integrations/wialon/accounts/{id}/": { "get": { "operationId": "v1_crm_integrations_wialon_accounts_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonAccount" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_integrations_wialon_accounts_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WialonAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WialonAccount" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonAccount" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_integrations_wialon_accounts_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWialonAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWialonAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWialonAccount" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonAccount" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_integrations_wialon_accounts_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/integrations/wialon/units/": { "get": { "operationId": "v1_crm_integrations_wialon_units_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WialonUnit" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_integrations_wialon_units_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonUnit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WialonUnit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WialonUnit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonUnit" } } }, "description": "" } } } }, "/v1/crm/integrations/wialon/units/{id}/": { "put": { "operationId": "v1_crm_integrations_wialon_units_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonUnit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WialonUnit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WialonUnit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonUnit" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_integrations_wialon_units_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWialonUnit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWialonUnit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWialonUnit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WialonUnit" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_integrations_wialon_units_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/": { "get": { "operationId": "v1_crm_inventories_list", "parameters": [ { "in": "query", "name": "car__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "disable__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disable__method", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "exclude_ids", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "filter_key", "schema": { "type": "string" } }, { "in": "query", "name": "free", "schema": { "type": "boolean" } }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "has_sublease", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request", "schema": { "type": "number" } }, { "in": "query", "name": "saleable", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "status", "schema": { "type": "number" } }, { "in": "query", "name": "sublease_user", "schema": { "type": "integer" } }, { "in": "query", "name": "sublease_user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sublease_user__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "type", "schema": { "type": "number" } }, { "in": "query", "name": "unique_id", "schema": { "type": "string" } }, { "in": "query", "name": "unique_id__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventories_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } } }, "description": "" } } } }, "/v1/crm/inventories/{id}/": { "get": { "operationId": "v1_crm_inventories_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Inventory" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_inventories_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_inventories_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventoryEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventoryEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventoryEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryEdit" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_inventories_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/{inventory_id}/general/": { "get": { "operationId": "v1_crm_inventories_general_retrieve_2", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryDetailGeneral" } } }, "description": "" } } } }, "/v1/crm/inventories/{inventory_id}/insurance/": { "get": { "operationId": "v1_crm_inventories_insurance_retrieve", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryInsurance" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_inventories_insurance_update", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryInsurance" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryInsurance" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryInsurance" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryInsurance" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_inventories_insurance_partial_update", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventoryInsurance" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventoryInsurance" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventoryInsurance" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryInsurance" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_inventories_insurance_destroy", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/{inventory_id}/tarifs/": { "get": { "operationId": "v1_crm_inventories_tarifs_list", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryTarif" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventories_tarifs_create", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } } }, "description": "" } } } }, "/v1/crm/inventories/{inventory_id}/tarifs/{id}/": { "get": { "operationId": "v1_crm_inventories_tarifs_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_inventories_tarifs_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_inventories_tarifs_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventoryTarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventoryTarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventoryTarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarif" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_inventories_tarifs_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/bulk_update/": { "post": { "operationId": "v1_crm_inventories_bulk_update_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryBulkUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryBulkUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryBulkUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryBulkUpdate" } } }, "description": "" } } } }, "/v1/crm/inventories/distances/": { "get": { "operationId": "v1_crm_inventories_distances_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__category", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__group", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__state", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__sublease_user", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__sublease_user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryDistanceList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventories_distances_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryDistance" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryDistance" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryDistance" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryDistance" } } }, "description": "" } } } }, "/v1/crm/inventories/general/": { "get": { "operationId": "v1_crm_inventories_general_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGeneral" } } }, "description": "" } } } }, "/v1/crm/inventories/import/": { "post": { "operationId": "v1_crm_inventories_import_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryImport" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryImport" } } }, "description": "" } } } }, "/v1/crm/inventories/schedules/": { "get": { "operationId": "v1_crm_inventories_schedules_list", "parameters": [ { "in": "query", "name": "car__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "disable__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disable__method", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "exclude_ids", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "filter_key", "schema": { "type": "string" } }, { "in": "query", "name": "free", "schema": { "type": "boolean" } }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "has_sublease", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request", "schema": { "type": "number" } }, { "in": "query", "name": "saleable", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "status", "schema": { "type": "number" } }, { "in": "query", "name": "sublease_user", "schema": { "type": "integer" } }, { "in": "query", "name": "sublease_user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sublease_user__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "type", "schema": { "type": "number" } }, { "in": "query", "name": "unique_id", "schema": { "type": "string" } }, { "in": "query", "name": "unique_id__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryScheduleList" } } }, "description": "" } } } }, "/v1/crm/inventories/schedules/boundaries/": { "get": { "operationId": "v1_crm_inventories_schedules_boundaries_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryScheduleMinMax" } } }, "description": "" } } } }, "/v1/crm/inventories/sell/": { "post": { "operationId": "v1_crm_inventories_sell_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySell" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySell" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySell" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySell" } } }, "description": "" } } } }, "/v1/crm/inventories/sets/": { "get": { "operationId": "v1_crm_inventories_sets_list", "parameters": [ { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "shareable", "schema": { "type": "boolean" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventorySetList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventories_sets_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySet" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySet" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySet" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySet" } } }, "description": "" } } } }, "/v1/crm/inventories/sets/{id}/": { "get": { "operationId": "v1_crm_inventories_sets_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySet" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_inventories_sets_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySet" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySet" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySet" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySet" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_inventories_sets_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventorySet" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventorySet" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventorySet" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySet" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_inventories_sets_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/sets/{set_id}/items/": { "get": { "operationId": "v1_crm_inventories_sets_items_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetItem" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventories_sets_items_create", "parameters": [ { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } } }, "description": "" } } } }, "/v1/crm/inventories/sets/{set_id}/items/{id}/": { "put": { "operationId": "v1_crm_inventories_sets_items_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_inventories_sets_items_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventorySetItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventorySetItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventorySetItem" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetItem" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_inventories_sets_items_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/sets/{set_id}/prices/": { "get": { "operationId": "v1_crm_inventories_sets_prices_list", "parameters": [ { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventories_sets_prices_create", "parameters": [ { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } } }, "description": "" } } } }, "/v1/crm/inventories/sets/{set_id}/prices/{id}/": { "put": { "operationId": "v1_crm_inventories_sets_prices_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_inventories_sets_prices_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventorySetPriceSerializerV2" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventorySetPriceSerializerV2" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventorySetPriceSerializerV2" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetPriceSerializerV2" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_inventories_sets_prices_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/sets/{set_id}/tarifs/": { "get": { "operationId": "v1_crm_inventories_sets_tarifs_list", "parameters": [ { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetPriceTarif" } } } }, "description": "" } } } }, "/v1/crm/inventories/sets/{set_id}/tarifs/bulk_create/": { "post": { "operationId": "v1_crm_inventories_sets_tarifs_bulk_create_create", "parameters": [ { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkCreate" } } }, "description": "" } } } }, "/v1/crm/inventories/sets/{set_id}/tarifs/bulk_update/": { "post": { "operationId": "v1_crm_inventories_sets_tarifs_bulk_update_create", "parameters": [ { "in": "path", "name": "set_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetTarifBulkUpdate" } } }, "description": "" } } } }, "/v1/crm/inventories/sets/general/": { "get": { "operationId": "v1_crm_inventories_sets_general_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorySetGeneral" } } }, "description": "" } } } }, "/v1/crm/inventories/states/": { "get": { "operationId": "v1_crm_inventories_states_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryState" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventories_states_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryState" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryState" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryState" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryState" } } }, "description": "" } } } }, "/v1/crm/inventories/states/{id}/": { "get": { "operationId": "v1_crm_inventories_states_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryState" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_inventories_states_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryState" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryState" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryState" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryState" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_inventories_states_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventoryState" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventoryState" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventoryState" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryState" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_inventories_states_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/inventories/transfer/": { "post": { "operationId": "v1_crm_inventories_transfer_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTransfer" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryTransfer" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryTransfer" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTransfer" } } }, "description": "" } } } }, "/v1/crm/inventories/unavailables/": { "get": { "operationId": "v1_crm_inventories_unavailables_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string", "format": "date-time" }, "required": true }, { "in": "query", "name": "request", "schema": { "type": "integer" } }, { "in": "query", "name": "start_at", "schema": { "type": "string", "format": "date-time" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Unavailable" } } } }, "description": "" } } } }, "/v1/crm/inventorizations/": { "get": { "operationId": "v1_crm_inventorizations_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__group", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "prev", "schema": { "type": "number" } }, { "in": "query", "name": "request", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventorizationDetailList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventorizations_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorizationCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorizationCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorizationCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorizationCreate" } } }, "description": "" } } } }, "/v1/crm/inventorizations/bulk_create/": { "post": { "operationId": "v1_crm_inventorizations_bulk_create_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorizationBulkCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorizationBulkCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorizationBulkCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorizationBulkCreate" } } }, "description": "" } } } }, "/v1/crm/inventorizations/states/": { "get": { "operationId": "v1_crm_inventorizations_states_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryStateDetail" } } } }, "description": "" } } } }, "/v1/crm/inventorizations/tasklist/": { "get": { "operationId": "v1_crm_inventorizations_tasklist_list", "parameters": [ { "in": "query", "name": "car", "schema": { "type": "integer" } }, { "in": "query", "name": "car__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "car__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__category", "schema": { "type": "integer" } }, { "in": "query", "name": "group__category__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "group__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventorizationTasklistList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_inventorizations_tasklist_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorizationTasklist" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventorizationTasklist" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventorizationTasklist" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventorizationTasklist" } } }, "description": "" } } } }, "/v1/crm/logs/": { "get": { "operationId": "v1_crm_logs_list", "parameters": [ { "in": "query", "name": "action", "schema": { "type": "integer" } }, { "in": "query", "name": "action_in", "schema": { "type": "integer" } }, { "in": "query", "name": "actor", "schema": { "type": "integer" } }, { "in": "query", "name": "object_id", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "timestamp", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "timestamp_gte", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "timestamp_lte", "schema": { "type": "string", "format": "date-time" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedLogEntryList" } } }, "description": "" } } } }, "/v1/crm/logs/{id}/": { "get": { "operationId": "v1_crm_logs_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LogEntry" } } }, "description": "" } } } }, "/v1/crm/maintenances/": { "get": { "operationId": "v1_crm_maintenances_list", "parameters": [ { "in": "query", "name": "fact_maintenance_date__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "fact_maintenance_date__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "fact_maintenance_date__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__category", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__group", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "maintenance_date__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "maintenance_date__date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "period_type", "schema": { "type": "integer", "nullable": true, "enum": [ 0, 1 ] }, "description": "* `0` - interval\n* `1` - distance" }, { "in": "query", "name": "responsible", "schema": { "type": "integer" } }, { "in": "query", "name": "responsible__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "state__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - one time\n* `1` - periodic" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryMaintenanceList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_maintenances_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } } }, "description": "" } } } }, "/v1/crm/maintenances/{id}/": { "get": { "operationId": "v1_crm_maintenances_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryMaintenance" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_maintenances_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_maintenances_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedBaseInventoryMaintenance" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedBaseInventoryMaintenance" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedBaseInventoryMaintenance" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_maintenances_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/maintenances/{id}/finish/": { "post": { "operationId": "v1_crm_maintenances_finish_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryMaintenanceFinish" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryMaintenanceFinish" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryMaintenanceFinish" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryMaintenanceFinish" } } }, "description": "" } } } }, "/v1/crm/maintenances/inventories/": { "get": { "operationId": "v1_crm_maintenances_inventories_list", "parameters": [ { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryMaintenanceTableList" } } }, "description": "" } } } }, "/v1/crm/maintenances/tasklist/distance/": { "get": { "operationId": "v1_crm_maintenances_tasklist_distance_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryMaintenanceTasklistList" } } }, "description": "" } } } }, "/v1/crm/maintenances/tasklist/interval/": { "get": { "operationId": "v1_crm_maintenances_tasklist_interval_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryMaintenanceTasklistList" } } }, "description": "" } } } }, "/v1/crm/metrics/bonus/balance/": { "get": { "operationId": "v1_crm_metrics_bonus_balance_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsClientBonusBalanceList" } } }, "description": "" } } } }, "/v1/crm/metrics/bonus/general/": { "get": { "operationId": "v1_crm_metrics_bonus_general_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsBonusGeneral" } } }, "description": "" } } } }, "/v1/crm/metrics/bonus/history/": { "get": { "operationId": "v1_crm_metrics_bonus_history_list", "parameters": [ { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - transaction_spend\n* `1` - transaction_earn" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsClientBonusList" } } }, "description": "" } } } }, "/v1/crm/metrics/clients/": { "get": { "operationId": "v1_crm_metrics_clients_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsClientList" } } }, "description": "" } } } }, "/v1/crm/metrics/clients/general/": { "get": { "operationId": "v1_crm_metrics_clients_general_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsClientOverview" } } }, "description": "" } } } }, "/v1/crm/metrics/clients/graph/churn_rate/": { "get": { "operationId": "v1_crm_metrics_clients_graph_churn_rate_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsClientChurnRateGraph" } } } }, "description": "" } } } }, "/v1/crm/metrics/clients/graph/count/": { "get": { "operationId": "v1_crm_metrics_clients_graph_count_list", "parameters": [ { "in": "query", "name": "attraction", "schema": { "type": "integer" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "ticks", "schema": { "type": "array", "items": { "type": "integer" } }, "explode": true, "style": "form" }, { "in": "query", "name": "ticks__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - Физ. лицо\n* `1` - Юр. лицо" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsClientCountGraph" } } } }, "description": "" } } } }, "/v1/crm/metrics/deliveries/": { "get": { "operationId": "v1_crm_metrics_deliveries_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "pickup_date__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "pickup_date__date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3 ] }, "description": "* `0` - PENDING\n* `1` - IN_PROGRESS\n* `2` - DONE\n* `3` - CANCEL" }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - DELIVERY\n* `1` - PICK_UP" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsDeliveryListList" } } }, "description": "" } } } }, "/v1/crm/metrics/deposits/": { "get": { "operationId": "v1_crm_metrics_deposits_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "request__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "returned_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "returned_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - DEFAULT\n* `1` - RECEIVED\n* `2` - RETURNED" }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - STRING\n* `1` - AMOUNT" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsDepositList" } } }, "description": "" } } } }, "/v1/crm/metrics/depreciation/": { "get": { "operationId": "v1_crm_metrics_depreciation_list", "parameters": [ { "in": "query", "name": "car__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "disable__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disable__method", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "exclude_ids", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "filter_key", "schema": { "type": "string" } }, { "in": "query", "name": "free", "schema": { "type": "boolean" } }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "has_sublease", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request", "schema": { "type": "number" } }, { "in": "query", "name": "saleable", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "status", "schema": { "type": "number" } }, { "in": "query", "name": "sublease_user", "schema": { "type": "integer" } }, { "in": "query", "name": "sublease_user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sublease_user__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "type", "schema": { "type": "number" } }, { "in": "query", "name": "unique_id", "schema": { "type": "string" } }, { "in": "query", "name": "unique_id__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsInventoryDepreciationList" } } }, "description": "" } } } }, "/v1/crm/metrics/depreciation/{inventory_id}/": { "get": { "operationId": "v1_crm_metrics_depreciation_retrieve", "parameters": [ { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsInventoryDepreciation" } } }, "description": "" } } } }, "/v1/crm/metrics/depreciation/general/": { "get": { "operationId": "v1_crm_metrics_depreciation_general_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsInventoryDepreciationGeneral" } } }, "description": "" } } } }, "/v1/crm/metrics/discounts/": { "get": { "operationId": "v1_crm_metrics_discounts_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "discount", "schema": { "type": "integer" } }, { "in": "query", "name": "discount__discount_type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - Процент\n* `1` - Сумма" }, { "in": "query", "name": "discount__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "discount__type", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Скидка\n* `1` - Промокод\n* `2` - Сумма" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "request__client", "schema": { "type": "integer" } }, { "in": "query", "name": "request__client__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__payment_status", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Ожидается оплата\n* `1` - Оплата произведена\n* `2` - Частичная оплата" }, { "in": "query", "name": "request__payment_status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__rent_end__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__rent_end__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__rent_start__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__rent_start__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - DISCOUNT\n* `1` - MANUAL" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsDiscountList" } } }, "description": "" } } } }, "/v1/crm/metrics/discounts/history/": { "get": { "operationId": "v1_crm_metrics_discounts_history_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "discount", "schema": { "type": "integer" } }, { "in": "query", "name": "discount__discount_type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - Процент\n* `1` - Сумма" }, { "in": "query", "name": "discount__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "discount__type", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Скидка\n* `1` - Промокод\n* `2` - Сумма" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "request__client", "schema": { "type": "integer" } }, { "in": "query", "name": "request__client__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__payment_status", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Ожидается оплата\n* `1` - Оплата произведена\n* `2` - Частичная оплата" }, { "in": "query", "name": "request__payment_status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__rent_end__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__rent_end__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__rent_start__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__rent_start__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - DISCOUNT\n* `1` - MANUAL" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsOrderDiscountHistoryList" } } }, "description": "" } } } }, "/v1/crm/metrics/earning/general/": { "get": { "operationId": "v1_crm_metrics_earning_general_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryGroupEarningAggregate" } } }, "description": "" } } } }, "/v1/crm/metrics/earning/groups/": { "get": { "operationId": "v1_crm_metrics_earning_groups_list", "parameters": [ { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "category__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryGroupEarningList" } } }, "description": "" } } } }, "/v1/crm/metrics/earning/inventories/": { "get": { "operationId": "v1_crm_metrics_earning_inventories_list", "parameters": [ { "in": "query", "name": "car__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "category__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disable__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disable__method", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, { "in": "query", "name": "disable__method__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "group__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "rental_point__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "sublease_user", "schema": { "type": "integer" } }, { "in": "query", "name": "sublease_user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sublease_user__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryEarningList" } } }, "description": "" } } } }, "/v1/crm/metrics/earning/inventories/{inventory_id}/": { "get": { "operationId": "v1_crm_metrics_earning_inventories_list_2", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "inventory_id", "schema": { "type": "integer" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "request__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryEarningDetailList" } } }, "description": "" } } } }, "/v1/crm/metrics/efficency/": { "get": { "operationId": "v1_crm_metrics_efficency_list", "parameters": [ { "in": "query", "name": "car__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "disable__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disable__method", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "exclude_ids", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "filter_key", "schema": { "type": "string" } }, { "in": "query", "name": "free", "schema": { "type": "boolean" } }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "has_sublease", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request", "schema": { "type": "number" } }, { "in": "query", "name": "saleable", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "status", "schema": { "type": "number" } }, { "in": "query", "name": "sublease_user", "schema": { "type": "integer" } }, { "in": "query", "name": "sublease_user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sublease_user__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "type", "schema": { "type": "number" } }, { "in": "query", "name": "unique_id", "schema": { "type": "string" } }, { "in": "query", "name": "unique_id__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryEfficencyList" } } }, "description": "" } } } }, "/v1/crm/metrics/efficency/group/": { "get": { "operationId": "v1_crm_metrics_efficency_group_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "inventory__rental_point", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedOrderRequestInventoryEfficencyList" } } }, "description": "" } } } }, "/v1/crm/metrics/efficency/inventory/": { "get": { "operationId": "v1_crm_metrics_efficency_inventory_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "inventory__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__state", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory_group", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedOrderRequestInventoryEfficencyList" } } }, "description": "" } } } }, "/v1/crm/metrics/efficency/set/": { "get": { "operationId": "v1_crm_metrics_efficency_set_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "inventory__rental_point", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedOrderRequestInventoryEfficencyList" } } }, "description": "" } } } }, "/v1/crm/metrics/finances/": { "get": { "operationId": "v1_crm_metrics_finances_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/metrics/finances/cashflow/": { "get": { "operationId": "v1_crm_metrics_finances_cashflow_list", "parameters": [ { "in": "query", "name": "account", "schema": { "type": "integer" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "choice", "schema": { "type": "string", "enum": [ "credit", "debit", "exchange" ] }, "description": "* `credit` - credit\n* `debit` - debit\n* `exchange` - exchange" }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "end_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "method", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - CREDIT\n* `1` - DEBIT" }, { "in": "query", "name": "method__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "in": "query", "name": "request__client", "schema": { "type": "integer" } }, { "in": "query", "name": "request__client__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "request__rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sale__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "statement__counterparty", "schema": { "type": "integer" } }, { "in": "query", "name": "statement__counterparty__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "statement__inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "statement__inventory__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "statement__inventory__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "statement__inventory__rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "statement__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "statement_end_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "statement_start_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "tags", "schema": { "type": "array", "items": { "type": "integer" } }, "explode": true, "style": "form" }, { "in": "query", "name": "tags__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "type", "schema": { "type": "integer" } }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "workshop__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsFinanceCashFlow" } } } }, "description": "" } } } }, "/v1/crm/metrics/finances/pnl/": { "get": { "operationId": "v1_crm_metrics_finances_pnl_list", "parameters": [ { "in": "query", "name": "account", "schema": { "type": "integer" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "choice", "schema": { "type": "string", "enum": [ "credit", "debit", "exchange" ] }, "description": "* `credit` - credit\n* `debit` - debit\n* `exchange` - exchange" }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "end_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "method", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - CREDIT\n* `1` - DEBIT" }, { "in": "query", "name": "method__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "in": "query", "name": "request__client", "schema": { "type": "integer" } }, { "in": "query", "name": "request__client__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "request__rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sale__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "statement__counterparty", "schema": { "type": "integer" } }, { "in": "query", "name": "statement__counterparty__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "statement__inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "statement__inventory__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "statement__inventory__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "statement__inventory__rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "statement__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "statement_end_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "statement_start_at", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "tags", "schema": { "type": "array", "items": { "type": "integer" } }, "explode": true, "style": "form" }, { "in": "query", "name": "tags__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "type", "schema": { "type": "integer" } }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "workshop__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsFinancePnL" } } } }, "description": "" } } } }, "/v1/crm/metrics/funnels/": { "get": { "operationId": "v1_crm_metrics_funnels_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "funnel", "schema": { "type": "integer" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsFunnelView" } } }, "description": "" } } } }, "/v1/crm/metrics/general/": { "get": { "operationId": "v1_crm_metrics_general_list", "parameters": [ { "in": "query", "name": "date", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "in": "query", "name": "type", "schema": { "type": "string", "enum": [ "delivery", "inventory", "penalty", "request", "sale", "service", "workshop" ] }, "description": "* `request` - Request\n* `inventory` - Inventory\n* `service` - Service\n* `delivery` - Delivery\n* `penalty` - Penalty\n* `workshop` - Workshop\n* `sale` - Sale" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsGeneralList" } } }, "description": "" } } } }, "/v1/crm/metrics/general/detail/": { "get": { "operationId": "v1_crm_metrics_general_detail_list", "parameters": [ { "in": "query", "name": "date", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "in": "query", "name": "type", "schema": { "type": "string", "enum": [ "delivery", "inventory", "penalty", "request", "sale", "service", "workshop" ] }, "description": "* `request` - Request\n* `inventory` - Inventory\n* `service` - Service\n* `delivery` - Delivery\n* `penalty` - Penalty\n* `workshop` - Workshop\n* `sale` - Sale" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsGeneralDetailList" } } }, "description": "" } } } }, "/v1/crm/metrics/general/requests/": { "get": { "operationId": "v1_crm_metrics_general_requests_list", "parameters": [ { "in": "query", "name": "date", "schema": { "type": "string", "format": "date" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsGeneralRequestDetailList" } } }, "description": "" } } } }, "/v1/crm/metrics/inventorizations/": { "get": { "operationId": "v1_crm_metrics_inventorizations_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryStateTransition" } } } }, "description": "" } } } }, "/v1/crm/metrics/penalties/": { "get": { "operationId": "v1_crm_metrics_penalties_list", "parameters": [ { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "payment_status", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Ожидается оплата\n* `1` - Оплата произведена\n* `2` - Частичная оплата" }, { "in": "query", "name": "request__client", "schema": { "type": "integer" } }, { "in": "query", "name": "request__client__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request__rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "request__rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - AUTO\n* `1` - MANUAL" }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedPenaltyMetricsList" } } }, "description": "" } } } }, "/v1/crm/metrics/referral/agents/": { "get": { "operationId": "v1_crm_metrics_referral_agents_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "in": "query", "name": "orders__request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "orders__request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsReferralAgentsList" } } }, "description": "" } } } }, "/v1/crm/metrics/referral/general/": { "get": { "operationId": "v1_crm_metrics_referral_general_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsReferralGeneral" } } }, "description": "" } } } }, "/v1/crm/metrics/referral/history/": { "get": { "operationId": "v1_crm_metrics_referral_history_list", "parameters": [ { "in": "query", "name": "agent", "schema": { "type": "integer" } }, { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - paid\n* `1` - pending" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedOrderRequestReferralList" } } }, "description": "" } } } }, "/v1/crm/metrics/services/": { "get": { "operationId": "v1_crm_metrics_services_list", "parameters": [ { "in": "query", "name": "date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "service", "schema": { "type": "integer" } }, { "in": "query", "name": "service__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "service__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "worker", "schema": { "type": "number" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedServiceMetricsList" } } }, "description": "" } } } }, "/v1/crm/metrics/services/general/": { "get": { "operationId": "v1_crm_metrics_services_general_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceGeneralMetrics" } } }, "description": "" } } } }, "/v1/crm/metrics/services/history/": { "get": { "operationId": "v1_crm_metrics_services_history_list", "parameters": [ { "in": "query", "name": "date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "service", "schema": { "type": "integer" } }, { "in": "query", "name": "service__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "service__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "worker", "schema": { "type": "number" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedServiceMetricsHistoryList" } } }, "description": "" } } } }, "/v1/crm/metrics/services/overview/": { "get": { "operationId": "v1_crm_metrics_services_overview_list", "parameters": [ { "in": "query", "name": "date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "service", "schema": { "type": "integer" } }, { "in": "query", "name": "service__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "service__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "worker", "schema": { "type": "number" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedServiceWorkerMetricsList" } } }, "description": "" } } } }, "/v1/crm/metrics/shop/": { "get": { "operationId": "v1_crm_metrics_shop_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsShopView" } } }, "description": "" } } } }, "/v1/crm/metrics/shop/sales/": { "get": { "operationId": "v1_crm_metrics_shop_sales_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsShopListView" } } } }, "description": "" } } } }, "/v1/crm/metrics/transactions/": { "get": { "operationId": "v1_crm_metrics_transactions_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "number" } }, { "in": "query", "name": "content_type", "schema": { "type": "string", "enum": [ "request", "sale", "workshop" ] }, "description": "* `request` - request\n* `sale` - sale\n* `workshop` - workshop" }, { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "method", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - CREDIT\n* `1` - DEBIT" }, { "in": "query", "name": "method__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "refund", "schema": { "type": "boolean" } }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sale__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer" } }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "workshop__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsTransactionList" } } }, "description": "" } } } }, "/v1/crm/metrics/transactions/general/": { "get": { "operationId": "v1_crm_metrics_transactions_general_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "number" } }, { "in": "query", "name": "content_type", "schema": { "type": "string", "enum": [ "request", "sale", "workshop" ] }, "description": "* `request` - request\n* `sale` - sale\n* `workshop` - workshop" }, { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "method", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - CREDIT\n* `1` - DEBIT" }, { "in": "query", "name": "method__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "refund", "schema": { "type": "boolean" } }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sale__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer" } }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "workshop__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsTransactionGeneralList" } } }, "description": "" } } } }, "/v1/crm/metrics/transactions/types/": { "get": { "operationId": "v1_crm_metrics_transactions_types_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "number" } }, { "in": "query", "name": "content_type", "schema": { "type": "string", "enum": [ "request", "sale", "workshop" ] }, "description": "* `request` - request\n* `sale` - sale\n* `workshop` - workshop" }, { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "method", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - CREDIT\n* `1` - DEBIT" }, { "in": "query", "name": "method__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "refund", "schema": { "type": "boolean" } }, { "in": "query", "name": "rental_point", "schema": { "type": "number" } }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request__status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "request__status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sale__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer" } }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "workshop__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsTransactionType" } } } }, "description": "" } } } }, "/v1/crm/metrics/users/salaries/": { "get": { "operationId": "v1_crm_metrics_users_salaries_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_points__point", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsUserSalaryList" } } }, "description": "" } } } }, "/v1/crm/metrics/users/salaries/{user_id}/": { "get": { "operationId": "v1_crm_metrics_users_salaries_list_2", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "user_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsUserSalaryDetail" } } } }, "description": "" } } } }, "/v1/crm/metrics/users/salaries/{user_id}/actions/": { "get": { "operationId": "v1_crm_metrics_users_salaries_actions_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "user_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsUserSalaryTypeEarningList" } } }, "description": "" } } } }, "/v1/crm/metrics/users/sublease/": { "get": { "operationId": "v1_crm_metrics_users_sublease_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedUserSubleaseEarningList" } } }, "description": "" } } } }, "/v1/crm/metrics/users/sublease/{user_id}/history/": { "get": { "operationId": "v1_crm_metrics_users_sublease_history_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "user_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedUserSubleaseEarningHistoryList" } } }, "description": "" } } } }, "/v1/crm/metrics/users/sublease/{user_id}/inventories/": { "get": { "operationId": "v1_crm_metrics_users_sublease_inventories_list", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "user_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedUserSubleaseEarningInventoryList" } } }, "description": "" } } } }, "/v1/crm/metrics/users/sublease/general/": { "get": { "operationId": "v1_crm_metrics_users_sublease_general_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserSubleaseEarningGeneral" } } }, "description": "" } } } }, "/v1/crm/metrics/workshifts/": { "get": { "operationId": "v1_crm_metrics_workshifts_list", "parameters": [ { "in": "query", "name": "end_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "end_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "start_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "user", "schema": { "type": "integer" } }, { "in": "query", "name": "user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedWorkshiftList" } } }, "description": "" } } } }, "/v1/crm/metrics/workshifts/{id}/": { "get": { "operationId": "v1_crm_metrics_workshifts_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshiftDetail" } } }, "description": "" } } } }, "/v1/crm/metrics/workshops/": { "get": { "operationId": "v1_crm_metrics_workshops_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "integer" } }, { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3 ] }, "description": "* `0` - NEW\n* `1` - IN_PROGRESS\n* `2` - COMPLETED\n* `3` - ARCHIVE" }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - INTERNAL\n* `1` - EXTERNAL" }, { "in": "query", "name": "worker", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsWorkshopListList" } } }, "description": "" } } } }, "/v1/crm/metrics/workshops/resources/": { "get": { "operationId": "v1_crm_metrics_workshops_resources_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "integer" } }, { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3 ] }, "description": "* `0` - NEW\n* `1` - IN_PROGRESS\n* `2` - COMPLETED\n* `3` - ARCHIVE" }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - INTERNAL\n* `1` - EXTERNAL" }, { "in": "query", "name": "worker", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedMetricsWorkshopResourcesList" } } }, "description": "" } } } }, "/v1/crm/permissions/": { "get": { "operationId": "v1_crm_permissions_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ContentTypePermission" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_permissions_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContentTypePermission" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ContentTypePermission" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ContentTypePermission" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContentTypePermission" } } }, "description": "" } } } }, "/v1/crm/permissions/groups/": { "get": { "operationId": "v1_crm_permissions_groups_list", "parameters": [ { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Group" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_permissions_groups_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GroupEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/GroupEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/GroupEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GroupEdit" } } }, "description": "" } } } }, "/v1/crm/permissions/groups/{id}/": { "get": { "operationId": "v1_crm_permissions_groups_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Group" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_permissions_groups_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GroupEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/GroupEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/GroupEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GroupEdit" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_permissions_groups_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedGroupEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedGroupEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedGroupEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GroupEdit" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_permissions_groups_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/rental_points/": { "get": { "operationId": "v1_crm_rental_points_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedRentalPointList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_rental_points_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RentalPoint" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/RentalPoint" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/RentalPoint" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RentalPoint" } } }, "description": "" } } } }, "/v1/crm/rental_points/{id}/": { "get": { "operationId": "v1_crm_rental_points_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RentalPoint" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_rental_points_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RentalPoint" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/RentalPoint" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/RentalPoint" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RentalPoint" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_rental_points_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedRentalPoint" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedRentalPoint" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedRentalPoint" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RentalPoint" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_rental_points_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/rental_points/{rental_id}/users/": { "get": { "operationId": "v1_crm_rental_points_users_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "path", "name": "rental_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedUserRentalPointList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_rental_points_users_create", "parameters": [ { "in": "path", "name": "rental_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } } }, "description": "" } } } }, "/v1/crm/rental_points/{rental_id}/users/{id}/": { "get": { "operationId": "v1_crm_rental_points_users_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "rental_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_rental_points_users_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "rental_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_rental_points_users_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "rental_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedUserRentalPoint" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedUserRentalPoint" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedUserRentalPoint" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRentalPoint" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_rental_points_users_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "rental_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/": { "get": { "operationId": "v1_crm_requests_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "post": { "operationId": "v1_crm_requests_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/": { "get": { "operationId": "v1_crm_requests_retrieve_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDetail" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_requests_update", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCreate" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_partial_update", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCreate" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_destroy", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/action/": { "post": { "operationId": "v1_crm_requests_action_create", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderAction" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderAction" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderAction" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderAction" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/archive/": { "delete": { "operationId": "v1_crm_requests_archive_destroy", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/create_bonus/": { "post": { "operationId": "v1_crm_requests_create_bonus_create", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/delete_bonus/": { "delete": { "operationId": "v1_crm_requests_delete_bonus_destroy", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/deliveries/": { "get": { "operationId": "v1_crm_requests_deliveries_retrieve_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "post": { "operationId": "v1_crm_requests_deliveries_create", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/deliveries/{id}/": { "get": { "operationId": "v1_crm_requests_deliveries_retrieve_3", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "put": { "operationId": "v1_crm_requests_deliveries_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "patch": { "operationId": "v1_crm_requests_deliveries_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "delete": { "operationId": "v1_crm_requests_deliveries_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/deliveries/{id}/cancel/": { "post": { "operationId": "v1_crm_requests_deliveries_cancel_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryCancel" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryCancel" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryCancel" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryCancel" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/deliveries/{id}/delivery/": { "post": { "operationId": "v1_crm_requests_deliveries_delivery_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/deliveries/{id}/delivery/confirm/": { "post": { "operationId": "v1_crm_requests_deliveries_delivery_confirm_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryDelivered" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryDelivered" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryDelivered" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryDelivered" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/deliveries/{id}/pickup/": { "post": { "operationId": "v1_crm_requests_deliveries_pickup_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/deposits/": { "get": { "operationId": "v1_crm_requests_deposits_list", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestDeposit" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_deposits_create", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/deposits/{id}/": { "put": { "operationId": "v1_crm_requests_deposits_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_deposits_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestDeposit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestDeposit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestDeposit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeposit" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_deposits_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/deposits/{id}/return/": { "post": { "operationId": "v1_crm_requests_deposits_return_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/discounts/": { "get": { "operationId": "v1_crm_requests_discounts_retrieve", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "post": { "operationId": "v1_crm_requests_discounts_create", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/discounts/{id}/": { "put": { "operationId": "v1_crm_requests_discounts_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "patch": { "operationId": "v1_crm_requests_discounts_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "delete": { "operationId": "v1_crm_requests_discounts_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/groups/": { "get": { "operationId": "v1_crm_requests_groups_list_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BaseInventoryGroup" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_groups_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/inventories/": { "get": { "operationId": "v1_crm_requests_inventories_list_2", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "number" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "date", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "discount", "schema": { "type": "integer" } }, { "in": "query", "name": "end_at", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory", "schema": { "type": "number" } }, { "in": "query", "name": "issued", "schema": { "type": "boolean" } }, { "in": "query", "name": "received", "schema": { "type": "boolean" } }, { "in": "query", "name": "request", "schema": { "type": "number" } }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true }, { "in": "query", "name": "set", "schema": { "type": "integer" } }, { "in": "query", "name": "start_at", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3 ] }, "description": "* `0` - steady\n* `1` - issued\n* `2` - received\n* `3` - Просрочка" }, { "in": "query", "name": "tarif", "schema": { "type": "integer" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - Аренда\n* `1` - Продажа" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestInventoryList" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_inventories_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/inventories/bulk_create/": { "post": { "operationId": "v1_crm_requests_inventories_bulk_create_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/inventories/bulk_delete/": { "post": { "operationId": "v1_crm_requests_inventories_bulk_delete_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/inventories/bulk_update/": { "post": { "operationId": "v1_crm_requests_inventories_bulk_update_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/pause/": { "get": { "operationId": "v1_crm_requests_pause_retrieve", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPause" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_pause_create", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPause" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestPause" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestPause" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPause" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/penalties/": { "get": { "operationId": "v1_crm_requests_penalties_list_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestPenalty" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_penalties_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/penalties/{id}/": { "put": { "operationId": "v1_crm_requests_penalties_update_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_penalties_partial_update_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestPenalty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_penalties_destroy_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/period/": { "post": { "operationId": "v1_crm_requests_period_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/receipt/": { "get": { "operationId": "v1_crm_requests_receipt_retrieve", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestReceipt" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/services/": { "get": { "operationId": "v1_crm_requests_services_list_2", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedDetailOrderRequestServiceList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_services_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/services/{id}/": { "put": { "operationId": "v1_crm_requests_services_update_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_services_partial_update_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestServiceCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestServiceCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestServiceCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_services_destroy_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/{request_id}/sets/": { "get": { "operationId": "v1_crm_requests_sets_list_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetInfo" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_sets_create_2", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } } }, "description": "" } } } }, "/v1/crm/requests/{request_id}/weekday/": { "get": { "operationId": "v1_crm_requests_weekday_retrieve", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_requests_weekday_update", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_weekday_partial_update", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestWeekday" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestWeekday" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestWeekday" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } }, "description": "" } } } }, "/v1/crm/requests/amount/": { "get": { "operationId": "v1_crm_requests_amount_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestAmount" } } }, "description": "" } } } }, "/v1/crm/requests/conditions/": { "get": { "operationId": "v1_crm_requests_conditions_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "integer" } }, { "in": "query", "name": "client__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request", "schema": { "type": "integer" } }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request_inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "request_inventory__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestCondition" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_conditions_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } } }, "description": "" } } } }, "/v1/crm/requests/conditions/{id}/": { "get": { "operationId": "v1_crm_requests_conditions_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_requests_conditions_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_conditions_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestCondition" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestCondition" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestCondition" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCondition" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_conditions_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/counts/": { "get": { "operationId": "v1_crm_requests_counts_retrieve", "parameters": [ { "in": "query", "name": "end_at", "schema": { "type": "string" }, "required": true }, { "in": "query", "name": "start_at", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestCount" } } }, "description": "" } } } }, "/v1/crm/requests/deliveries/": { "get": { "operationId": "v1_crm_requests_deliveries_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/crm/requests/deliveries/count/": { "get": { "operationId": "v1_crm_requests_deliveries_count_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestDeliveryCount" } } }, "description": "" } } } }, "/v1/crm/requests/groups/": { "get": { "operationId": "v1_crm_requests_groups_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BaseInventoryGroup" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_groups_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryGroupCreate" } } }, "description": "" } } } }, "/v1/crm/requests/inventories/": { "get": { "operationId": "v1_crm_requests_inventories_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "number" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "date", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "discount", "schema": { "type": "integer" } }, { "in": "query", "name": "end_at", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventory", "schema": { "type": "number" } }, { "in": "query", "name": "issued", "schema": { "type": "boolean" } }, { "in": "query", "name": "received", "schema": { "type": "boolean" } }, { "in": "query", "name": "request", "schema": { "type": "number" } }, { "in": "query", "name": "set", "schema": { "type": "integer" } }, { "in": "query", "name": "start_at", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3 ] }, "description": "* `0` - steady\n* `1` - issued\n* `2` - received\n* `3` - Просрочка" }, { "in": "query", "name": "tarif", "schema": { "type": "integer" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - Аренда\n* `1` - Продажа" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestInventoryList" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_inventories_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "description": "" } } } }, "/v1/crm/requests/inventories/{id}/": { "get": { "operationId": "v1_crm_requests_inventories_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryList" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_requests_inventories_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_inventories_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestInventoryCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestInventoryCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestInventoryCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_inventories_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/inventories/bulk_create/": { "post": { "operationId": "v1_crm_requests_inventories_bulk_create_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkCreate" } } }, "description": "" } } } }, "/v1/crm/requests/inventories/bulk_delete/": { "post": { "operationId": "v1_crm_requests_inventories_bulk_delete_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkDelete" } } }, "description": "" } } } }, "/v1/crm/requests/inventories/bulk_update/": { "post": { "operationId": "v1_crm_requests_inventories_bulk_update_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryBulkUpdate" } } }, "description": "" } } } }, "/v1/crm/requests/penalties/": { "get": { "operationId": "v1_crm_requests_penalties_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestPenalty" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_penalties_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } }, "description": "" } } } }, "/v1/crm/requests/penalties/{id}/": { "put": { "operationId": "v1_crm_requests_penalties_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_penalties_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestPenalty" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestPenalty" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestPenalty" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestPenalty" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_penalties_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/period/": { "post": { "operationId": "v1_crm_requests_period_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventoryPeriodChange" } } }, "description": "" } } } }, "/v1/crm/requests/referrals/": { "get": { "operationId": "v1_crm_requests_referrals_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "request", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedOrderRequestReferralList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_referrals_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } } }, "description": "" } } } }, "/v1/crm/requests/referrals/{id}/": { "get": { "operationId": "v1_crm_requests_referrals_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_requests_referrals_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_referrals_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestReferral" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestReferral" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestReferral" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestReferral" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_referrals_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/referrals/{id}/pay/": { "post": { "operationId": "v1_crm_requests_referrals_pay_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/crm/requests/schedule/": { "get": { "operationId": "v1_crm_requests_schedule_list", "parameters": [ { "in": "query", "name": "autorenewal", "schema": { "type": "boolean" } }, { "in": "query", "name": "deleted", "schema": { "type": "boolean" } }, { "in": "query", "name": "end_at", "schema": { "type": "string", "format": "date" }, "required": true }, { "in": "query", "name": "payment_status", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Ожидается оплата\n* `1` - Оплата произведена\n* `2` - Частичная оплата" }, { "in": "query", "name": "payment_status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at", "schema": { "type": "string", "format": "date" }, "required": true }, { "in": "query", "name": "status", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ] }, "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, { "in": "query", "name": "status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "time_exceed", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestSchedule" } } } }, "description": "" } } } }, "/v1/crm/requests/services/": { "get": { "operationId": "v1_crm_requests_services_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedDetailOrderRequestServiceList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_services_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "description": "" } } } }, "/v1/crm/requests/services/{id}/": { "put": { "operationId": "v1_crm_requests_services_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_services_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestServiceCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestServiceCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestServiceCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestServiceCreate" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_services_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/requests/sets/": { "get": { "operationId": "v1_crm_requests_sets_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetInfo" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_sets_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestInventorySetCreate" } } }, "description": "" } } } }, "/v1/crm/requests/weekdays/": { "get": { "operationId": "v1_crm_requests_weekdays_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "integer" } }, { "in": "query", "name": "client__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request", "schema": { "type": "integer" } }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "request_inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "request_inventory__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestWeekday" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_requests_weekdays_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } }, "description": "" } } } }, "/v1/crm/requests/weekdays/{id}/": { "get": { "operationId": "v1_crm_requests_weekdays_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_requests_weekdays_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_requests_weekdays_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestWeekday" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestWeekday" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderRequestWeekday" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequestWeekday" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_requests_weekdays_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/services/": { "get": { "operationId": "v1_crm_services_list", "parameters": [ { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1, 2, 3, 4 ] }, "description": "* `0` - Доставка\n* `1` - Не выбрано\n* `2` - Доставка обратно\n* `3` - Доставка туда и обратно\n* `4` - workshop" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedServiceList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_services_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Service" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Service" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Service" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Service" } } }, "description": "" } } } }, "/v1/crm/services/{id}/": { "get": { "operationId": "v1_crm_services_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Service" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_services_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Service" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Service" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Service" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Service" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_services_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedService" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedService" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedService" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Service" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_services_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/services/{id}/archive": { "delete": { "operationId": "v1_crm_services_archive_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/services/{service_id}/tarifs/": { "post": { "operationId": "v1_crm_services_tarifs_create", "parameters": [ { "in": "path", "name": "service_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } } }, "description": "" } } } }, "/v1/crm/services/{service_id}/tarifs/{id}/": { "put": { "operationId": "v1_crm_services_tarifs_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "service_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_services_tarifs_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "service_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedServiceTarifs" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedServiceTarifs" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedServiceTarifs" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceTarifs" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_services_tarifs_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "service_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/services/general/": { "get": { "operationId": "v1_crm_services_general_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceGeneral" } } }, "description": "" } } } }, "/v1/crm/settings/": { "get": { "operationId": "v1_crm_settings_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsConfig" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_settings_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsConfig" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SettingsConfig" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SettingsConfig" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsConfig" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_settings_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSettingsConfig" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSettingsConfig" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSettingsConfig" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsConfig" } } }, "description": "" } } } }, "/v1/crm/settings/custom_fields/": { "put": { "operationId": "v1_crm_settings_custom_fields_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomFieldUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomFieldUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomFieldUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomFieldUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_settings_custom_fields_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedCustomFieldUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedCustomFieldUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedCustomFieldUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomFieldUpdate" } } }, "description": "" } } } }, "/v1/crm/settings/custom_fields/{id}/": { "get": { "operationId": "v1_crm_settings_custom_fields_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomField" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_settings_custom_fields_update_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomField" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomField" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomField" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomField" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_settings_custom_fields_partial_update_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedCustomField" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedCustomField" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedCustomField" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomField" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_settings_custom_fields_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/settings/custom_fields_list/": { "get": { "operationId": "v1_crm_settings_custom_fields_list_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CustomField" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_settings_custom_fields_list_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomField" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomField" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomField" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomField" } } }, "description": "" } } } }, "/v1/crm/settings/default-labels/": { "get": { "operationId": "v1_crm_settings_default_labels_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Label" } } } }, "description": "" } } } }, "/v1/crm/settings/labels/": { "get": { "operationId": "v1_crm_settings_labels_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Label" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_settings_labels_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Label" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Label" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Label" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Label" } } }, "description": "" } } } }, "/v1/crm/settings/labels/{id}/": { "get": { "operationId": "v1_crm_settings_labels_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Label" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_settings_labels_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Label" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Label" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Label" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Label" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_settings_labels_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedLabel" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedLabel" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedLabel" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Label" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_settings_labels_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/settings/promo/": { "get": { "operationId": "v1_crm_settings_promo_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Promo" } } }, "description": "" } } } }, "/v1/crm/settings/promo/{id}/": { "post": { "operationId": "v1_crm_settings_promo_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Promo" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Promo" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Promo" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Promo" } } }, "description": "" } } } }, "/v1/crm/settings/tables/": { "get": { "operationId": "v1_crm_settings_tables_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TableSettings" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_settings_tables_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableSettings" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TableSettings" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TableSettings" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableSettings" } } }, "description": "" } } } }, "/v1/crm/settings/tables/{name}/": { "get": { "operationId": "v1_crm_settings_tables_retrieve", "parameters": [ { "in": "path", "name": "name", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableSettings" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_settings_tables_update", "parameters": [ { "in": "path", "name": "name", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableSettings" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TableSettings" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TableSettings" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableSettings" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_settings_tables_partial_update", "parameters": [ { "in": "path", "name": "name", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTableSettings" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTableSettings" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTableSettings" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableSettings" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_settings_tables_destroy", "parameters": [ { "in": "path", "name": "name", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/tags/": { "get": { "operationId": "v1_crm_tags_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Tag" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_tags_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tag" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Tag" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Tag" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tag" } } }, "description": "" } } } }, "/v1/crm/tags/{id}/": { "get": { "operationId": "v1_crm_tags_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tag" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_tags_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tag" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Tag" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Tag" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tag" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_tags_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTag" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTag" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTag" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tag" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_tags_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/tarifs/": { "get": { "operationId": "v1_crm_tarifs_list", "parameters": [ { "in": "query", "name": "inventory", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory_group", "schema": { "type": "integer" } }, { "in": "query", "name": "inventory_set__set", "schema": { "type": "integer" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedTarifList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_tarifs_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Tarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Tarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tarif" } } }, "description": "" } } } }, "/v1/crm/tarifs/{id}/": { "get": { "operationId": "v1_crm_tarifs_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tarif" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_tarifs_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Tarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Tarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tarif" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_tarifs_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTarif" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTarif" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTarif" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Tarif" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_tarifs_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/tarifs/bulk_create/": { "post": { "operationId": "v1_crm_tarifs_bulk_create_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TarifBulkCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TarifBulkCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TarifBulkCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TarifBulkCreate" } } }, "description": "" } } } }, "/v1/crm/tarifs/bulk_update/": { "post": { "operationId": "v1_crm_tarifs_bulk_update_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TarifBulkUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TarifBulkUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TarifBulkUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TarifBulkUpdate" } } }, "description": "" } } } }, "/v1/crm/time_periods/": { "get": { "operationId": "v1_crm_time_periods_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } } } }, "description": "" } } }, "post": { "operationId": "v1_crm_time_periods_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } } }, "description": "" } } } }, "/v1/crm/time_periods/{id}/": { "get": { "operationId": "v1_crm_time_periods_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_time_periods_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_time_periods_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedInventoryTarifTimePeriod" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedInventoryTarifTimePeriod" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedInventoryTarifTimePeriod" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryTarifTimePeriod" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_time_periods_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/users/": { "get": { "operationId": "v1_crm_users_list", "parameters": [ { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "is_active", "schema": { "type": "boolean" } }, { "in": "query", "name": "is_staff", "schema": { "type": "boolean" } }, { "in": "query", "name": "is_sublease", "schema": { "type": "boolean" } }, { "in": "query", "name": "is_superuser", "schema": { "type": "boolean" } }, { "in": "query", "name": "loyalty", "schema": { "type": "integer" } }, { "in": "query", "name": "loyalty__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedProfileList" } } }, "description": "" } } }, "post": { "operationId": "v1_crm_users_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } } }, "description": "" } } } }, "/v1/crm/users/{id}/": { "get": { "operationId": "v1_crm_users_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserDetail" } } }, "description": "" } } }, "put": { "operationId": "v1_crm_users_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } } }, "description": "" } } }, "patch": { "operationId": "v1_crm_users_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedProfileEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedProfileEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedProfileEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileEdit" } } }, "description": "" } } }, "delete": { "operationId": "v1_crm_users_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/crm/workshift/": { "get": { "operationId": "v1_crm_workshift_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshiftDetail" } } }, "description": "" } } } }, "/v1/crm/workshift/{id}/": { "get": { "operationId": "v1_crm_workshift_retrieve_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshiftDetail" } } }, "description": "" } } } }, "/v1/crm/workshift/end/": { "get": { "operationId": "v1_crm_workshift_end_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workshift" } } }, "description": "" } } } }, "/v1/crm/workshift/start/": { "get": { "operationId": "v1_crm_workshift_start_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workshift" } } }, "description": "" } } } }, "/v1/finances/accounts/": { "get": { "operationId": "v1_finances_accounts_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentAccount" } } } }, "description": "" } } }, "post": { "operationId": "v1_finances_accounts_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } } }, "description": "" } } } }, "/v1/finances/accounts/{id}/": { "get": { "operationId": "v1_finances_accounts_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } } }, "description": "" } } }, "put": { "operationId": "v1_finances_accounts_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } } }, "description": "" } } }, "patch": { "operationId": "v1_finances_accounts_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPaymentAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPaymentAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPaymentAccount" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentAccount" } } }, "description": "" } } }, "delete": { "operationId": "v1_finances_accounts_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/finances/categories/": { "get": { "operationId": "v1_finances_categories_list", "parameters": [ { "in": "query", "name": "type", "schema": { "type": "integer" } }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer", "enum": [ 0, 1 ] } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentCategory" } } } }, "description": "" } } }, "post": { "operationId": "v1_finances_categories_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } } }, "description": "" } } } }, "/v1/finances/categories/{id}/": { "get": { "operationId": "v1_finances_categories_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } } }, "description": "" } } }, "put": { "operationId": "v1_finances_categories_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } } }, "description": "" } } }, "patch": { "operationId": "v1_finances_categories_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPaymentCategory" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPaymentCategory" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPaymentCategory" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentCategory" } } }, "description": "" } } }, "delete": { "operationId": "v1_finances_categories_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/finances/exchanges/": { "post": { "operationId": "v1_finances_exchanges_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchange" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchange" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchange" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchange" } } }, "description": "" } } } }, "/v1/finances/exchanges/{id}/": { "put": { "operationId": "v1_finances_exchanges_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchangeEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchangeEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchangeEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchangeEdit" } } }, "description": "" } } }, "patch": { "operationId": "v1_finances_exchanges_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTransactionStatementExchangeEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTransactionStatementExchangeEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTransactionStatementExchangeEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionStatementExchangeEdit" } } }, "description": "" } } } }, "/v1/finances/refunds/": { "post": { "operationId": "v1_finances_refunds_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionRefundCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TransactionRefundCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TransactionRefundCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionRefundCreate" } } }, "description": "" } } } }, "/v1/finances/schedules/": { "get": { "operationId": "v1_finances_schedules_list", "parameters": [ { "in": "query", "name": "date", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "date__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "date__gte", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "date__lte", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "request", "schema": { "type": "integer" } }, { "in": "query", "name": "weekend", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionSchedule" } } } }, "description": "" } } }, "post": { "operationId": "v1_finances_schedules_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } } }, "description": "" } } } }, "/v1/finances/schedules/{schedule_id}/": { "put": { "operationId": "v1_finances_schedules_update", "parameters": [ { "in": "path", "name": "schedule_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } } }, "description": "" } } }, "patch": { "operationId": "v1_finances_schedules_partial_update", "parameters": [ { "in": "path", "name": "schedule_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTransactionSchedule" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTransactionSchedule" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTransactionSchedule" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionSchedule" } } }, "description": "" } } } }, "/v1/finances/statements/": { "get": { "operationId": "v1_finances_statements_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "post": { "operationId": "v1_finances_statements_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/finances/statements/{id}/": { "get": { "operationId": "v1_finances_statements_retrieve_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "put": { "operationId": "v1_finances_statements_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "patch": { "operationId": "v1_finances_statements_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "delete": { "operationId": "v1_finances_statements_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/finances/statements/general/": { "get": { "operationId": "v1_finances_statements_general_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionStatementGeneral" } } }, "description": "" } } } }, "/v1/finances/transactions/": { "get": { "operationId": "v1_finances_transactions_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "post": { "operationId": "v1_finances_transactions_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/finances/transactions/{transaction_id}/": { "get": { "operationId": "v1_finances_transactions_retrieve_2", "parameters": [ { "in": "path", "name": "transaction_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "put": { "operationId": "v1_finances_transactions_update", "parameters": [ { "in": "path", "name": "transaction_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "patch": { "operationId": "v1_finances_transactions_partial_update", "parameters": [ { "in": "path", "name": "transaction_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "delete": { "operationId": "v1_finances_transactions_destroy", "parameters": [ { "in": "path", "name": "transaction_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/finances/transactions/general/": { "get": { "operationId": "v1_finances_transactions_general_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionGeneral" } } }, "description": "" } } } }, "/v1/finances/types/": { "get": { "operationId": "v1_finances_types_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentType" } } } }, "description": "" } } }, "post": { "operationId": "v1_finances_types_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentType" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PaymentType" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PaymentType" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentType" } } }, "description": "" } } } }, "/v1/finances/types/{id}/": { "get": { "operationId": "v1_finances_types_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentType" } } }, "description": "" } } }, "put": { "operationId": "v1_finances_types_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentType" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PaymentType" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PaymentType" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentType" } } }, "description": "" } } }, "patch": { "operationId": "v1_finances_types_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPaymentType" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPaymentType" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPaymentType" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentType" } } }, "description": "" } } }, "delete": { "operationId": "v1_finances_types_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/kaspi/balance/": { "get": { "operationId": "v1_kaspi_balance_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KaspiBalanceRequest" } } }, "description": "" } } } }, "/v1/kaspi/transactions/": { "get": { "operationId": "v1_kaspi_transactions_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedKaspiTransactionList" } } }, "description": "" } } } }, "/v1/kaspi/transactions/detailed/": { "get": { "operationId": "v1_kaspi_transactions_detailed_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedKaspiTransactionDetailList" } } }, "description": "" } } } }, "/v1/kaspi/wallets/{client_id}/": { "get": { "operationId": "v1_kaspi_wallets_retrieve", "parameters": [ { "in": "path", "name": "client_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KaspiAccount" } } }, "description": "" } } } }, "/v1/kaspi/wallets/metrics/": { "get": { "operationId": "v1_kaspi_wallets_metrics_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedKaspiMetricsAccountList" } } }, "description": "" } } } }, "/v1/news/": { "get": { "operationId": "v1_news_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedNewsList" } } }, "description": "" } } } }, "/v1/news/{id}/": { "get": { "operationId": "v1_news_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/News" } } }, "description": "" } } } }, "/v1/notifications/": { "get": { "operationId": "v1_notifications_list", "parameters": [ { "in": "query", "name": "archived", "schema": { "type": "boolean" } }, { "in": "query", "name": "content_type", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "readed", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedNotificationList" } } }, "description": "" } } } }, "/v1/notifications/access/": { "get": { "operationId": "v1_notifications_access_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationAccess" } } } }, "description": "" } } }, "post": { "operationId": "v1_notifications_access_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationAccessBulkUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/NotificationAccessBulkUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/NotificationAccessBulkUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationAccessBulkUpdate" } } }, "description": "" } } } }, "/v1/notifications/archive/": { "post": { "operationId": "v1_notifications_archive_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationArchive" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/NotificationArchive" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/NotificationArchive" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/notifications/count/": { "get": { "operationId": "v1_notifications_count_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/notifications/mobile/": { "get": { "operationId": "v1_notifications_mobile_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedNotificationPushTokenList" } } }, "description": "" } } }, "post": { "operationId": "v1_notifications_mobile_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPushToken" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/NotificationPushToken" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/NotificationPushToken" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPushToken" } } }, "description": "" } } } }, "/v1/notifications/mobile/unsubscribe/": { "post": { "operationId": "v1_notifications_mobile_unsubscribe_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPushTokenUnsubscribe" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/NotificationPushTokenUnsubscribe" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/NotificationPushTokenUnsubscribe" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPushTokenUnsubscribe" } } }, "description": "" } } } }, "/v1/notifications/read/": { "post": { "operationId": "v1_notifications_read_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationRead" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/NotificationRead" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/NotificationRead" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/notifications/telegram/": { "get": { "operationId": "v1_notifications_telegram_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TelegramBotLink" } } }, "description": "" } } }, "post": { "operationId": "v1_notifications_telegram_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TelegramBotLink" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TelegramBotLink" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TelegramBotLink" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TelegramBotLink" } } }, "description": "" } } } }, "/v1/notifications/telegram/disconnect/": { "post": { "operationId": "v1_notifications_telegram_disconnect_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/plus/articles/": { "get": { "operationId": "v1_plus_articles_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusArticle" } } } }, "description": "" } } } }, "/v1/plus/auth/": { "post": { "operationId": "v1_plus_auth_create", "description": "Takes a set of user credentials and returns an access and refresh JSON web\ntoken pair to prove the authentication of those credentials.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "description": "" } } } }, "/v1/plus/auth/logout/": { "post": { "operationId": "v1_plus_auth_logout_create", "description": "Takes a token and blacklists it. Must be used with the\n`rest_framework_simplejwt.token_blacklist` app installed.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "description": "" } } } }, "/v1/plus/auth/password/reset/": { "post": { "operationId": "v1_plus_auth_password_reset_create", "tags": [ "v1" ], "security": [ {} ], "responses": { "200": { "description": "No response body" } } } }, "/v1/plus/auth/password/reset/request/": { "post": { "operationId": "v1_plus_auth_password_reset_request_create", "tags": [ "v1" ], "security": [ {} ], "responses": { "200": { "description": "No response body" } } } }, "/v1/plus/auth/profile/": { "get": { "operationId": "v1_plus_auth_profile_retrieve", "tags": [ "v1" ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_auth_profile_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_auth_profile_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserProfile" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserProfile" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserProfile" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "description": "" } } } }, "/v1/plus/auth/profile/password/": { "put": { "operationId": "v1_plus_auth_profile_password_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_auth_profile_password_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserPassword" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserPassword" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserPassword" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } } }, "description": "" } } } }, "/v1/plus/auth/refresh/": { "post": { "operationId": "v1_plus_auth_refresh_create", "description": "Takes a refresh type JSON web token and returns an access type JSON web\ntoken if the refresh token is valid.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "description": "" } } } }, "/v1/plus/auth/register/": { "post": { "operationId": "v1_plus_auth_register_create", "tags": [ "v1" ], "security": [ {} ], "responses": { "200": { "description": "No response body" } } } }, "/v1/plus/auth/register/create/": { "post": { "operationId": "v1_plus_auth_register_create_create", "tags": [ "v1" ], "security": [ {} ], "responses": { "200": { "description": "No response body" } } } }, "/v1/plus/auth/register/verify/": { "post": { "operationId": "v1_plus_auth_register_verify_create", "tags": [ "v1" ], "security": [ {} ], "responses": { "200": { "description": "No response body" } } } }, "/v1/plus/bonuses/": { "get": { "operationId": "v1_plus_bonuses_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusBonus" } } }, "description": "" } } } }, "/v1/plus/bonuses/history/": { "get": { "operationId": "v1_plus_bonuses_history_list", "parameters": [ { "in": "query", "name": "cart", "schema": { "type": "integer" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1 ] }, "description": "* `0` - transaction_spend\n* `1` - transaction_earn" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedPlusBonusTransactionList" } } }, "description": "" } } } }, "/v1/plus/carts/": { "get": { "operationId": "v1_plus_carts_list", "parameters": [ { "in": "query", "name": "company", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "in": "query", "name": "payment_status", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - Ожидается оплата\n* `1` - Оплата произведена\n* `2` - Частичная оплата" }, { "in": "query", "name": "payment_status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "price__gt", "schema": { "type": "number" } }, { "in": "query", "name": "price__lte", "schema": { "type": "number" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "start_at__gt", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "start_at__lte", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "status", "schema": { "type": "string", "nullable": true, "enum": [ "cancel", "completed", "debtor", "exceed", "inrent", "request", "reserve" ] }, "description": "* `exceed` - exceed\n* `request` - Запрос\n* `reserve` - reserve\n* `inrent` - В аренде\n* `cancel` - cancel\n* `completed` - Завершено\n* `debtor` - Должник" }, { "in": "query", "name": "status__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "status__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyCart" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_carts_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCart" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CompanyCart" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CompanyCart" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCart" } } }, "description": "" } } } }, "/v1/plus/carts/{id}/": { "get": { "operationId": "v1_plus_carts_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCart" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_carts_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCart" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CompanyCart" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CompanyCart" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCart" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_carts_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedCompanyCart" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedCompanyCart" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedCompanyCart" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCart" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_carts_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/carts/{id}/items/": { "get": { "operationId": "v1_plus_carts_items_list", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyCartItemDetail" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_carts_items_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } } }, "description": "" } } } }, "/v1/plus/carts/{id}/items/{item_id}/": { "get": { "operationId": "v1_plus_carts_items_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "item_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_carts_items_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "item_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_carts_items_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "item_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedCompanyCartItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedCompanyCartItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedCompanyCartItem" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyCartItem" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_carts_items_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "item_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/carts/{id}/order/": { "post": { "operationId": "v1_plus_carts_order_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusOrderCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusOrderCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusOrderCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusOrderCreate" } } }, "description": "" } } } }, "/v1/plus/companies/": { "get": { "operationId": "v1_plus_companies_list", "parameters": [ { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusCompany" } } } }, "description": "" } } } }, "/v1/plus/companies/categories/": { "get": { "operationId": "v1_plus_companies_categories_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusCompanyCategory" } } } }, "description": "" } } } }, "/v1/plus/company/": { "get": { "operationId": "v1_plus_company_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusTenant" } } }, "description": "" } } } }, "/v1/plus/manage/articles/": { "get": { "operationId": "v1_plus_manage_articles_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusArticle" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_articles_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusArticle" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusArticle" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusArticle" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusArticle" } } }, "description": "" } } } }, "/v1/plus/manage/articles/{id}/": { "get": { "operationId": "v1_plus_manage_articles_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusArticle" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_articles_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusArticle" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusArticle" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusArticle" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusArticle" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_articles_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusArticle" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusArticle" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusArticle" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusArticle" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_articles_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/categories/": { "get": { "operationId": "v1_plus_manage_categories_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_categories_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } } }, "description": "" } } } }, "/v1/plus/manage/categories/{id}/": { "get": { "operationId": "v1_plus_manage_categories_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_categories_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_categories_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductCategoryUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductCategoryUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductCategoryUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCategoryUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_categories_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/companies/": { "get": { "operationId": "v1_plus_manage_companies_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusCompanyCreate" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_companies_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } } }, "description": "" } } } }, "/v1/plus/manage/companies/{id}/": { "get": { "operationId": "v1_plus_manage_companies_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_companies_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_companies_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusCompanyCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusCompanyCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusCompanyCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusCompanyCreate" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_companies_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/domain/": { "get": { "operationId": "v1_plus_manage_domain_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusDomain" } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_domain_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusDomain" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusDomain" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusDomain" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusDomain" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_domain_destroy", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/products/": { "get": { "operationId": "v1_plus_manage_products_list", "parameters": [ { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "group_id", "schema": { "type": "integer" } }, { "in": "query", "name": "group_id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "service_id", "schema": { "type": "integer" } }, { "in": "query", "name": "service_id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "set_id", "schema": { "type": "integer" } }, { "in": "query", "name": "set_id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedPlusProductViewList" } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_products_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } } }, "description": "" } } } }, "/v1/plus/manage/products/{id}/": { "get": { "operationId": "v1_plus_manage_products_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductView" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_products_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_products_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_products_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/products/{id}/companies/": { "get": { "operationId": "v1_plus_manage_products_companies_list", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_products_companies_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } } }, "description": "" } } } }, "/v1/plus/manage/products/{id}/companies/{company_id}/": { "get": { "operationId": "v1_plus_manage_products_companies_retrieve", "parameters": [ { "in": "path", "name": "company_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_products_companies_update", "parameters": [ { "in": "path", "name": "company_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_products_companies_partial_update", "parameters": [ { "in": "path", "name": "company_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductCompanyUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductCompanyUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductCompanyUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_products_companies_destroy", "parameters": [ { "in": "path", "name": "company_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/products/{id}/images/": { "get": { "operationId": "v1_plus_manage_products_images_list", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductImageUpdate" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_products_images_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } } }, "description": "" } } } }, "/v1/plus/manage/products/{id}/images/{image_id}/": { "get": { "operationId": "v1_plus_manage_products_images_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "image_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_products_images_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "image_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_products_images_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "image_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductImageUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductImageUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductImageUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductImageUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_products_images_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "image_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/products/{id}/prices/": { "get": { "operationId": "v1_plus_manage_products_prices_list", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } } } }, "description": "" } } }, "post": { "operationId": "v1_plus_manage_products_prices_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } } }, "description": "" } } } }, "/v1/plus/manage/products/{id}/prices/{price_id}/": { "get": { "operationId": "v1_plus_manage_products_prices_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "price_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_products_prices_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "price_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_products_prices_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "price_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductPriceUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductPriceUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusProductPriceUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_plus_manage_products_prices_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "price_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/plus/manage/settings/": { "get": { "operationId": "v1_plus_manage_settings_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusTenantSettings" } } }, "description": "" } } }, "put": { "operationId": "v1_plus_manage_settings_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusTenantSettings" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusTenantSettings" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusTenantSettings" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusTenantSettings" } } }, "description": "" } } }, "patch": { "operationId": "v1_plus_manage_settings_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedPlusTenantSettings" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedPlusTenantSettings" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedPlusTenantSettings" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusTenantSettings" } } }, "description": "" } } } }, "/v1/plus/manage/sync/": { "post": { "operationId": "v1_plus_manage_sync_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusFullSync" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PlusFullSync" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PlusFullSync" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusFullSync" } } }, "description": "" } } } }, "/v1/plus/products/": { "get": { "operationId": "v1_plus_products_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedPlusProductList" } } }, "description": "" } } } }, "/v1/plus/products/{id}/": { "get": { "operationId": "v1_plus_products_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlusProduct" } } }, "description": "" } } } }, "/v1/plus/products/{id}/{company_id}/tariffs/": { "get": { "operationId": "v1_plus_products_tariffs_list", "parameters": [ { "in": "path", "name": "company_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductPriceSeriliazer" } } } }, "description": "" } } } }, "/v1/plus/products/categories/": { "get": { "operationId": "v1_plus_products_categories_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductCategory" } } } }, "description": "" } } } }, "/v1/sales/funnels/": { "get": { "operationId": "v1_sales_funnels_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Funnel" } } } }, "description": "" } } }, "post": { "operationId": "v1_sales_funnels_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Funnel" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Funnel" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Funnel" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Funnel" } } }, "description": "" } } } }, "/v1/sales/funnels/{funnel_id}/": { "get": { "operationId": "v1_sales_funnels_retrieve", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Funnel" } } }, "description": "" } } }, "put": { "operationId": "v1_sales_funnels_update", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Funnel" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Funnel" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Funnel" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Funnel" } } }, "description": "" } } }, "patch": { "operationId": "v1_sales_funnels_partial_update", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedFunnel" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedFunnel" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedFunnel" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Funnel" } } }, "description": "" } } }, "delete": { "operationId": "v1_sales_funnels_destroy", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/sales/funnels/{funnel_id}/stages/": { "get": { "operationId": "v1_sales_funnels_stages_list", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FunnelStage" } } } }, "description": "" } } }, "post": { "operationId": "v1_sales_funnels_stages_create", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/FunnelStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FunnelStage" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelStage" } } }, "description": "" } } } }, "/v1/sales/funnels/{funnel_id}/stages/{id}/": { "get": { "operationId": "v1_sales_funnels_stages_retrieve", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelStage" } } }, "description": "" } } }, "put": { "operationId": "v1_sales_funnels_stages_update", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/FunnelStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FunnelStage" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelStage" } } }, "description": "" } } }, "patch": { "operationId": "v1_sales_funnels_stages_partial_update", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedFunnelStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedFunnelStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedFunnelStage" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelStage" } } }, "description": "" } } }, "delete": { "operationId": "v1_sales_funnels_stages_destroy", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/sales/funnels/{funnel_id}/webhook/": { "post": { "operationId": "v1_sales_funnels_webhook_create", "parameters": [ { "in": "path", "name": "funnel_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/sales/funnels/methods/": { "get": { "operationId": "v1_sales_funnels_methods_list", "parameters": [ { "in": "query", "name": "funnel", "schema": { "type": "integer" } }, { "in": "query", "name": "funnel__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LeadTaskMethod" } } } }, "description": "" } } }, "post": { "operationId": "v1_sales_funnels_methods_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadTaskMethod" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LeadTaskMethod" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LeadTaskMethod" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadTaskMethod" } } }, "description": "" } } } }, "/v1/sales/funnels/triggers/": { "get": { "operationId": "v1_sales_funnels_triggers_list", "parameters": [ { "in": "query", "name": "stages__funnel_id", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FunnelTrigger" } } } }, "description": "" } } }, "post": { "operationId": "v1_sales_funnels_triggers_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } } }, "description": "" } } } }, "/v1/sales/funnels/triggers/{id}/": { "get": { "operationId": "v1_sales_funnels_triggers_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } } }, "description": "" } } }, "put": { "operationId": "v1_sales_funnels_triggers_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } } }, "description": "" } } }, "patch": { "operationId": "v1_sales_funnels_triggers_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedFunnelTrigger" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedFunnelTrigger" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedFunnelTrigger" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FunnelTrigger" } } }, "description": "" } } }, "delete": { "operationId": "v1_sales_funnels_triggers_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/sales/leads/": { "get": { "operationId": "v1_sales_leads_list", "parameters": [ { "in": "query", "name": "client__phone", "schema": { "type": "string" } }, { "in": "query", "name": "client__phone__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "created_at__gt", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "created_at__lte", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "funnel", "schema": { "type": "integer" } }, { "in": "query", "name": "funnel__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "has_no_tasks", "schema": { "type": "boolean" }, "description": "Filter leads without tasks" }, { "in": "query", "name": "has_overdue_tasks", "schema": { "type": "boolean" }, "description": "Filter leads with overdue tasks" }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "manager", "schema": { "type": "number" } }, { "in": "query", "name": "manager__isnull", "schema": { "type": "boolean" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "price", "schema": { "type": "number" } }, { "in": "query", "name": "price__gt", "schema": { "type": "number" } }, { "in": "query", "name": "price__lt", "schema": { "type": "number" } }, { "in": "query", "name": "request", "schema": { "type": "integer" } }, { "in": "query", "name": "request__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "sale", "schema": { "type": "integer" } }, { "in": "query", "name": "sale__isnull", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "source", "schema": { "type": "integer" } }, { "in": "query", "name": "source__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "stage", "schema": { "type": "integer" } }, { "in": "query", "name": "stage__isnull", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedLeadListList" } } }, "description": "" } } }, "post": { "operationId": "v1_sales_leads_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LeadCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LeadCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadCreate" } } }, "description": "" } } } }, "/v1/sales/leads/{lead_id}/": { "get": { "operationId": "v1_sales_leads_retrieve", "parameters": [ { "in": "path", "name": "lead_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadList" } } }, "description": "" } } }, "put": { "operationId": "v1_sales_leads_update", "parameters": [ { "in": "path", "name": "lead_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LeadCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LeadCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadCreate" } } }, "description": "" } } }, "patch": { "operationId": "v1_sales_leads_partial_update", "parameters": [ { "in": "path", "name": "lead_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedLeadCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedLeadCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedLeadCreate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadCreate" } } }, "description": "" } } }, "delete": { "operationId": "v1_sales_leads_destroy", "parameters": [ { "in": "path", "name": "lead_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/sales/leads/{lead_id}/request/": { "post": { "operationId": "v1_sales_leads_request_create", "parameters": [ { "in": "path", "name": "lead_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/sales/leads/bulk_action/": { "post": { "operationId": "v1_sales_leads_bulk_action_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadBulkOperation" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LeadBulkOperation" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LeadBulkOperation" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadBulkOperation" } } }, "description": "" } } } }, "/v1/sales/tasks/": { "get": { "operationId": "v1_sales_tasks_list", "parameters": [ { "in": "query", "name": "client", "schema": { "type": "integer" } }, { "in": "query", "name": "date", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "date__lt", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "finished_at__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "lead", "schema": { "type": "integer" } }, { "in": "query", "name": "lead__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "manager", "schema": { "type": "integer" } }, { "in": "query", "name": "manager__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedLeadTaskList" } } }, "description": "" } } }, "post": { "operationId": "v1_sales_tasks_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } } }, "description": "" } } } }, "/v1/sales/tasks/{task_id}/": { "get": { "operationId": "v1_sales_tasks_retrieve", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadTask" } } }, "description": "" } } }, "put": { "operationId": "v1_sales_tasks_update", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v1_sales_tasks_partial_update", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedLeadUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedLeadUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedLeadUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeadUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v1_sales_tasks_destroy", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/shared/articles/": { "get": { "operationId": "v1_shared_articles_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Article" } } } }, "description": "" } } } }, "/v1/shared/articles/{slug}/": { "get": { "operationId": "v1_shared_articles_retrieve", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ArticleDetail" } } }, "description": "" } } } }, "/v1/shared/auth/": { "post": { "operationId": "v1_shared_auth_create", "description": "Takes a set of user credentials and returns an access and refresh JSON web\ntoken pair to prove the authentication of those credentials.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "description": "" } } } }, "/v1/shared/auth/logout/": { "post": { "operationId": "v1_shared_auth_logout_create", "description": "Takes a token and blacklists it. Must be used with the\n`rest_framework_simplejwt.token_blacklist` app installed.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "description": "" } } } }, "/v1/shared/auth/loyalties/": { "get": { "operationId": "v1_shared_auth_loyalties_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Loyalty" } } } }, "description": "" } } } }, "/v1/shared/auth/password/reset/": { "post": { "operationId": "v1_shared_auth_password_reset_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/shared/auth/password/reset/request/": { "post": { "operationId": "v1_shared_auth_password_reset_request_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/shared/auth/profile/": { "get": { "operationId": "v1_shared_auth_profile_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "description": "" } } }, "put": { "operationId": "v1_shared_auth_profile_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "description": "" } } }, "patch": { "operationId": "v1_shared_auth_profile_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserProfile" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserProfile" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserProfile" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProfile" } } }, "description": "" } } } }, "/v1/shared/auth/profile/bonuses/": { "get": { "operationId": "v1_shared_auth_profile_bonuses_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BonusTransaction" } } } }, "description": "" } } } }, "/v1/shared/auth/profile/grants/": { "post": { "operationId": "v1_shared_auth_profile_grants_create", "tags": [ "v1" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/GrantFormCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GrantFormCreate" } } }, "description": "" } } } }, "/v1/shared/auth/profile/grants/winners/": { "get": { "operationId": "v1_shared_auth_profile_grants_winners_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/GrantForm" } } } }, "description": "" } } } }, "/v1/shared/auth/profile/grants/winners/{id}/": { "get": { "operationId": "v1_shared_auth_profile_grants_winners_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GrantForm" } } }, "description": "" } } } }, "/v1/shared/auth/profile/orders/": { "get": { "operationId": "v1_shared_auth_profile_orders_list", "parameters": [ { "in": "query", "name": "delivery", "schema": { "type": "boolean" } }, { "in": "query", "name": "payment_status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "status__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserOrderList" } } } }, "description": "" } } } }, "/v1/shared/auth/profile/orders/{id}/": { "get": { "operationId": "v1_shared_auth_profile_orders_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserOrderRequest" } } }, "description": "" } } } }, "/v1/shared/auth/profile/orders/{id}/cancel/": { "post": { "operationId": "v1_shared_auth_profile_orders_cancel_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserOrderRequestCancel" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/UserOrderRequestCancel" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/UserOrderRequestCancel" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserOrderRequestCancel" } } }, "description": "" } } } }, "/v1/shared/auth/profile/orders/{id}/groups/": { "get": { "operationId": "v1_shared_auth_profile_orders_groups_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedOrderRequestItems" } } }, "description": "" } } } }, "/v1/shared/auth/profile/orders/{id}/reviews/": { "post": { "operationId": "v1_shared_auth_profile_orders_reviews_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderReview" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderReview" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderReview" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderReview" } } }, "description": "" } } } }, "/v1/shared/auth/profile/orders/{request_id}/create_bonus/": { "post": { "operationId": "v1_shared_auth_profile_orders_create_bonus_create", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/shared/auth/profile/orders/{request_id}/delete_bonus/": { "delete": { "operationId": "v1_shared_auth_profile_orders_delete_bonus_destroy", "parameters": [ { "in": "path", "name": "request_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/shared/auth/profile/orders/stats/": { "get": { "operationId": "v1_shared_auth_profile_orders_stats_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserOrderRequestStats" } } }, "description": "" } } } }, "/v1/shared/auth/profile/password/": { "put": { "operationId": "v1_shared_auth_profile_password_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } } }, "description": "" } } }, "patch": { "operationId": "v1_shared_auth_profile_password_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserPassword" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserPassword" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSharedUserPassword" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserPassword" } } }, "description": "" } } } }, "/v1/shared/auth/profile/saves/": { "get": { "operationId": "v1_shared_auth_profile_saves_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SharedProduct" } } } }, "description": "" } } }, "post": { "operationId": "v1_shared_auth_profile_saves_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProductSave" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedUserProductSave" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedUserProductSave" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProductSave" } } }, "description": "" } } } }, "/v1/shared/auth/profile/sets/": { "get": { "operationId": "v1_shared_auth_profile_sets_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SharedUserProductSet" } } } }, "description": "" } } }, "post": { "operationId": "v1_shared_auth_profile_sets_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProductSet" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedUserProductSet" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedUserProductSet" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProductSet" } } }, "description": "" } } } }, "/v1/shared/auth/profile/sets/{id}/": { "get": { "operationId": "v1_shared_auth_profile_sets_list_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SharedProduct" } } } }, "description": "" } } }, "post": { "operationId": "v1_shared_auth_profile_sets_create_2", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProductSetItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedUserProductSetItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedUserProductSetItem" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedUserProductSetItem" } } }, "description": "" } } }, "delete": { "operationId": "v1_shared_auth_profile_sets_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/shared/auth/refresh/": { "post": { "operationId": "v1_shared_auth_refresh_create", "description": "Takes a refresh type JSON web token and returns an access type JSON web\ntoken if the refresh token is valid.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "description": "" } } } }, "/v1/shared/auth/register/": { "post": { "operationId": "v1_shared_auth_register_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/shared/auth/register/create/": { "post": { "operationId": "v1_shared_auth_register_create_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/shared/auth/register/verify/": { "post": { "operationId": "v1_shared_auth_register_verify_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/shared/bag/": { "post": { "operationId": "v1_shared_bag_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } } }, "description": "" } } } }, "/v1/shared/bag/{id}/create_order/": { "post": { "operationId": "v1_shared_bag_create_order_create", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/shared/bag/{uuid}/": { "get": { "operationId": "v1_shared_bag_retrieve", "parameters": [ { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } } }, "description": "" } } }, "put": { "operationId": "v1_shared_bag_update", "parameters": [ { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } } }, "description": "" } } }, "patch": { "operationId": "v1_shared_bag_partial_update", "parameters": [ { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSharedBagDetail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSharedBagDetail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSharedBagDetail" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagDetail" } } }, "description": "" } } } }, "/v1/shared/bag/{uuid}/products/": { "post": { "operationId": "v1_shared_bag_products_create", "parameters": [ { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } } }, "description": "" } } } }, "/v1/shared/bag/{uuid}/products/{id}/": { "get": { "operationId": "v1_shared_bag_products_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } } }, "description": "" } } }, "put": { "operationId": "v1_shared_bag_products_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } } }, "description": "" } } }, "patch": { "operationId": "v1_shared_bag_products_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSharedBagItem" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSharedBagItem" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSharedBagItem" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SharedBagItem" } } }, "description": "" } } }, "delete": { "operationId": "v1_shared_bag_products_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/shared/categories/": { "get": { "operationId": "v1_shared_categories_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Category" } } } }, "description": "" } } } }, "/v1/shared/events/": { "get": { "operationId": "v1_shared_events_list", "parameters": [ { "in": "query", "name": "upcomming", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Event" } } } }, "description": "" } } } }, "/v1/shared/events/{slug}/": { "get": { "operationId": "v1_shared_events_retrieve", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Event" } } }, "description": "" } } } }, "/v1/shared/events/{slug}/cancel/": { "delete": { "operationId": "v1_shared_events_cancel_destroy", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/shared/events/{slug}/request/": { "post": { "operationId": "v1_shared_events_request_create", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventRequest" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/EventRequest" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/EventRequest" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventRequest" } } }, "description": "" } } } }, "/v1/shared/info/": { "get": { "operationId": "v1_shared_info_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompanyInfo" } } }, "description": "" } } } }, "/v1/shared/periods/": { "get": { "operationId": "v1_shared_periods_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BaseTimePeriod" } } } }, "description": "" } } } }, "/v1/shared/products/": { "get": { "operationId": "v1_shared_products_list", "parameters": [ { "in": "query", "name": "amount", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__gt", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__gte", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__lt", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__lte", "schema": { "type": "integer" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "category__slug", "schema": { "type": "string" } }, { "in": "query", "name": "discount", "schema": { "type": "integer" } }, { "in": "query", "name": "discount__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "discount__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "has_discount", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "price", "schema": { "type": "number" } }, { "in": "query", "name": "price__gt", "schema": { "type": "number" } }, { "in": "query", "name": "price__gte", "schema": { "type": "number" } }, { "in": "query", "name": "price__lt", "schema": { "type": "number" } }, { "in": "query", "name": "price__lte", "schema": { "type": "number" } }, { "in": "query", "name": "recommendation", "schema": { "type": "number" } }, { "in": "query", "name": "saved", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "string", "nullable": true, "enum": [ "product", "service", "set" ] }, "description": "* `set` - set\n* `product` - product\n* `service` - service" }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "unique_id", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedSharedProductList" } } }, "description": "" } } } }, "/v1/shared/products/{slug}/": { "get": { "operationId": "v1_shared_products_retrieve", "parameters": [ { "in": "path", "name": "slug", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/shared/products/all/": { "get": { "operationId": "v1_shared_products_all_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SharedProductGroup" } } } }, "description": "" } } } }, "/v1/shop/sales/": { "get": { "operationId": "v1_shop_sales_list", "parameters": [ { "in": "query", "name": "agent", "schema": { "type": "integer" } }, { "in": "query", "name": "client", "schema": { "type": "integer" } }, { "in": "query", "name": "created_at__date__gte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_at__date__lte", "schema": { "type": "string", "format": "date" } }, { "in": "query", "name": "created_by", "schema": { "type": "integer" } }, { "in": "query", "name": "created_by__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "inventories__counterparty", "schema": { "type": "integer" } }, { "in": "query", "name": "inventories__counterparty__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "payments__type", "schema": { "type": "integer" } }, { "in": "query", "name": "payments__type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedOrderSaleDetailList" } } }, "description": "" } } }, "post": { "operationId": "v1_shop_sales_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSale" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderSale" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderSale" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSale" } } }, "description": "" } } } }, "/v1/shop/sales/{sale_id}/": { "get": { "operationId": "v1_shop_sales_retrieve", "parameters": [ { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSale" } } }, "description": "" } } }, "put": { "operationId": "v1_shop_sales_update", "parameters": [ { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSale" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderSale" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderSale" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSale" } } }, "description": "" } } }, "patch": { "operationId": "v1_shop_sales_partial_update", "parameters": [ { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedOrderSale" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedOrderSale" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedOrderSale" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSale" } } }, "description": "" } } } }, "/v1/shop/sales/{sale_id}/groups/": { "get": { "operationId": "v1_shop_sales_groups_list", "parameters": [ { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderSaleInventoryGroup" } } } }, "description": "" } } } }, "/v1/shop/sales/{sale_id}/inventories/": { "get": { "operationId": "v1_shop_sales_inventories_list_2", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderSaleInventory" } } } }, "description": "" } } } }, "/v1/shop/sales/{sale_id}/inventories/bulk_create/": { "post": { "operationId": "v1_shop_sales_inventories_bulk_create_create", "parameters": [ { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkCreate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkCreate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkCreate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkCreate" } } }, "description": "" } } } }, "/v1/shop/sales/{sale_id}/inventories/bulk_delete/": { "post": { "operationId": "v1_shop_sales_inventories_bulk_delete_create", "parameters": [ { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkDelete" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkDelete" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkDelete" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkDelete" } } }, "description": "" } } } }, "/v1/shop/sales/{sale_id}/inventories/bulk_update/": { "post": { "operationId": "v1_shop_sales_inventories_bulk_update_create", "parameters": [ { "in": "path", "name": "sale_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderSaleInventoryBulkUpdate" } } }, "description": "" } } } }, "/v1/shop/sales/inventories/": { "get": { "operationId": "v1_shop_sales_inventories_list", "parameters": [ { "in": "query", "name": "car__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "disable__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "disable__method", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, { "in": "query", "name": "disabled", "schema": { "type": "boolean" } }, { "in": "query", "name": "exclude_ids", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "filter_key", "schema": { "type": "string" } }, { "in": "query", "name": "free", "schema": { "type": "boolean" } }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "has_sublease", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point", "schema": { "type": "integer" } }, { "in": "query", "name": "rental_point__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "request", "schema": { "type": "number" } }, { "in": "query", "name": "saleable", "schema": { "type": "boolean" } }, { "in": "query", "name": "sold", "schema": { "type": "boolean" }, "description": "Filter inventories by sale status. `true` = sold, `false` = not sold" }, { "in": "query", "name": "state", "schema": { "type": "integer" } }, { "in": "query", "name": "state__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "status", "schema": { "type": "number" } }, { "in": "query", "name": "sublease_user", "schema": { "type": "integer" } }, { "in": "query", "name": "sublease_user__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "sublease_user__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "type", "schema": { "type": "number" } }, { "in": "query", "name": "unique_id", "schema": { "type": "string" } }, { "in": "query", "name": "unique_id__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedInventoryForSaleList" } } }, "description": "" } } } }, "/v1/shop/warehouses/": { "get": { "operationId": "v1_shop_warehouses_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Warehouse" } } } }, "description": "" } } }, "post": { "operationId": "v1_shop_warehouses_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Warehouse" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Warehouse" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Warehouse" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Warehouse" } } }, "description": "" } } } }, "/v1/shop/warehouses/{id}/": { "get": { "operationId": "v1_shop_warehouses_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Warehouse" } } }, "description": "" } } }, "put": { "operationId": "v1_shop_warehouses_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Warehouse" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Warehouse" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Warehouse" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Warehouse" } } }, "description": "" } } }, "patch": { "operationId": "v1_shop_warehouses_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWarehouse" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWarehouse" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWarehouse" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Warehouse" } } }, "description": "" } } }, "delete": { "operationId": "v1_shop_warehouses_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/shop/warehouses/actions/": { "get": { "operationId": "v1_shop_warehouses_actions_list", "parameters": [ { "in": "query", "name": "approved", "schema": { "type": "boolean" } }, { "in": "query", "name": "from_counterparty", "schema": { "type": "integer" } }, { "in": "query", "name": "from_counterparty__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "from_warehouse", "schema": { "type": "integer" } }, { "in": "query", "name": "from_warehouse__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "invoice_datetime__gte", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "invoice_datetime__lt", "schema": { "type": "string", "format": "date-time" } }, { "in": "query", "name": "invoice_id__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "manager", "schema": { "type": "integer" } }, { "in": "query", "name": "manager__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "products__group", "schema": { "type": "integer" } }, { "in": "query", "name": "products__group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "tax_included", "schema": { "type": "boolean" } }, { "in": "query", "name": "to_counterparty", "schema": { "type": "integer" } }, { "in": "query", "name": "to_counterparty__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "to_warehouse", "schema": { "type": "integer" } }, { "in": "query", "name": "to_warehouse__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "type", "schema": { "type": "integer", "enum": [ 0, 1, 2 ] }, "description": "* `0` - CREATE\n* `1` - MOVE\n* `2` - DELETE" }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedProductWarehouseActionList" } } }, "description": "" } } }, "post": { "operationId": "v1_shop_warehouses_actions_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } } }, "description": "" } } } }, "/v1/shop/warehouses/actions/{id}/": { "get": { "operationId": "v1_shop_warehouses_actions_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } } }, "description": "" } } }, "put": { "operationId": "v1_shop_warehouses_actions_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } } }, "description": "" } } }, "patch": { "operationId": "v1_shop_warehouses_actions_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedProductWarehouseAction" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedProductWarehouseAction" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedProductWarehouseAction" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseAction" } } }, "description": "" } } }, "delete": { "operationId": "v1_shop_warehouses_actions_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/shop/warehouses/actions/stats/": { "get": { "operationId": "v1_shop_warehouses_actions_stats_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProductWarehouseActionStats" } } } }, "description": "" } } } }, "/v1/shop/warehouses/inventories/": { "post": { "operationId": "v1_shop_warehouses_inventories_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryWarehouse" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/InventoryWarehouse" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/InventoryWarehouse" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InventoryWarehouse" } } }, "description": "" } } } }, "/v1/shop/warehouses/products/": { "get": { "operationId": "v1_shop_warehouses_products_list", "parameters": [ { "in": "query", "name": "counterparty", "schema": { "type": "integer" } }, { "in": "query", "name": "counterparty__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "from_counterparty", "schema": { "type": "number" } }, { "in": "query", "name": "group", "schema": { "type": "integer" } }, { "in": "query", "name": "group__category", "schema": { "type": "integer" } }, { "in": "query", "name": "group__category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "group__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "warehouse", "schema": { "type": "integer" } }, { "in": "query", "name": "warehouse__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedProductWarehouseDetailList" } } }, "description": "" } } } }, "/v1/shop/warehouses/products/withdraw/": { "post": { "operationId": "v1_shop_warehouses_products_withdraw_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseWithdraw" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ProductWarehouseWithdraw" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ProductWarehouseWithdraw" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductWarehouseWithdraw" } } }, "description": "" } } } }, "/v1/sms/account/": { "get": { "operationId": "v1_sms_account_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBalance" } } }, "description": "" } } } }, "/v1/sms/account/history/": { "get": { "operationId": "v1_sms_account_history_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedSMSBalanceHistoryList" } } }, "description": "" } } } }, "/v1/sms/broadcasts/": { "get": { "operationId": "v1_sms_broadcasts_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedSMSBroadcastList" } } }, "description": "" } } }, "post": { "operationId": "v1_sms_broadcasts_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } } }, "description": "" } } } }, "/v1/sms/broadcasts/{id}/": { "get": { "operationId": "v1_sms_broadcasts_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } } }, "description": "" } } }, "put": { "operationId": "v1_sms_broadcasts_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } } }, "description": "" } } }, "patch": { "operationId": "v1_sms_broadcasts_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSMSBroadcast" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSMSBroadcast" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSMSBroadcast" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcast" } } }, "description": "" } } }, "delete": { "operationId": "v1_sms_broadcasts_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/sms/callback/smsc/": { "post": { "operationId": "v1_sms_callback_smsc_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v1/sms/messages/": { "get": { "operationId": "v1_sms_messages_list", "parameters": [ { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedSMSMessageList" } } }, "description": "" } } } }, "/v1/sms/templates/": { "get": { "operationId": "v1_sms_templates_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedSMSBroadcastTemplateList" } } }, "description": "" } } }, "post": { "operationId": "v1_sms_templates_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } } }, "description": "" } } } }, "/v1/sms/templates/{id}/": { "get": { "operationId": "v1_sms_templates_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } } }, "description": "" } } }, "put": { "operationId": "v1_sms_templates_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } } }, "description": "" } } }, "patch": { "operationId": "v1_sms_templates_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedSMSBroadcastTemplate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedSMSBroadcastTemplate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedSMSBroadcastTemplate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } } }, "description": "" } } }, "delete": { "operationId": "v1_sms_templates_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/tenant/": { "get": { "operationId": "v1_tenant_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TenantAccount" } } } }, "description": "" } } }, "post": { "operationId": "v1_tenant_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantAccount" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantAccount" } } }, "description": "" } } } }, "/v1/tenant/account/": { "get": { "operationId": "v1_tenant_account_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantAccount" } } }, "description": "" } } }, "put": { "operationId": "v1_tenant_account_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantAccount" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantAccount" } } }, "description": "" } } }, "patch": { "operationId": "v1_tenant_account_partial_update", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTenantAccount" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTenantAccount" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTenantAccount" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantAccount" } } }, "description": "" } } } }, "/v1/tenant/authenticate/": { "post": { "operationId": "v1_tenant_authenticate_create", "description": "Takes a set of user credentials and returns an access and refresh JSON web\ntoken pair to prove the authentication of those credentials.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "description": "" } } } }, "/v1/tenant/domains/": { "post": { "operationId": "v1_tenant_domains_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantDomainCheck" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantDomainCheck" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantDomainCheck" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantDomainCheck" } } }, "description": "" } } } }, "/v1/tenant/integrations/": { "get": { "operationId": "v1_tenant_integrations_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/IntegrationConnection" } } } }, "description": "" } } } }, "/v1/tenant/login/": { "post": { "operationId": "v1_tenant_login_create", "description": "Takes a set of user credentials and returns an access and refresh JSON web\ntoken pair to prove the authentication of those credentials.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomTokenObtainPair" } } }, "description": "" } } } }, "/v1/tenant/logout/": { "post": { "operationId": "v1_tenant_logout_create", "description": "Takes a token and blacklists it. Must be used with the\n`rest_framework_simplejwt.token_blacklist` app installed.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenBlacklist" } } }, "description": "" } } } }, "/v1/tenant/refresh/": { "post": { "operationId": "v1_tenant_refresh_create", "description": "Takes a refresh type JSON web token and returns an access type JSON web\ntoken if the refresh token is valid.", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefresh" } } }, "description": "" } } } }, "/v1/tenant/register/": { "post": { "operationId": "v1_tenant_register_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantProfileEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TenantProfileEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TenantProfileEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantProfileEdit" } } }, "description": "" } } } }, "/v1/tenant/register/confirm/": { "post": { "operationId": "v1_tenant_register_confirm_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPConfirm" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPConfirm" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPConfirm" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPConfirm" } } }, "description": "" } } } }, "/v1/tenant/register/init/": { "post": { "operationId": "v1_tenant_register_init_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPInit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPInit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPInit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterUserOTPInit" } } }, "description": "" } } } }, "/v1/website/articles/": { "get": { "operationId": "v1_website_articles_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ManageArticle" } } } }, "description": "" } } }, "post": { "operationId": "v1_website_articles_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageArticle" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ManageArticle" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ManageArticle" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageArticle" } } }, "description": "" } } } }, "/v1/website/articles/{id}/": { "get": { "operationId": "v1_website_articles_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageArticle" } } }, "description": "" } } }, "put": { "operationId": "v1_website_articles_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageArticle" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ManageArticle" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ManageArticle" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageArticle" } } }, "description": "" } } }, "patch": { "operationId": "v1_website_articles_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedManageArticle" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedManageArticle" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedManageArticle" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageArticle" } } }, "description": "" } } }, "delete": { "operationId": "v1_website_articles_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/website/events/": { "get": { "operationId": "v1_website_events_list", "parameters": [ { "in": "query", "name": "upcomming", "schema": { "type": "boolean" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ManageEvent" } } } }, "description": "" } } }, "post": { "operationId": "v1_website_events_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageEvent" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ManageEvent" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ManageEvent" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageEvent" } } }, "description": "" } } } }, "/v1/website/events/{id}/": { "get": { "operationId": "v1_website_events_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageEvent" } } }, "description": "" } } }, "put": { "operationId": "v1_website_events_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageEvent" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ManageEvent" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ManageEvent" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageEvent" } } }, "description": "" } } }, "patch": { "operationId": "v1_website_events_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedManageEvent" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedManageEvent" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedManageEvent" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageEvent" } } }, "description": "" } } }, "delete": { "operationId": "v1_website_events_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/website/events/{id}/requests/": { "get": { "operationId": "v1_website_events_requests_list", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ManageEventRequest" } } } }, "description": "" } } } }, "/v1/website/products/": { "get": { "operationId": "v1_website_products_list", "parameters": [ { "in": "query", "name": "amount", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__gt", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__gte", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__lt", "schema": { "type": "integer" } }, { "in": "query", "name": "amount__lte", "schema": { "type": "integer" } }, { "in": "query", "name": "category", "schema": { "type": "integer" } }, { "in": "query", "name": "category__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "category__slug", "schema": { "type": "string" } }, { "in": "query", "name": "discount", "schema": { "type": "integer" } }, { "in": "query", "name": "discount__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "discount__isnull", "schema": { "type": "boolean" } }, { "in": "query", "name": "has_discount", "schema": { "type": "boolean" } }, { "in": "query", "name": "id", "schema": { "type": "integer" } }, { "in": "query", "name": "id__in", "schema": { "type": "array", "items": { "type": "integer" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "price", "schema": { "type": "number" } }, { "in": "query", "name": "price__gt", "schema": { "type": "number" } }, { "in": "query", "name": "price__gte", "schema": { "type": "number" } }, { "in": "query", "name": "price__lt", "schema": { "type": "number" } }, { "in": "query", "name": "price__lte", "schema": { "type": "number" } }, { "in": "query", "name": "recommendation", "schema": { "type": "number" } }, { "in": "query", "name": "saved", "schema": { "type": "boolean" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } }, { "in": "query", "name": "type", "schema": { "type": "string", "nullable": true, "enum": [ "product", "service", "set" ] }, "description": "* `set` - set\n* `product` - product\n* `service` - service" }, { "in": "query", "name": "type__in", "schema": { "type": "array", "items": { "type": "string" } }, "description": "Несколько значений могут быть разделены запятыми.", "explode": false, "style": "form" }, { "in": "query", "name": "unique_id", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedManageProductList" } } }, "description": "" } } } }, "/v1/website/products/{id}/": { "get": { "operationId": "v1_website_products_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageProduct" } } }, "description": "" } } }, "put": { "operationId": "v1_website_products_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageProduct" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ManageProduct" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ManageProduct" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageProduct" } } }, "description": "" } } }, "patch": { "operationId": "v1_website_products_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedManageProduct" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedManageProduct" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedManageProduct" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManageProduct" } } }, "description": "" } } }, "delete": { "operationId": "v1_website_products_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/workshop/pipelines/": { "get": { "operationId": "v1_workshop_pipelines_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkshopPipeline" } } } }, "description": "" } } }, "post": { "operationId": "v1_workshop_pipelines_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } } }, "description": "" } } } }, "/v1/workshop/pipelines/{id}/": { "get": { "operationId": "v1_workshop_pipelines_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } } }, "description": "" } } }, "put": { "operationId": "v1_workshop_pipelines_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } } }, "description": "" } } }, "patch": { "operationId": "v1_workshop_pipelines_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopPipeline" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopPipeline" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopPipeline" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopPipeline" } } }, "description": "" } } }, "delete": { "operationId": "v1_workshop_pipelines_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/workshop/resources/": { "get": { "operationId": "v1_workshop_resources_list", "parameters": [ { "in": "query", "name": "count", "schema": { "type": "integer" } }, { "in": "query", "name": "name", "schema": { "type": "string" } }, { "name": "ordering", "required": false, "in": "query", "description": "Which field to use when ordering the results.", "schema": { "type": "string" } }, { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "price", "schema": { "type": "number" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedResourceList" } } }, "description": "" } } }, "post": { "operationId": "v1_workshop_resources_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Resource" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Resource" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Resource" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Resource" } } }, "description": "" } } } }, "/v1/workshop/resources/{id}/": { "get": { "operationId": "v1_workshop_resources_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Resource" } } }, "description": "" } } }, "put": { "operationId": "v1_workshop_resources_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Resource" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Resource" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Resource" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Resource" } } }, "description": "" } } }, "patch": { "operationId": "v1_workshop_resources_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedResource" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedResource" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedResource" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Resource" } } }, "description": "" } } }, "delete": { "operationId": "v1_workshop_resources_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/workshop/stages/": { "get": { "operationId": "v1_workshop_stages_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkshopStage" } } } }, "description": "" } } }, "post": { "operationId": "v1_workshop_stages_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } } }, "description": "" } } } }, "/v1/workshop/stages/{stage_id}/": { "put": { "operationId": "v1_workshop_stages_update", "parameters": [ { "in": "path", "name": "stage_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } } }, "description": "" } } }, "patch": { "operationId": "v1_workshop_stages_partial_update", "parameters": [ { "in": "path", "name": "stage_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopUpdateStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopUpdateStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopUpdateStage" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } } }, "description": "" } } }, "delete": { "operationId": "v1_workshop_stages_destroy", "parameters": [ { "in": "path", "name": "stage_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/workshop/tasks/": { "get": { "operationId": "v1_workshop_tasks_retrieve", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "post": { "operationId": "v1_workshop_tasks_create", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v1/workshop/tasks/{task_id}/": { "get": { "operationId": "v1_workshop_tasks_retrieve_2", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "put": { "operationId": "v1_workshop_tasks_update", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "patch": { "operationId": "v1_workshop_tasks_partial_update", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "delete": { "operationId": "v1_workshop_tasks_destroy", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/workshop/tasks/{task_id}/resources/": { "get": { "operationId": "v1_workshop_tasks_resources_list", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkshopResource" } } } }, "description": "" } } }, "post": { "operationId": "v1_workshop_tasks_resources_create", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } } }, "description": "" } } } }, "/v1/workshop/tasks/{task_id}/resources/{id}/": { "get": { "operationId": "v1_workshop_tasks_resources_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopResource" } } }, "description": "" } } }, "put": { "operationId": "v1_workshop_tasks_resources_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } } }, "description": "" } } }, "patch": { "operationId": "v1_workshop_tasks_resources_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopResourceEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopResourceEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopResourceEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopResourceEdit" } } }, "description": "" } } }, "delete": { "operationId": "v1_workshop_tasks_resources_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/workshop/tasks/{task_id}/services/": { "get": { "operationId": "v1_workshop_tasks_services_list", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkshopService" } } } }, "description": "" } } }, "post": { "operationId": "v1_workshop_tasks_services_create", "parameters": [ { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } } }, "description": "" } } } }, "/v1/workshop/tasks/{task_id}/services/{id}/": { "get": { "operationId": "v1_workshop_tasks_services_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopService" } } }, "description": "" } } }, "put": { "operationId": "v1_workshop_tasks_services_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } } }, "description": "" } } }, "patch": { "operationId": "v1_workshop_tasks_services_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopServiceEdit" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopServiceEdit" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopServiceEdit" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopServiceEdit" } } }, "description": "" } } }, "delete": { "operationId": "v1_workshop_tasks_services_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "task_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v1/workshop/tasks/stages/": { "get": { "operationId": "v1_workshop_tasks_stages_list", "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WorkshopStage" } } } }, "description": "" } } }, "post": { "operationId": "v1_workshop_tasks_stages_create", "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopStage" } } }, "description": "" } } } }, "/v1/workshop/tasks/stages/{stage_id}/": { "put": { "operationId": "v1_workshop_tasks_stages_update", "parameters": [ { "in": "path", "name": "stage_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } } }, "description": "" } } }, "patch": { "operationId": "v1_workshop_tasks_stages_partial_update", "parameters": [ { "in": "path", "name": "stage_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopUpdateStage" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopUpdateStage" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedWorkshopUpdateStage" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkshopUpdateStage" } } }, "description": "" } } }, "delete": { "operationId": "v1_workshop_tasks_stages_destroy", "parameters": [ { "in": "path", "name": "stage_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v1" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v2/documents/": { "get": { "operationId": "v2_documents_list", "parameters": [ { "name": "page", "required": false, "in": "query", "description": "A page number within the paginated result set.", "schema": { "type": "integer" } }, { "name": "pageSize", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "search", "required": false, "in": "query", "description": "A search term.", "schema": { "type": "string" } } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedDocumentV2List" } } }, "description": "" } } }, "post": { "operationId": "v2_documents_create", "tags": [ "v2" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentV2" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2" } } }, "description": "" } } } }, "/v2/documents/{document_id}/": { "get": { "operationId": "v2_documents_retrieve", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2Detail" } } }, "description": "" } } }, "put": { "operationId": "v2_documents_update", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2Detail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentV2Detail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentV2Detail" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2Detail" } } }, "description": "" } } }, "patch": { "operationId": "v2_documents_partial_update", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedDocumentV2Detail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedDocumentV2Detail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedDocumentV2Detail" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2Detail" } } }, "description": "" } } }, "delete": { "operationId": "v2_documents_destroy", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v2/documents/{document_id}/company/": { "get": { "operationId": "v2_documents_company_retrieve", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentSign" } } }, "description": "" } } } }, "/v2/documents/{document_id}/documents/": { "post": { "operationId": "v2_documents_documents_create", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentFileBase64" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentFileBase64" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentFileBase64" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentFileBase64" } } }, "description": "" } } } }, "/v2/documents/{document_id}/documents/{file_id}/": { "get": { "operationId": "v2_documents_documents_retrieve", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentFileBase64" } } }, "description": "" } } } }, "/v2/documents/{document_id}/documents/refresh/": { "post": { "operationId": "v2_documents_documents_refresh_create", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v2/documents/{document_id}/eds_sign/{sign_id}/": { "post": { "operationId": "v2_documents_eds_sign_create", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "sign_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } } }, "description": "" } } } }, "/v2/documents/{document_id}/manual_sign/": { "post": { "operationId": "v2_documents_manual_sign_create", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2ManualSign" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentV2ManualSign" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentV2ManualSign" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2ManualSign" } } }, "description": "" } } } }, "/v2/documents/{document_id}/signs/": { "post": { "operationId": "v2_documents_signs_create", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } } }, "description": "" } } } }, "/v2/documents/{document_id}/signs/{sign_id}/": { "put": { "operationId": "v2_documents_signs_update", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "sign_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } } }, "description": "" } } }, "patch": { "operationId": "v2_documents_signs_partial_update", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "sign_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedDocumentV2SignUpdate" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedDocumentV2SignUpdate" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedDocumentV2SignUpdate" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2SignUpdate" } } }, "description": "" } } }, "delete": { "operationId": "v2_documents_signs_destroy", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "sign_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } }, "/v2/documents/{document_id}/signs/{sign_id}/sms/": { "post": { "operationId": "v2_documents_signs_sms_create", "parameters": [ { "in": "path", "name": "document_id", "schema": { "type": "integer" }, "required": true }, { "in": "path", "name": "sign_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "201": { "description": "No response body" } } } }, "/v2/documents/{document_uuid}/": { "get": { "operationId": "v2_documents_retrieve_2", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v2/documents/{document_uuid}/documents/{file_id}/": { "get": { "operationId": "v2_documents_documents_retrieve_2", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true }, { "in": "path", "name": "file_id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentFileBase64" } } }, "description": "" } } } }, "/v2/documents/{document_uuid}/eds/": { "post": { "operationId": "v2_documents_eds_create", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentV2EdsSign" } } }, "description": "" } } } }, "/v2/documents/{document_uuid}/egov/": { "get": { "operationId": "v2_documents_egov_retrieve", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v2/documents/{document_uuid}/egov/confirm/": { "get": { "operationId": "v2_documents_egov_confirm_retrieve", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "put": { "operationId": "v2_documents_egov_confirm_update", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } }, "patch": { "operationId": "v2_documents_egov_confirm_partial_update", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "description": "No response body" } } } }, "/v2/documents/{document_uuid}/sign/": { "post": { "operationId": "v2_documents_sign_create", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentClientSign" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentClientSign" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentClientSign" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentClientSign" } } }, "description": "" } } } }, "/v2/documents/{document_uuid}/sign/confirm/": { "post": { "operationId": "v2_documents_sign_confirm_create", "parameters": [ { "in": "path", "name": "document_uuid", "schema": { "type": "string", "format": "uuid" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentClientSignConfirm" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/DocumentClientSignConfirm" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/DocumentClientSignConfirm" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentClientSignConfirm" } } }, "description": "" } } } }, "/v2/documents/templates/": { "get": { "operationId": "v2_documents_templates_list", "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TemplateV2" } } } }, "description": "" } } }, "post": { "operationId": "v2_documents_templates_create", "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } } }, "description": "" } } } }, "/v2/documents/templates/{id}/": { "get": { "operationId": "v2_documents_templates_retrieve", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } } }, "description": "" } } }, "put": { "operationId": "v2_documents_templates_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } } }, "required": true }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } } }, "description": "" } } }, "patch": { "operationId": "v2_documents_templates_partial_update", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTemplateV2Detail" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTemplateV2Detail" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTemplateV2Detail" } } } }, "security": [ { "bearerAuth": [] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TemplateV2Detail" } } }, "description": "" } } }, "delete": { "operationId": "v2_documents_templates_destroy", "parameters": [ { "in": "path", "name": "id", "schema": { "type": "integer" }, "required": true } ], "tags": [ "v2" ], "security": [ { "bearerAuth": [] } ], "responses": { "204": { "description": "No response body" } } } } }, "components": { "schemas": { "ActionFd0Enum": { "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "type": "integer", "description": "* `0` - reservation\n* `1` - issue\n* `2` - receivement\n* `3` - cancel\n* `4` - archive\n* `5` - collect\n* `6` - creation\n* `7` - delivery pickup\n* `8` - delivery issue" }, "Article": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "title": { "type": "string", "maxLength": 5196 }, "body": { "type": "string", "nullable": true }, "slug": { "type": "string", "nullable": true, "maxLength": 5196, "pattern": "^[-a-zA-Z0-9_]+$" }, "image": { "type": "string", "format": "uri" }, "outer_url": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "extra": {} }, "required": [ "id", "image", "title" ] }, "ArticleDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "title": { "type": "string", "maxLength": 5196 }, "body": { "type": "string", "nullable": true }, "slug": { "type": "string", "nullable": true, "maxLength": 5196, "pattern": "^[-a-zA-Z0-9_]+$" }, "image": { "type": "string", "format": "uri" }, "outer_url": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "expire_date": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "id", "image", "title" ] }, "AttractionMethod": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "tenant": { "type": "integer" } }, "required": [ "created_at", "id", "name", "updated_at" ] }, "BaseClient": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type433Enum" } ], "minimum": 0, "maximum": 2147483647 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "agreement_id": { "type": "string", "readOnly": true, "nullable": true }, "signed": { "type": "boolean" }, "sign_date": { "type": "string", "format": "date", "nullable": true }, "sign_expires": { "type": "string", "format": "date", "nullable": true }, "phone": { "type": "string", "maxLength": 32 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "legal_type": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/LegalTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "extra": {} }, "required": [ "agreement_id", "id", "name", "phone" ] }, "BaseInventory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true } }, "required": [ "id", "name" ] }, "BaseInventoryGroup": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 512 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "deleted": { "type": "boolean" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "category": { "type": "integer", "nullable": true }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_count": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_type": { "$ref": "#/components/schemas/UnitTypeEnum" }, "unit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "image": { "type": "string", "format": "uri", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "barcode": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "filters": { "type": "array", "items": { "type": "string", "maxLength": 32 }, "nullable": true }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "published": { "type": "boolean" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true } }, "required": [ "created_at", "id", "updated_at" ] }, "BaseInventoryMaintenance": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "state": { "type": "integer", "nullable": true }, "interval": { "type": "string", "nullable": true }, "inventory": { "type": "integer" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type5b9Enum" } ], "minimum": -32768, "maximum": 32767 }, "period_type": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/PeriodTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "maintenance_date": { "type": "string", "format": "date-time", "nullable": true }, "distance_threshold": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "time_threshold": { "type": "string", "nullable": true }, "responsible": { "type": "integer" }, "total_distance": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "distance": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "comment": { "type": "string", "readOnly": true, "nullable": true }, "fact_maintenance_date": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_total_distance": { "type": "integer", "readOnly": true, "nullable": true } }, "required": [ "comment", "end_total_distance", "fact_maintenance_date", "id", "inventory", "name", "responsible", "type" ] }, "BaseInventoryTarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "time_period": { "type": "integer", "nullable": true } }, "required": [ "id" ] }, "BaseInventoryTarifUpdate": { "type": "object", "properties": { "id": { "type": "integer" }, "weekdays": { "type": "array", "items": { "type": "integer" } }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "order": { "type": "integer" }, "name": { "type": "string" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "time_period": { "type": "integer", "nullable": true } }, "required": [ "name", "price" ] }, "BaseOrderRequest": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" } ], "minimum": 0, "maximum": 32767 }, "rent_start": { "type": "string", "format": "date-time" }, "rent_fact_start": { "type": "string", "format": "date-time", "nullable": true }, "rent_end": { "type": "string", "format": "date-time" }, "rent_fact_end": { "type": "string", "format": "date-time", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_inventory": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_inventory_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_service_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "payment_status": { "allOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "time_exceed": { "type": "boolean" }, "penalty_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "status_color": { "type": "string", "readOnly": true }, "rental_point": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "deleted": { "type": "boolean" }, "plus_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "extra": {} }, "required": [ "created_at", "id", "rent_end", "rent_start", "status_color", "updated_at" ] }, "BaseTimePeriod": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string" }, "time": { "type": "string" }, "weekdays": { "type": "array", "items": { "type": "integer", "maximum": 6, "minimum": 0 } }, "deleted": { "type": "boolean" } }, "required": [ "id", "time" ] }, "BaseTransaction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "method": { "allOf": [ { "$ref": "#/components/schemas/CategoryEnum" } ], "minimum": -32768, "maximum": 32767 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "type": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "nullable": true }, "account": { "type": "integer", "nullable": true }, "category": { "type": "integer", "nullable": true }, "extra": { "nullable": true }, "comment": { "type": "string", "nullable": true } }, "required": [ "created_at", "id" ] }, "BinotelCall": { "type": "object", "properties": { "internal_number": { "type": "string", "maxLength": 10 }, "external_number": { "type": "string", "maxLength": 30 } }, "required": [ "external_number", "internal_number" ] }, "BinotelRecording": { "type": "object", "properties": { "call_id": { "type": "string", "maxLength": 100 }, "param_name": { "allOf": [ { "$ref": "#/components/schemas/ParamNameEnum" } ], "default": "generalCallID" } }, "required": [ "call_id" ] }, "BlacklistCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "photo": { "type": "string", "format": "uri", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "iin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "bin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "extra": {}, "client_id": { "type": "integer", "writeOnly": true, "nullable": true } }, "required": [ "id", "name" ] }, "BlacklistDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "photo": { "type": "string", "format": "uri", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "iin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "bin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "extra": {}, "disabled": { "type": "boolean" }, "disabled_at": { "type": "string", "format": "date-time", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "created_at", "id", "name" ] }, "BlacklistDisable": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "disabled": { "type": "boolean" }, "disabled_at": { "type": "string", "format": "date-time", "nullable": true } }, "required": [ "id" ] }, "BlacklistIdentity": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "canonical_name": { "type": "string", "maxLength": 255 }, "canonical_iin": { "type": "string", "nullable": true, "maxLength": 12 }, "canonical_bin": { "type": "string", "nullable": true, "maxLength": 12 }, "canonical_phone": { "type": "string", "nullable": true, "maxLength": 32 }, "reports_count": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "needs_review": { "type": "boolean" }, "records": { "type": "array", "items": { "$ref": "#/components/schemas/BlacklistIdentityRecord" }, "readOnly": true } }, "required": [ "canonical_name", "id", "records" ] }, "BlacklistIdentityRecord": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "company_name": { "type": "string", "readOnly": true }, "company_type": { "type": "string", "readOnly": true }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "added_at": { "type": "string", "format": "date-time", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "iin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "bin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "photo": { "type": "string", "format": "uri", "nullable": true } }, "required": [ "added_at", "company_name", "company_type", "id", "name" ] }, "BlacklistList": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "added_at": { "type": "string", "format": "date-time", "readOnly": true }, "disabled": { "type": "boolean" }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "photo": { "type": "string", "format": "uri", "nullable": true }, "iin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "bin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "identity": { "type": "integer", "nullable": true } }, "required": [ "added_at", "id", "name" ] }, "BlacklistMerge": { "type": "object", "properties": { "primary_id": { "type": "integer" }, "secondary_id": { "type": "integer" } }, "required": [ "primary_id", "secondary_id" ] }, "BlankEnum": { "enum": [ "" ] }, "BonusTransaction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "bonus": { "type": "integer", "readOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "request": { "type": "integer", "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeC9cEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "request_status": { "type": "integer", "readOnly": true } }, "required": [ "bonus", "created_at", "created_by", "id", "request_status" ] }, "CachedFilter": { "type": "object", "properties": { "key": { "type": "string" }, "filter": {} }, "required": [ "filter", "key" ] }, "CarInventory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCar" } ], "readOnly": true } }, "required": [ "car", "id", "name" ] }, "Category": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "icon": { "type": "string", "format": "uri", "nullable": true }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "deleted": { "type": "boolean" }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "extra": {}, "tenant": { "type": "integer" }, "parent": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "name", "updated_at" ] }, "CategoryEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - CREDIT\n* `1` - DEBIT" }, "ChatTypeEnum": { "enum": [ "whatsapp", "whatsgroup", "viber", "instagram", "telegram", "telegroup", "vk", "avito" ], "type": "string", "description": "* `whatsapp` - whatsapp\n* `whatsgroup` - whatsgroup\n* `viber` - viber\n* `instagram` - instagram\n* `telegram` - telegram\n* `telegroup` - telegroup\n* `vk` - vk\n* `avito` - avito" }, "Client": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "ticks": { "type": "array", "items": { "$ref": "#/components/schemas/ClientTickRelation" }, "readOnly": true }, "bonus": { "allOf": [ { "$ref": "#/components/schemas/ClientBonus" } ], "readOnly": true }, "orders_count": { "type": "integer", "readOnly": true }, "orders_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_debt_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "overdue_rentals_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "transfer_count": { "type": "integer", "readOnly": true }, "transfer_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "last_rent_date": { "type": "string", "format": "date-time", "readOnly": true }, "total_time": { "type": "string", "readOnly": true }, "iin": { "type": "string", "readOnly": true }, "bin": { "type": "string", "readOnly": true }, "legal": { "allOf": [ { "$ref": "#/components/schemas/PassportLegal" } ], "writeOnly": true, "nullable": true }, "individual": { "allOf": [ { "$ref": "#/components/schemas/PassportIndividual" } ], "writeOnly": true, "nullable": true }, "balance": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "name": { "type": "string", "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type433Enum" } ], "minimum": 0, "maximum": 2147483647 }, "legal_type": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/LegalTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "gender": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/GenderEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "phone": { "type": "string", "maxLength": 32 }, "deposit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "agreement_id": { "type": "string", "readOnly": true, "nullable": true }, "signed": { "type": "boolean" }, "sign_date": { "type": "string", "format": "date", "nullable": true }, "sign_expires": { "type": "string", "format": "date", "nullable": true }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "deleted": { "type": "boolean" }, "tenant": { "type": "integer" }, "legal_passport": { "type": "integer", "nullable": true }, "individual_passport": { "type": "integer", "nullable": true }, "attraction": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "user": { "type": "integer", "nullable": true } }, "required": [ "agreement_id", "balance", "bin", "bonus", "created_at", "id", "iin", "last_rent_date", "name", "orders_amount", "orders_count", "orders_debt_amount", "orders_paid_amount", "overdue_rentals_amount", "phone", "ticks", "total_time", "transfer_amount", "transfer_count", "updated_at", "uuid" ] }, "ClientBonus": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "created_at", "id" ] }, "ClientEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "ticks": { "type": "array", "items": { "type": "integer", "writeOnly": true }, "writeOnly": true }, "bonus": { "allOf": [ { "$ref": "#/components/schemas/ClientBonus" } ], "readOnly": true }, "orders_count": { "type": "integer", "readOnly": true }, "orders_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_debt_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "overdue_rentals_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "transfer_count": { "type": "integer", "readOnly": true }, "transfer_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "last_rent_date": { "type": "string", "format": "date-time", "readOnly": true }, "total_time": { "type": "string", "readOnly": true }, "iin": { "type": "string", "readOnly": true }, "bin": { "type": "string", "readOnly": true }, "legal": { "allOf": [ { "$ref": "#/components/schemas/PassportLegal" } ], "writeOnly": true, "nullable": true }, "individual": { "allOf": [ { "$ref": "#/components/schemas/PassportIndividual" } ], "writeOnly": true, "nullable": true }, "balance": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "name": { "type": "string", "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type433Enum" } ], "minimum": 0, "maximum": 2147483647 }, "legal_type": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/LegalTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "gender": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/GenderEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "phone": { "type": "string", "maxLength": 32 }, "deposit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "agreement_id": { "type": "string", "readOnly": true, "nullable": true }, "signed": { "type": "boolean" }, "sign_date": { "type": "string", "format": "date", "nullable": true }, "sign_expires": { "type": "string", "format": "date", "nullable": true }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "deleted": { "type": "boolean" }, "tenant": { "type": "integer" }, "legal_passport": { "type": "integer", "nullable": true }, "individual_passport": { "type": "integer", "nullable": true }, "attraction": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "user": { "type": "integer", "nullable": true } }, "required": [ "agreement_id", "balance", "bin", "bonus", "created_at", "id", "iin", "last_rent_date", "name", "orders_amount", "orders_count", "orders_debt_amount", "orders_paid_amount", "overdue_rentals_amount", "phone", "total_time", "transfer_amount", "transfer_count", "updated_at", "uuid" ] }, "ClientGeneral": { "type": "object", "properties": { "count": { "type": "integer" }, "avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "multiple": { "type": "integer" }, "overdue_count": { "type": "integer" }, "overdue_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } } }, "ClientPassportIndividual": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "iin": { "type": "string", "nullable": true, "maxLength": 14, "minLength": 12 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "document_number": { "type": "string", "nullable": true, "maxLength": 255 }, "issuer_manual": { "type": "string", "nullable": true, "maxLength": 255 }, "issue_date": { "type": "string", "format": "date", "nullable": true }, "issue_date_end": { "type": "string", "format": "date", "nullable": true }, "birth_date": { "type": "string", "format": "date", "nullable": true }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "created_at", "id", "updated_at" ] }, "ClientPassportLegal": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "bin": { "type": "string", "nullable": true, "maxLength": 12, "minLength": 12 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "director": { "type": "string", "nullable": true, "maxLength": 255 }, "iban": { "type": "string", "nullable": true, "maxLength": 25 }, "bik": { "type": "string", "nullable": true, "maxLength": 8 }, "bank": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "created_at", "id", "updated_at" ] }, "ClientTick": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "code": { "type": "string", "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$", "maxLength": 9 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "blacklist": { "type": "boolean" }, "request_count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "request_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "debt_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "tenant": { "type": "integer" } }, "required": [ "created_at", "id", "name", "updated_at" ] }, "ClientTickRelation": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tick": { "type": "integer" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "created_at", "id", "tick" ] }, "CommandEnum": { "enum": [ "check", "pay" ], "type": "string", "description": "* `check` - check\n* `pay` - pay" }, "CommentAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "body": { "type": "string" }, "user": { "type": "integer", "readOnly": true, "nullable": true }, "context": { "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } }, "required": [ "body", "content_type", "created_at", "id", "object_id", "updated_at", "user" ] }, "CompanyCart": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyCartItem" }, "readOnly": true }, "company_name": { "type": "string", "readOnly": true }, "company_address": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 255 }, "status": { "readOnly": true, "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Status26aEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "payment_type": { "$ref": "#/components/schemas/PaymentTypeEnum" }, "payment_status": { "allOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" } ], "readOnly": true }, "payment_invoice_url": { "type": "string", "format": "uri", "readOnly": true, "nullable": true }, "bonus": { "type": "boolean" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "fact_start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "fact_end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "outer_id": { "type": "integer", "readOnly": true, "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 2048 }, "user": { "type": "integer", "readOnly": true, "nullable": true }, "tenant": { "type": "integer", "nullable": true }, "company": { "type": "integer", "nullable": true } }, "required": [ "company_address", "company_name", "created_at", "fact_end_at", "fact_start_at", "id", "items", "outer_id", "payment_invoice_url", "payment_status", "price", "status", "updated_at", "user" ] }, "CompanyCartItem": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "product_name": { "type": "string", "readOnly": true }, "quantity": { "type": "integer", "minimum": 1 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "cart": { "type": "integer", "readOnly": true }, "product": { "type": "integer" }, "product_company": { "type": "integer", "nullable": true }, "product_price": { "type": "integer", "nullable": true } }, "required": [ "cart", "created_at", "id", "price", "product", "product_name", "quantity", "updated_at" ] }, "CompanyCartItemDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "product": { "allOf": [ { "$ref": "#/components/schemas/PlusProductInfo" } ], "readOnly": true }, "product_company": { "allOf": [ { "$ref": "#/components/schemas/PlusProductCompanyInfo" } ], "readOnly": true }, "product_price": { "allOf": [ { "$ref": "#/components/schemas/PlusProductPriceSeriliazer" } ], "readOnly": true }, "prices": { "allOf": [ { "$ref": "#/components/schemas/PlusProductPriceSeriliazer" } ], "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "quantity": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "cart": { "type": "integer", "readOnly": true } }, "required": [ "cart", "created_at", "id", "price", "prices", "product", "product_company", "product_price", "updated_at" ] }, "CompanyInfo": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 255 }, "address": { "type": "string", "maxLength": 255 }, "logo": { "type": "string", "format": "uri", "nullable": true }, "country": { "$ref": "#/components/schemas/CountryEnum" } }, "required": [ "name" ] }, "ConditionEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - PERCENT\n* `1` - FIXED\n* `2` - SPLIT" }, "Contact": { "type": "object", "description": "Base serializer class.", "properties": { "name": { "type": "string" }, "avatarUri": { "type": "string", "format": "uri" }, "username": { "type": "string" }, "phone": { "type": "string" }, "quotedMessage": {}, "sentFromApp": { "type": "boolean" } } }, "ContentTypeEnum": { "enum": [ "client", "orderrequest" ], "type": "string", "description": "* `client` - client\n* `orderrequest` - orderrequest" }, "ContentTypePermission": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "app_label": { "type": "string", "maxLength": 100 }, "name": { "type": "string", "readOnly": true }, "type": { "type": "string", "readOnly": true }, "permissions": { "type": "array", "items": { "$ref": "#/components/schemas/Permission" } }, "model": { "type": "string", "title": "Имя класса модели", "maxLength": 100 } }, "required": [ "app_label", "id", "model", "name", "permissions", "type" ] }, "Counterparty": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "access": { "type": "array", "items": { "type": "integer" }, "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "side": { "allOf": [ { "$ref": "#/components/schemas/SideEnum" } ], "minimum": -32768, "maximum": 32767 }, "source": { "allOf": [ { "$ref": "#/components/schemas/CounterpartySourceEnum" } ], "minimum": -32768, "maximum": 32767 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type6ecEnum" } ], "minimum": -32768, "maximum": 32767 }, "category": { "allOf": [ { "$ref": "#/components/schemas/CategoryEnum" } ], "minimum": -32768, "maximum": 32767 }, "iin": { "type": "string", "nullable": true, "maxLength": 12, "minLength": 12 }, "bin": { "type": "string", "nullable": true, "maxLength": 12, "minLength": 12 }, "iban": { "type": "string", "nullable": true, "maxLength": 25 }, "bank": { "type": "string", "nullable": true, "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "owner": { "type": "string", "nullable": true, "maxLength": 255 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "extra": {}, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" } }, "required": [ "id", "name" ] }, "CounterpartySourceEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - shop\n* `1` - expense" }, "CountryEnum": { "enum": [ "KZ", "UAE" ], "type": "string", "description": "* `KZ` - Kazakhstan\n* `UAE` - United Arab Emirates" }, "CrossTokenLogin": { "type": "object", "properties": { "token": { "type": "string", "format": "uuid" } }, "required": [ "token" ] }, "CurrencyEnum": { "enum": [ "KZT", "USD", "RUB", "EUR", "UZS", "KGS", "AED", "SAR" ], "type": "string", "description": "* `KZT` - KZT\n* `USD` - USD\n* `RUB` - RUB\n* `EUR` - EUR\n* `UZS` - UZS\n* `KGS` - KGS\n* `AED` - AED\n* `SAR` - SAR" }, "CustomField": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "key": { "$ref": "#/components/schemas/CustomFieldKeyEnum" }, "name": { "type": "string", "maxLength": 255 }, "label": { "type": "string", "maxLength": 255 }, "placeholder": { "type": "string", "nullable": true, "maxLength": 255 }, "required": { "type": "boolean" }, "table": { "type": "boolean" }, "filter": { "type": "boolean" }, "type": { "$ref": "#/components/schemas/CustomFieldTypeEnum" }, "options": {} }, "required": [ "id", "key", "label", "name", "type" ] }, "CustomFieldKeyEnum": { "enum": [ "client", "service", "inventory", "inventory_car", "inventory_scooter", "inventory_motorcycle", "inventory_set", "inventory_group", "rental_point", "category", "order", "order_inventory", "order_service", "funnel_lead", "workshop", "document", "template" ], "type": "string", "description": "* `client` - Client\n* `service` - Service\n* `inventory` - Inventory\n* `inventory_car` - Inventory Car\n* `inventory_scooter` - Inventory Scooter\n* `inventory_motorcycle` - Inventory Motorcycle\n* `inventory_set` - Inventory Set\n* `inventory_group` - Inventory Group\n* `rental_point` - Rental Point\n* `category` - Category\n* `order` - Order\n* `order_inventory` - Order Inventory\n* `order_service` - Order Service\n* `funnel_lead` - Funnel Lead\n* `workshop` - Workshop\n* `document` - Document\n* `template` - Template" }, "CustomFieldList": { "type": "object", "properties": { "name": { "type": "string" }, "label": { "type": "string", "default": "" }, "placeholder": { "type": "string", "default": "" }, "required": { "type": "boolean", "default": false }, "table": { "type": "boolean", "default": false }, "filter": { "type": "boolean", "default": false }, "type": { "allOf": [ { "$ref": "#/components/schemas/CustomFieldListTypeEnum" } ], "default": "string" }, "options": { "type": "array", "items": { "type": "string" } } }, "required": [ "name" ] }, "CustomFieldListTypeEnum": { "enum": [ "string", "html", "integer", "decimal", "boolean", "date", "datetime", "color", "client", "inventory", "product", "set" ], "type": "string", "description": "* `string` - string\n* `html` - html\n* `integer` - integer\n* `decimal` - decimal\n* `boolean` - boolean\n* `date` - date\n* `datetime` - datetime\n* `color` - color\n* `client` - client\n* `inventory` - inventory\n* `product` - product\n* `set` - set" }, "CustomFieldTypeEnum": { "enum": [ "string", "html", "integer", "decimal", "boolean", "date", "datetime", "color", "client", "inventory", "inventory_group", "inventory_set", "service", "workshop", "document", "template" ], "type": "string", "description": "* `string` - String\n* `html` - Html\n* `integer` - Integer\n* `decimal` - Decimal\n* `boolean` - Boolean\n* `date` - Date\n* `datetime` - Datetime\n* `color` - Color\n* `client` - Client\n* `inventory` - Inventory\n* `inventory_group` - Inventory Group\n* `inventory_set` - Inventory Set\n* `service` - Service\n* `workshop` - Workshop\n* `document` - Document\n* `template` - Template" }, "CustomFieldUpdate": { "type": "object", "properties": { "inventory_group": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "inventory_set": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "inventory": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "service": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "client": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "client_document": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "rental_point": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "order": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "order_inventory": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "order_service": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "funnel_lead": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "category": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } } } }, "CustomTokenObtainPair": { "type": "object", "properties": { "username": { "type": "string", "writeOnly": true }, "password": { "type": "string", "writeOnly": true } }, "required": [ "password", "username" ] }, "DaysEnum": { "enum": [ 30, 180, 365 ], "type": "integer", "description": "* `30` - 30 Дней\n* `180` - 180 Дней\n* `365` - 365 Дней" }, "DeliveryStatusEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - PENDING\n* `1` - IN_PROGRESS\n* `2` - DONE\n* `3` - CANCEL" }, "DeliveryTypeEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - DELIVERY\n* `1` - PICK_UP" }, "DestinationEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - REQUEST\n* `1` - INVENTORY\n* `2` - SERVICE\n* `3` - DELIVERY" }, "DetailOrderRequestService": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "service": { "$ref": "#/components/schemas/Service" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "info": { "type": "string", "nullable": true }, "extra": {}, "tenant": { "type": "integer" }, "request": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "request_inventory": { "type": "integer", "nullable": true }, "worker": { "type": "integer", "nullable": true }, "tarif": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "service", "updated_at" ] }, "Device": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 128 }, "uniqueid": { "type": "string", "maxLength": 128 }, "status": { "type": "string", "nullable": true, "maxLength": 8 }, "disabled": { "type": "boolean" }, "lastupdate": { "type": "string", "format": "date-time", "nullable": true }, "position": { "type": "string", "readOnly": true }, "phone": { "type": "string", "nullable": true, "maxLength": 128 }, "model": { "type": "string", "nullable": true, "maxLength": 128 }, "contact": { "type": "string", "nullable": true, "maxLength": 512 }, "category": { "type": "string", "nullable": true, "maxLength": 128 }, "attributes": { "type": "string", "nullable": true, "maxLength": 4000 }, "inventory": { "type": "string", "readOnly": true } }, "required": [ "id", "inventory", "name", "position", "uniqueid" ] }, "DeviceTypeEnum": { "enum": [ "ios", "android", "web" ], "type": "string", "description": "* `ios` - iOS\n* `android` - Android\n* `web` - Web" }, "DeviceUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 128 }, "uniqueid": { "type": "string", "maxLength": 128 }, "inventory_id": { "type": "integer", "writeOnly": true } }, "required": [ "id", "inventory_id", "name", "uniqueid" ] }, "DisableBulk": { "type": "object", "properties": { "ids": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "group_ids": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "inventory_ids": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "service_ids": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "set_ids": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "method": { "$ref": "#/components/schemas/Method5b3Enum" }, "comment": { "type": "string", "default": "", "maxLength": 512 }, "extra": { "nullable": true }, "disable": { "type": "boolean", "default": true } }, "required": [ "method" ] }, "DisableList": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "method": { "allOf": [ { "$ref": "#/components/schemas/Method5b3Enum" } ], "minimum": -32768, "maximum": 32767 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "nullable": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "group": { "allOf": [ { "$ref": "#/components/schemas/BaseInventoryGroup" } ], "readOnly": true }, "service": { "allOf": [ { "$ref": "#/components/schemas/Service" } ], "readOnly": true }, "set": { "allOf": [ { "$ref": "#/components/schemas/InventorySetInfo" } ], "readOnly": true }, "extra": {} }, "required": [ "created_at", "group", "id", "inventory", "service", "set" ] }, "DisabledEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, "Discount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "discount": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "start_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Начало Акции" }, "end_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Конец Акции" }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeCf7Enum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "discount_type": { "allOf": [ { "$ref": "#/components/schemas/DiscountTypeEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "promocode": { "type": "string", "nullable": true, "maxLength": 255 }, "usage_limit": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "extra": {}, "active": { "type": "boolean" }, "deleted": { "type": "boolean" }, "tenant": { "type": "integer" }, "created_by": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "name", "updated_at" ] }, "DiscountTypeEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - Процент\n* `1` - Сумма" }, "DiscountUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "discount": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "discount_type": { "allOf": [ { "$ref": "#/components/schemas/DiscountTypeEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeCf7Enum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "extra": {}, "active": { "type": "boolean" }, "start_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Начало Акции" }, "end_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Конец Акции" }, "usage_limit": { "type": "integer", "maximum": 2147483647, "minimum": 0 } }, "required": [ "id", "name" ] }, "DocumentClientSign": { "type": "object", "properties": { "confirm_id": { "type": "string", "readOnly": true } }, "required": [ "confirm_id" ] }, "DocumentClientSignConfirm": { "type": "object", "properties": { "confirm_id": { "type": "string" }, "code": { "type": "string" } }, "required": [ "code", "confirm_id" ] }, "DocumentFile": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "file": { "type": "string", "format": "uri" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type61eEnum" } ], "minimum": 0, "maximum": 32767 }, "extra": {} }, "required": [ "file", "id" ] }, "DocumentFileBase64": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "file": { "type": "string", "format": "uri", "readOnly": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type61eEnum" } ], "minimum": 0, "maximum": 32767 }, "base64": { "type": "string", "readOnly": true }, "extra": { "readOnly": true } }, "required": [ "base64", "extra", "file", "id" ] }, "DocumentSign": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "method": { "allOf": [ { "$ref": "#/components/schemas/Method7b1Enum" } ], "minimum": 0, "maximum": 32767 }, "method_allowed": { "type": "array", "items": { "type": "integer", "maximum": 32767, "minimum": 0 } }, "signer": { "allOf": [ { "$ref": "#/components/schemas/Signer" } ], "readOnly": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/StatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "stages": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentSignStage" }, "readOnly": true } }, "required": [ "created_at", "id", "signer", "stages", "updated_at", "uuid" ] }, "DocumentSignStage": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "status_from": { "allOf": [ { "$ref": "#/components/schemas/StatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "status_to": { "allOf": [ { "$ref": "#/components/schemas/StatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "meta": {} }, "required": [ "created_at", "id", "status_from", "status_to" ] }, "DocumentV2": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "name": { "type": "string" }, "source": { "allOf": [ { "$ref": "#/components/schemas/Source3eeEnum" } ], "default": 0 }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "template": { "type": "integer", "nullable": true }, "type": { "$ref": "#/components/schemas/TypeBe1Enum" }, "signed": { "type": "boolean", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "content_type": { "type": "string", "nullable": true }, "object_id": { "type": "integer", "nullable": true }, "regenerate": { "type": "boolean", "default": false }, "resign": { "type": "boolean", "default": false }, "file": { "type": "string", "format": "uri", "writeOnly": true }, "files": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentFile" }, "readOnly": true }, "signs": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentSign" }, "readOnly": true } }, "required": [ "created_at", "created_by", "files", "id", "signed", "signs", "updated_at", "uuid" ] }, "DocumentV2Detail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "name": { "type": "string" }, "source": { "allOf": [ { "$ref": "#/components/schemas/Source3eeEnum" } ], "default": 0 }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "template": { "type": "integer", "nullable": true }, "type": { "$ref": "#/components/schemas/TypeBe1Enum" }, "signed": { "type": "boolean", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "content_type": { "type": "string", "nullable": true }, "object_id": { "type": "integer", "nullable": true }, "regenerate": { "type": "boolean", "default": false }, "resign": { "type": "boolean", "default": false }, "file": { "type": "string", "format": "uri", "writeOnly": true }, "files": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentFile" }, "readOnly": true }, "signs": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentSign" }, "readOnly": true }, "content": { "type": "string", "nullable": true }, "meta": { "readOnly": true } }, "required": [ "created_at", "created_by", "files", "id", "meta", "signed", "signs", "updated_at", "uuid" ] }, "DocumentV2EdsSign": { "type": "object", "properties": { "cms": { "type": "string", "writeOnly": true } }, "required": [ "cms" ] }, "DocumentV2ManualSign": { "type": "object", "properties": { "client": { "type": "integer", "writeOnly": true } }, "required": [ "client" ] }, "DocumentV2SignUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client": { "type": "integer", "writeOnly": true }, "method_allowed": { "type": "array", "items": { "type": "integer", "maximum": 32767, "minimum": 0 } }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "method": { "allOf": [ { "$ref": "#/components/schemas/Method7b1Enum" } ], "readOnly": true }, "signer": { "allOf": [ { "$ref": "#/components/schemas/Signer" } ], "readOnly": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/StatusToEnum" } ], "readOnly": true } }, "required": [ "client", "id", "method", "signer", "status", "uuid" ] }, "Event": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "residents": { "type": "array", "items": { "$ref": "#/components/schemas/EventResident" } }, "registered": { "type": "boolean", "readOnly": true, "default": false }, "form_access": { "type": "boolean", "readOnly": true, "default": false }, "form_access_date": { "type": "string", "format": "date-time", "readOnly": true }, "user_registered": { "type": "integer", "default": 0 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "title": { "type": "string", "maxLength": 255 }, "slug": { "type": "string", "maxLength": 5196, "pattern": "^[-a-zA-Z0-9_]+$" }, "location_link": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "body": { "type": "string", "nullable": true }, "date": { "type": "string", "format": "date-time" }, "image": { "type": "string", "format": "uri" }, "video": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "location": { "type": "string", "nullable": true, "maxLength": 255 }, "user_limit": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "active": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "created_at", "date", "form_access", "form_access_date", "id", "image", "registered", "residents", "slug", "title", "updated_at" ] }, "EventRequest": { "type": "object", "properties": { "name": { "type": "string" }, "phone": { "type": "string" }, "age": { "type": "string" }, "profession": { "type": "array", "items": { "type": "string" } }, "experience": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "required": [ "age", "experience", "name", "phone" ] }, "EventResident": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "image": { "type": "string", "format": "uri", "nullable": true }, "tenant": { "type": "integer" }, "event": { "type": "integer" } }, "required": [ "created_at", "event", "id", "name", "order", "updated_at" ] }, "FileAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "file": { "type": "string", "format": "uri", "nullable": true }, "extension": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" }, "type": { "type": "string", "nullable": true, "maxLength": 255 } }, "required": [ "content_type", "created_at", "created_by", "extension", "id", "object_id" ] }, "FileAttachmentBulkCreate": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "files": { "type": "array", "items": { "type": "string", "format": "uri" }, "writeOnly": true }, "content_type": { "type": "string" }, "object_id": { "type": "integer" }, "type": { "type": "string", "nullable": true } }, "required": [ "content_type", "files", "object_id" ] }, "ForgotPassword": { "type": "object", "properties": { "email": { "type": "string", "format": "email" } }, "required": [ "email" ] }, "FormatEnum": { "enum": [ "Letter", "Tabloid", "Legal", "Statement", "Executive", "Folio", "A3", "A4", "A5", "B4", "B5", "Custom" ], "type": "string", "description": "* `Letter` - Letter (21,6 x 27,9 см)\n* `Tabloid` - Tabloid (27,9 x 43,2 см)\n* `Legal` - Legal (21,6 x 35,6 см)\n* `Statement` - Statement (14,0 x 21,6 см)\n* `Executive` - Executive (18,4 x 26,7 см)\n* `Folio` - Folio (21,6 x 33,0 см)\n* `A3` - A3 (29,7 x 42,0 см)\n* `A4` - A4 (21,0 x 29,7 см)\n* `A5` - A5 (14,8 x 21,0 см)\n* `B4` - B4 (25,0 x 35,3 см)\n* `B5` - B5 (17,6 x 25,0 см)\n* `Custom` - Другой размер" }, "Funnel": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "stages": { "type": "array", "items": { "type": "integer" }, "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "extra": {}, "created_by": { "type": "integer", "nullable": true }, "users": { "type": "array", "items": { "type": "integer" } } }, "required": [ "created_at", "id", "name", "stages" ] }, "FunnelStage": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "funnel": { "type": "integer", "readOnly": true }, "ordering": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "type": { "allOf": [ { "$ref": "#/components/schemas/FunnelStageTypeEnum" } ], "readOnly": true }, "color": { "type": "string", "maxLength": 7 }, "extra": {}, "users": { "type": "array", "items": { "type": "integer" } } }, "required": [ "created_at", "funnel", "id", "name", "type" ] }, "FunnelStageTypeEnum": { "enum": [ "DEFAULT", "SUCCESS", "CANCEL" ], "type": "string", "description": "* `DEFAULT` - Default\n* `SUCCESS` - Success\n* `CANCEL` - Cancel" }, "FunnelTrigger": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "create_leads": { "type": "boolean", "writeOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "action": { "allOf": [ { "$ref": "#/components/schemas/FunnelTriggerActionEnum" } ], "minimum": -32768, "maximum": 32767 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "message": { "type": "string", "nullable": true }, "message_source": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/MessageSourceEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "task_deadline": { "type": "string", "nullable": true }, "task_description": { "type": "string", "nullable": true }, "order_status": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_source": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/OrderSourceEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "webhook_url": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "webhook_method": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/WebhookMethodEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "slot": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "index": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "tenant": { "type": "integer" }, "task_method": { "type": "integer", "nullable": true }, "funnel": { "type": "integer", "nullable": true }, "stages": { "type": "array", "items": { "type": "integer" } } }, "required": [ "action", "created_at", "id", "stages", "updated_at" ] }, "FunnelTriggerActionEnum": { "enum": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "type": "integer", "description": "* `0` - send message\n* `1` - create task\n* `2` - order status\n* `3` - funnel\n* `4` - request create\n* `5` - request source\n* `6` - document\n* `7` - webhook" }, "GenderEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - мужской\n* `1` - женский" }, "GrantForm": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "user": { "$ref": "#/components/schemas/GrantWinnerProfile" }, "bag": { "type": "string", "format": "uuid", "nullable": true }, "instagram": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "portfolio": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "description": { "type": "string", "maxLength": 5192 }, "file": { "type": "string", "format": "uri", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "created_at", "description", "id", "user" ] }, "GrantFormCreate": { "type": "object", "properties": { "user": { "type": "integer", "nullable": true }, "instagram": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "portfolio": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "description": { "type": "string", "maxLength": 5192 }, "file": { "type": "string", "format": "uri", "nullable": true }, "bag": { "type": "string", "format": "uuid", "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 5192 }, "phone": { "type": "string", "maxLength": 255 }, "full_name": { "type": "string", "maxLength": 255 } }, "required": [ "bag", "description", "file", "full_name", "instagram", "phone", "portfolio" ] }, "GrantWinnerProfile": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true } }, "required": [ "id" ] }, "Group": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string" }, "permissions": { "type": "array", "items": { "type": "integer", "title": "Права" }, "title": "Права" } }, "required": [ "id", "name" ] }, "GroupEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string" }, "permissions": { "type": "array", "items": { "type": "integer" }, "writeOnly": true } }, "required": [ "id", "name" ] }, "ImageAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "thumb": { "type": "string", "format": "uri", "readOnly": true, "nullable": true }, "extension": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" }, "type": { "type": "string", "nullable": true, "maxLength": 255 } }, "required": [ "content_type", "created_at", "created_by", "extension", "id", "object_id", "thumb" ] }, "ImageAttachmentBulkCreate": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "images": { "type": "array", "items": { "type": "string", "format": "uri" }, "writeOnly": true }, "content_type": { "type": "string" }, "object_id": { "type": "integer" }, "type": { "type": "string", "nullable": true } }, "required": [ "content_type", "images", "object_id" ] }, "IndividualClientData": { "type": "object", "properties": { "name": { "type": "string" }, "phone": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "document_number": { "type": "string", "nullable": true }, "issue_date": { "type": "string", "nullable": true }, "issue_date_end": { "type": "string", "nullable": true }, "birth_date": { "type": "string", "nullable": true }, "attraction_method": { "type": "string", "nullable": true }, "iin": { "type": "string", "nullable": true } }, "required": [ "name" ] }, "IndividualClientImport": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/IndividualClientData" } } }, "required": [ "data" ] }, "Integration": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "code": { "type": "string", "title": "Код", "description": "Код интеграции", "maxLength": 64 }, "slug": { "type": "string", "nullable": true, "maxLength": 255, "pattern": "^[-a-zA-Z0-9_]+$" }, "name": { "type": "string", "title": "Название", "description": "Название интеграции", "maxLength": 512 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "slogan": { "type": "string", "nullable": true, "title": "Слоган", "description": "Слоган интеграции" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type4a9Enum" } ], "title": "Тип", "description": "Тип интеграции\n\n* `integration` - integration\n* `module` - module" }, "prices": { "type": "array", "items": { "$ref": "#/components/schemas/IntegrationPeriod" } }, "variants": { "type": "array", "items": { "$ref": "#/components/schemas/IntegrationVariant" } }, "detail": { "type": "string", "nullable": true, "title": "Описание", "description": "Описание интеграции" }, "icon": { "type": "string", "format": "uri", "nullable": true, "title": "Иконка", "description": "Иконка интеграции" }, "image": { "type": "string", "format": "uri", "nullable": true, "title": "Изображение", "description": "Изображение интеграции" }, "image_alt": { "type": "string", "format": "uri", "nullable": true, "title": "Альтернативное изображение", "description": "Альтернативное изображение интеграции" }, "disabled": { "type": "boolean", "title": "Отключено", "description": "Отключено интеграцию" }, "extra": { "$ref": "#/components/schemas/IntegrationExtra" }, "demo_enabled": { "type": "boolean", "title": "Демо", "description": "Демо интеграция" }, "demo_duration": { "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/components/schemas/TagsEnum" } }, "modules": { "type": "array", "items": { "$ref": "#/components/schemas/ModulesEnum" }, "title": "Модули", "description": "Модули интеграции" }, "visable": { "type": "boolean", "title": "Видимость", "description": "Видимость интеграции для пользователей" } }, "required": [ "code", "extra", "id", "name", "prices", "variants" ] }, "IntegrationConnection": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "demo": { "type": "boolean" }, "integration_period": { "allOf": [ { "$ref": "#/components/schemas/IntegrationPeriod" } ], "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true, "title": "Начало", "description": "Начало подключения интеграции" }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true, "title": "Конец", "description": "Конец подключения интеграции" }, "connected": { "type": "boolean", "title": "Подключено", "description": "Подключено интеграция" }, "extra": { "nullable": true, "title": "Дополнительно", "description": "Дополнительные данные" }, "tenant": { "type": "integer", "readOnly": true, "title": "Компания", "description": "Компания" }, "integration": { "type": "integer", "readOnly": true, "title": "Интеграция", "description": "Интеграция" } }, "required": [ "created_at", "end_at", "id", "integration", "integration_period", "start_at", "tenant", "updated_at" ] }, "IntegrationDisconnection": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true } }, "required": [ "id" ] }, "IntegrationExtra": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" } }, "specs": { "type": "array", "items": { "$ref": "#/components/schemas/IntegrationSpecs" } }, "is_yume_cloud": { "type": "boolean", "default": false }, "link": { "type": "string" }, "manual": { "type": "boolean", "default": true } } }, "IntegrationInfo": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "code": { "type": "string", "title": "Код", "description": "Код интеграции", "maxLength": 64 }, "slug": { "type": "string", "nullable": true, "maxLength": 255, "pattern": "^[-a-zA-Z0-9_]+$" }, "name": { "type": "string", "title": "Название", "description": "Название интеграции", "maxLength": 512 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "slogan": { "type": "string", "nullable": true, "title": "Слоган", "description": "Слоган интеграции" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type4a9Enum" } ], "title": "Тип", "description": "Тип интеграции\n\n* `integration` - integration\n* `module` - module" }, "detail": { "type": "string", "nullable": true, "title": "Описание", "description": "Описание интеграции" }, "icon": { "type": "string", "format": "uri", "nullable": true, "title": "Иконка", "description": "Иконка интеграции" }, "image": { "type": "string", "format": "uri", "nullable": true, "title": "Изображение", "description": "Изображение интеграции" }, "image_alt": { "type": "string", "format": "uri", "nullable": true, "title": "Альтернативное изображение", "description": "Альтернативное изображение интеграции" }, "disabled": { "type": "boolean", "title": "Отключено", "description": "Отключено интеграцию" }, "extra": { "nullable": true }, "demo_enabled": { "type": "boolean", "title": "Демо", "description": "Демо интеграция" }, "demo_duration": { "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/components/schemas/TagsEnum" } }, "modules": { "type": "array", "items": { "$ref": "#/components/schemas/ModulesEnum" }, "title": "Модули", "description": "Модули интеграции" }, "visable": { "type": "boolean", "title": "Видимость", "description": "Видимость интеграции для пользователей" } }, "required": [ "code", "id", "name" ] }, "IntegrationPeriod": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "variant": { "allOf": [ { "$ref": "#/components/schemas/IntegrationVariant" } ], "readOnly": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/IntegrationPeriodTypeEnum" } ], "default": "period", "title": "Тип", "description": "Тип тарифа\n\n* `period` - period\n* `amount` - amount" }, "currency": { "allOf": [ { "$ref": "#/components/schemas/CurrencyEnum" } ], "default": "KZT", "title": "Валюта", "description": "Валюта тарифа\n\n* `KZT` - KZT\n* `USD` - USD\n* `RUB` - RUB\n* `EUR` - EUR\n* `UZS` - UZS\n* `KGS` - KGS\n* `AED` - AED\n* `SAR` - SAR" }, "days": { "allOf": [ { "$ref": "#/components/schemas/DaysEnum" } ], "default": 30, "title": "Количество дней", "description": "Количество дней тарифа\n\n* `30` - 30 Дней\n* `180` - 180 Дней\n* `365` - 365 Дней", "minimum": -32768, "maximum": 32767 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "title": "Цена", "description": "Цена тарифа" }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "title": "Количество", "description": "Количество" }, "integration": { "type": "integer", "title": "Интеграция", "description": "Интеграция" }, "tenant": { "type": "integer", "nullable": true, "title": "Компания", "description": "Компания" } }, "required": [ "id", "integration", "variant" ] }, "IntegrationPeriodTypeEnum": { "enum": [ "period", "amount" ], "type": "string", "description": "* `period` - period\n* `amount` - amount" }, "IntegrationSpecs": { "type": "object", "properties": { "name": { "type": "string" }, "label": { "type": "string" }, "params": {} }, "required": [ "label", "name", "params" ] }, "IntegrationVariant": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "code": { "type": "string", "nullable": true, "maxLength": 255 }, "limits": { "type": "array", "items": { "type": "string", "maxLength": 255 } } }, "required": [ "id", "name" ] }, "InvenotoryWarehouse": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "status": { "allOf": [ { "$ref": "#/components/schemas/InvenotoryWarehouseStatusEnum" } ], "minimum": -32768, "maximum": 32767 }, "tenant": { "type": "integer" }, "product_warehouse": { "type": "integer" }, "created_by": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "inventory", "product_warehouse", "updated_at" ] }, "InvenotoryWarehouseStatusEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - In Stock\n* `1` - Sold\n* `2` - Запрещена" }, "InventorizationBulkCreate": { "type": "object", "properties": { "request_id": { "type": "integer", "writeOnly": true }, "inventories": { "type": "array", "items": { "$ref": "#/components/schemas/InventorizationBulkInventoryCreate" } } }, "required": [ "inventories", "request_id" ] }, "InventorizationBulkInventoryCreate": { "type": "object", "properties": { "request_inventory": { "type": "integer", "writeOnly": true }, "inventory": { "type": "integer", "writeOnly": true }, "state": { "type": "integer", "writeOnly": true }, "body": { "type": "string", "writeOnly": true }, "extra": { "writeOnly": true, "nullable": true }, "images": { "type": "array", "items": { "type": "integer" }, "writeOnly": true } }, "required": [ "inventory", "request_inventory", "state" ] }, "InventorizationCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "inventory": { "type": "integer" }, "state": { "type": "integer" }, "body": { "type": "string", "maxLength": 512 }, "created_by": { "type": "integer" }, "images": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "extra": { "writeOnly": true, "nullable": true } }, "required": [ "body", "id", "inventory", "state" ] }, "InventorizationDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "request": { "type": "integer", "readOnly": true, "nullable": true }, "request_status": { "type": "integer", "readOnly": true }, "request_inventory": { "type": "integer", "readOnly": true, "nullable": true }, "created_by": { "type": "integer", "readOnly": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/InventorizationInventory" } ], "readOnly": true }, "state": { "type": "integer" }, "body": { "type": "string", "maxLength": 512 }, "checked": { "type": "boolean", "readOnly": true }, "inventory_status": { "type": "integer", "readOnly": true }, "prev": { "type": "integer", "readOnly": true }, "distances": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryDistance" }, "readOnly": true }, "client": { "allOf": [ { "$ref": "#/components/schemas/BaseClient" } ], "readOnly": true } }, "required": [ "body", "checked", "client", "created_at", "created_by", "distances", "id", "inventory", "inventory_status", "prev", "request", "request_inventory", "request_status", "state" ] }, "InventorizationInventory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true }, "car": { "$ref": "#/components/schemas/InventoryCar" } }, "required": [ "id", "name" ] }, "InventorizationTasklist": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true }, "last_inventorization": { "type": "string", "readOnly": true }, "status": { "$ref": "#/components/schemas/StatusE96Enum" }, "car": { "$ref": "#/components/schemas/InventoryCar" } }, "required": [ "id", "last_inventorization", "name", "status" ] }, "Inventory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "image": { "type": "string", "readOnly": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "status": { "$ref": "#/components/schemas/StatusE96Enum" }, "car": { "$ref": "#/components/schemas/InventoryCar" }, "current_client": { "type": "string", "readOnly": true }, "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryTarif" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "device_unique_id": { "type": "string", "readOnly": true, "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "sell_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "sell_date": { "type": "string", "format": "date-time", "nullable": true }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "stock_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 1024 }, "sublease_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "prev_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "category": { "type": "integer", "nullable": true }, "group": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "sublease_user": { "type": "integer", "nullable": true } }, "required": [ "created_at", "current_client", "device_unique_id", "id", "image", "name", "status", "updated_at" ] }, "InventoryBulkUpdate": { "type": "object", "properties": { "id": { "type": "integer" }, "inventories": { "type": "array", "items": { "type": "integer" } } }, "required": [ "id", "inventories" ] }, "InventoryCar": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "type": { "$ref": "#/components/schemas/Type135Enum" }, "brand": { "type": "string", "nullable": true, "maxLength": 255 }, "model": { "type": "string", "nullable": true, "maxLength": 255 }, "number": { "type": "string", "nullable": true, "maxLength": 255 }, "tech_passport": { "type": "string", "nullable": true, "maxLength": 255 }, "serial": { "type": "string", "nullable": true, "maxLength": 255 }, "vin": { "type": "string", "nullable": true, "maxLength": 18 }, "extra": {} }, "required": [ "id" ] }, "InventoryCarCreateUpdate": { "type": "object", "properties": { "type": { "allOf": [ { "$ref": "#/components/schemas/Type135Enum" } ], "default": "CAR" }, "number": { "type": "string", "nullable": true }, "tech_passport": { "type": "string", "nullable": true }, "serial": { "type": "string", "nullable": true }, "vin": { "type": "string", "nullable": true }, "brand": { "type": "string", "nullable": true }, "model": { "type": "string", "nullable": true }, "extra": { "nullable": true } } }, "InventoryClone": { "type": "object", "properties": { "count": { "type": "integer", "maximum": 1000 }, "rental_point": { "type": "integer", "nullable": true }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "sublease_user": { "type": "integer" }, "sublease_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {} }, "required": [ "count" ] }, "InventoryData": { "type": "object", "properties": { "unique_id": { "type": "string" }, "unique_id_group": { "type": "string" }, "category_name": { "type": "string" }, "inventory_name": { "type": "string" }, "group_name": { "type": "string" }, "rental_point_name": { "type": "string" }, "inventory_description": { "type": "string", "default": "" }, "buy_price": { "type": "string", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true } }, "required": [ "category_name", "inventory_name", "rental_point_name" ] }, "InventoryDetailGeneral": { "type": "object", "properties": { "rents_count": { "type": "integer" }, "rents_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "rents_duration": { "type": "string" }, "most_rents": { "$ref": "#/components/schemas/InventoryDetailGeneralClient" } }, "required": [ "rents_count" ] }, "InventoryDetailGeneralClient": { "type": "object", "properties": { "count": { "type": "integer" }, "client": { "$ref": "#/components/schemas/BaseClient" } } }, "InventoryDistance": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "inventory": { "type": "integer" }, "inventorization": { "type": "integer", "nullable": true }, "distance": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "created_at", "distance", "id", "inventory" ] }, "InventoryEarning": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "count": { "type": "integer", "readOnly": true }, "statement_expense": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "statement_profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "payback": { "allOf": [ { "$ref": "#/components/schemas/InventoryPayback" } ], "readOnly": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCar" } ], "readOnly": true } }, "required": [ "car", "count", "id", "name", "payback", "profit", "statement_expense", "statement_profit" ] }, "InventoryEarningDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_status": { "type": "integer", "readOnly": true }, "request_rental_point": { "type": "integer", "readOnly": true }, "inventory_set": { "allOf": [ { "$ref": "#/components/schemas/InventorySetInfo" } ], "readOnly": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "category": { "type": "integer", "nullable": true }, "date": { "type": "string", "format": "date" }, "day": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "start_at": { "type": "string", "format": "date-time" }, "end_at": { "type": "string", "format": "date-time" } }, "required": [ "date", "day", "end_at", "id", "inventory", "inventory_set", "prediction", "profit", "request_rental_point", "request_status", "start_at" ] }, "InventoryEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCarCreateUpdate" } ], "nullable": true }, "category": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "device_unique_id": { "type": "string", "readOnly": true, "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "sell_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "sell_date": { "type": "string", "format": "date-time", "nullable": true }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "stock_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 1024 }, "sublease_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "prev_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "group": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "sublease_user": { "type": "integer", "nullable": true } }, "required": [ "created_at", "device_unique_id", "id", "name", "updated_at" ] }, "InventoryEfficency": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCar" } ], "readOnly": true }, "revenue": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "revenue_lost": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "efficency": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "days": { "type": "integer" }, "days_idle": { "type": "integer" }, "total": { "type": "integer" } }, "required": [ "car", "days", "days_idle", "id", "name", "total" ] }, "InventoryForSale": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "group": { "type": "integer", "nullable": true }, "sell_date": { "type": "string", "format": "date-time", "nullable": true }, "client_id": { "type": "integer", "readOnly": true }, "client_name": { "type": "string", "readOnly": true }, "client_phone": { "type": "string", "readOnly": true }, "client_avatar": { "type": "string", "readOnly": true }, "created_by": { "type": "integer" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "counterparty": { "type": "integer" }, "warehouse": { "type": "integer" }, "date": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "client_avatar", "client_id", "client_name", "client_phone", "counterparty", "created_by", "date", "id", "name", "price", "warehouse" ] }, "InventoryGeneral": { "type": "object", "properties": { "company": { "$ref": "#/components/schemas/InventoryGeneralCount" }, "sublease": { "$ref": "#/components/schemas/InventoryGeneralCount" }, "rent_amount": { "type": "integer" } }, "required": [ "company", "rent_amount", "sublease" ] }, "InventoryGeneralCount": { "type": "object", "properties": { "count": { "type": "integer" }, "count_free": { "type": "integer" }, "count_reserved": { "type": "integer" }, "count_inrent": { "type": "integer" }, "count_broken": { "type": "integer" }, "count_repair": { "type": "integer" }, "count_warehouse": { "type": "integer" } }, "required": [ "count", "count_broken", "count_free", "count_inrent", "count_repair", "count_reserved", "count_warehouse" ] }, "InventoryGroup": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 512 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "deleted": { "type": "boolean" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "category": { "type": "integer", "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "barcode": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "filters": { "type": "array", "items": { "type": "string", "maxLength": 32 }, "nullable": true }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "published": { "type": "boolean" }, "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/BaseInventoryTarif" } }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "inventories_count": { "type": "integer", "readOnly": true, "default": 0 }, "inventories_free": { "type": "integer", "readOnly": true, "default": 0 }, "unit_type": { "$ref": "#/components/schemas/UnitTypeEnum" }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_count": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "has_sublease": { "type": "boolean", "readOnly": true }, "rent_count": { "type": "string", "readOnly": true } }, "required": [ "created_at", "has_sublease", "id", "inventories_count", "inventories_free", "rent_count", "updated_at" ] }, "InventoryGroupDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "inventories_count": { "type": "integer", "default": 0 }, "inventories_free": { "type": "integer", "readOnly": true, "default": 0 }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "image": { "type": "string", "format": "uri", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "nullable": true, "maxLength": 512 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "barcode": { "type": "string", "nullable": true, "maxLength": 255 }, "filters": { "type": "array", "items": { "type": "string", "maxLength": 32 }, "nullable": true }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "bonus": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "published": { "type": "boolean" }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "unit_type": { "$ref": "#/components/schemas/UnitTypeEnum" }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_count": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "category": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "inventories_free", "updated_at" ] }, "InventoryGroupEarning": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 512 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "count": { "type": "integer", "readOnly": true, "nullable": true }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "statement_expense": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "statement_profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "payback_duration": { "type": "string", "readOnly": true, "nullable": true }, "payback_efficiency": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "payback_profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "buy_price", "count", "id", "payback_duration", "payback_efficiency", "payback_profit", "profit", "statement_expense", "statement_profit" ] }, "InventoryGroupEarningAggregate": { "type": "object", "properties": { "buy_price_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "buy_price_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "prediction_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "prediction_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "earning_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "earning_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "statement_expense_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "statement_profit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "overdue_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "overdue_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "payback_duration": { "type": "string" }, "inventory_cnt": { "type": "integer" } }, "required": [ "buy_price_avg", "buy_price_sum", "earning_avg", "earning_sum", "inventory_cnt", "overdue_avg", "overdue_sum", "payback_duration", "prediction_avg", "prediction_sum", "statement_expense_sum", "statement_profit_sum" ] }, "InventoryGroupImport": { "type": "object", "properties": { "groups": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryGroupImportItem" } } }, "required": [ "groups" ] }, "InventoryGroupImportItem": { "type": "object", "properties": { "group_name": { "type": "string" }, "unique_id_group": { "type": "string" }, "category_name": { "type": "string" }, "group_description": { "type": "string" }, "rental_point_name": { "type": "string" }, "amount": { "type": "string" }, "buy_price": { "type": "string", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "tarif": { "type": "string", "nullable": true } }, "required": [ "amount", "category_name", "group_name", "rental_point_name", "unique_id_group" ] }, "InventoryGroupState": { "type": "object", "properties": { "id": { "type": "integer" }, "group": { "type": "integer" }, "count": { "type": "integer", "default": 0 } }, "required": [ "group", "id" ] }, "InventoryGroupStatus": { "type": "object", "properties": { "status": { "type": "integer" }, "group": { "type": "integer" }, "count": { "type": "integer", "default": 0 } }, "required": [ "group", "status" ] }, "InventoryGroupTarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "weekdays": { "type": "array", "items": { "type": "integer" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "readOnly": true, "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "inventory", "updated_at" ] }, "InventoryGroupUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 512 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "category": { "type": "integer", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "barcode": { "type": "string", "nullable": true, "maxLength": 255 }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "published": { "type": "boolean" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount": { "type": "integer", "nullable": true }, "tarif_form": { "type": "array", "items": { "$ref": "#/components/schemas/BaseInventoryTarifUpdate" } }, "inventory_form": { "$ref": "#/components/schemas/InventoryClone" }, "unit_type": { "$ref": "#/components/schemas/UnitTypeEnum" }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_count": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true } }, "required": [ "id" ] }, "InventoryImport": { "type": "object", "properties": { "inventories": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryData" } } }, "required": [ "inventories" ] }, "InventoryInsurance": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "$ref": "#/components/schemas/InventoryInsuranceTypeEnum" }, "company": { "type": "string", "nullable": true, "maxLength": 255 }, "number": { "type": "string", "nullable": true, "maxLength": 255 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "start_at": { "type": "string", "format": "date-time" }, "end_at": { "type": "string", "format": "date-time" }, "tenant": { "type": "integer", "readOnly": true }, "inventory": { "type": "integer", "readOnly": true } }, "required": [ "created_at", "end_at", "id", "inventory", "start_at", "tenant", "updated_at" ] }, "InventoryInsuranceTypeEnum": { "enum": [ "CASCO", "OGPO" ], "type": "string", "description": "* `CASCO` - CASCO\n* `OGPO` - OGPO" }, "InventoryMaintenance": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "state": { "type": "integer", "nullable": true }, "interval": { "type": "string", "nullable": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/CarInventory" } ], "readOnly": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type5b9Enum" } ], "minimum": -32768, "maximum": 32767 }, "period_type": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/PeriodTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "maintenance_date": { "type": "string", "format": "date-time" }, "distance_threshold": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "time_threshold": { "type": "string", "nullable": true }, "responsible": { "type": "integer" }, "total_distance": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "distance": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "comment": { "type": "string", "readOnly": true, "nullable": true }, "fact_maintenance_date": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_total_distance": { "type": "integer", "readOnly": true, "nullable": true } }, "required": [ "comment", "end_total_distance", "fact_maintenance_date", "id", "inventory", "maintenance_date", "name", "responsible" ] }, "InventoryMaintenanceFinish": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "state": { "type": "integer", "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 512 } }, "required": [ "comment", "id" ] }, "InventoryMaintenanceTable": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCar" } ], "readOnly": true }, "maintenances": { "type": "array", "items": { "$ref": "#/components/schemas/BaseInventoryMaintenance" } }, "status": { "type": "integer", "readOnly": true } }, "required": [ "car", "id", "maintenances", "name", "status" ] }, "InventoryMaintenanceTasklist": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCar" } ], "readOnly": true }, "remaining_distance": { "type": "integer", "readOnly": true }, "next_maintenance_date": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "car", "id", "name", "next_maintenance_date", "remaining_distance" ] }, "InventoryPayback": { "type": "object", "properties": { "date": { "type": "string", "format": "date-time", "nullable": true }, "duration": { "type": "string", "nullable": true }, "efficiency": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } } }, "InventorySchedule": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCar" } ], "readOnly": true }, "schedules": { "type": "array", "items": { "$ref": "#/components/schemas/Schedule" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "device_unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "sell_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "sell_date": { "type": "string", "format": "date-time", "nullable": true }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "stock_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 1024 }, "sublease_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "prev_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "category": { "type": "integer", "nullable": true }, "group": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "sublease_user": { "type": "integer", "nullable": true } }, "required": [ "car", "created_at", "id", "name", "schedules", "updated_at" ] }, "InventoryScheduleMinMax": { "type": "object", "properties": { "min_date": { "type": "string", "format": "date-time" }, "max_date": { "type": "string", "format": "date-time" } }, "required": [ "max_date", "min_date" ] }, "InventorySell": { "type": "object", "properties": { "sell_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "inventories": { "type": "array", "items": { "type": "integer" } } }, "required": [ "inventories", "sell_price" ] }, "InventorySet": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "image": { "type": "string", "format": "uri", "nullable": true }, "category": { "type": "integer", "nullable": true }, "status": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "prices": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetPrice" }, "readOnly": true }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetItem" }, "readOnly": true }, "static": { "type": "boolean" }, "extra": {}, "published": { "type": "boolean" }, "deleted": { "type": "boolean", "readOnly": true } }, "required": [ "deleted", "id", "items", "name", "prices", "status" ] }, "InventorySetGeneral": { "type": "object", "properties": { "count": { "type": "integer" }, "set_count": { "type": "integer", "readOnly": true }, "set_available": { "type": "integer" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "amount", "count", "set_available", "set_count" ] }, "InventorySetInfo": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "image": { "type": "string", "format": "uri", "nullable": true }, "category": { "type": "integer", "nullable": true }, "static": { "type": "boolean" }, "extra": {}, "published": { "type": "boolean" } }, "required": [ "id", "name" ] }, "InventorySetItem": { "type": "object", "properties": { "id": { "type": "integer" }, "count": { "type": "integer" }, "group_id": { "type": "integer" }, "group_name": { "type": "string", "readOnly": true }, "group_unique_id": { "type": "string", "readOnly": true }, "group_category": { "type": "integer", "readOnly": true }, "group_image": { "type": "string", "readOnly": true }, "inventories_count": { "type": "integer", "readOnly": true, "default": 0 }, "inventories_free": { "type": "integer", "readOnly": true, "default": 0 }, "alternative": { "type": "integer", "nullable": true }, "required": { "type": "boolean" } }, "required": [ "count", "group_category", "group_id", "group_image", "group_name", "group_unique_id", "inventories_count", "inventories_free" ] }, "InventorySetPrice": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "period_id": { "type": "integer" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "order": { "type": "integer" } }, "required": [ "name", "period_id", "price" ] }, "InventorySetPriceSerializerV2": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "period": { "type": "integer" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "required": [ "id", "period" ] }, "InventorySetPriceTarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "time_period": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true } }, "required": [ "id" ] }, "InventorySetTarifBulkCreate": { "type": "object", "properties": { "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetTarifBulkCreateEntity" } } }, "required": [ "tarifs" ] }, "InventorySetTarifBulkCreateEntity": { "type": "object", "properties": { "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "inventory_set": { "type": "integer" }, "inventory_set_price": { "type": "integer" } }, "required": [ "inventory_set", "inventory_set_price", "price" ] }, "InventorySetTarifBulkUpdate": { "type": "object", "properties": { "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetTarifBulkUpdateEntity" } } }, "required": [ "tarifs" ] }, "InventorySetTarifBulkUpdateEntity": { "type": "object", "properties": { "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "inventory_set": { "type": "integer" }, "inventory_set_price": { "type": "integer" }, "id": { "type": "integer" } }, "required": [ "id", "inventory_set", "inventory_set_price", "price" ] }, "InventoryState": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "disable": { "type": "boolean" }, "workshop": { "type": "boolean" }, "color": { "type": "string", "maxLength": 9 } }, "required": [ "id", "name" ] }, "InventoryStateDetail": { "type": "object", "properties": { "state": { "type": "integer" }, "count": { "type": "integer", "default": 0 } }, "required": [ "state" ] }, "InventoryStateTransition": { "type": "object", "properties": { "created_by": { "type": "integer" }, "state": { "type": "integer" }, "prev": { "type": "integer" }, "count": { "type": "integer" } }, "required": [ "count", "created_by", "prev", "state" ] }, "InventoryTarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "set_id": { "type": "integer", "readOnly": true }, "group_id": { "type": "integer", "readOnly": true }, "weekdays": { "type": "array", "items": { "type": "integer" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "readOnly": true, "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "readOnly": true, "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } }, "required": [ "created_at", "group_id", "id", "inventory", "inventory_set", "set_id", "updated_at" ] }, "InventoryTarifTimePeriod": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string" }, "time": { "type": "string" }, "weekdays": { "type": "array", "items": { "type": "integer" } }, "deleted": { "type": "boolean", "readOnly": true }, "inventory_tarif_count": { "type": "integer" }, "service_tarif_count": { "type": "integer" } }, "required": [ "deleted", "id", "time" ] }, "InventoryTransfer": { "type": "object", "properties": { "rental_point": { "type": "integer" }, "inventories": { "type": "array", "items": { "type": "integer" } } }, "required": [ "inventories", "rental_point" ] }, "InventoryWarehouse": { "type": "object", "properties": { "inventories": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "group": { "type": "integer", "writeOnly": true }, "warehouse": { "type": "integer", "writeOnly": true }, "counterparty": { "type": "integer", "writeOnly": true }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true } }, "required": [ "counterparty", "group", "inventories", "unit_price", "warehouse" ] }, "KaspiAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "balance": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "client_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" } }, "required": [ "balance", "client_id", "id" ] }, "KaspiBalanceRequest": { "type": "object", "properties": { "txn_id": { "type": "string", "pattern": "^[0-9]{1,18}$" }, "txn_date": { "type": "string", "format": "date-time" }, "account": { "type": "string", "maxLength": 200 }, "command": { "$ref": "#/components/schemas/CommandEnum" }, "sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "account", "command", "txn_date", "txn_id" ] }, "KaspiClient": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type433Enum" } ], "minimum": 0, "maximum": 2147483647 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "phone": { "type": "string", "maxLength": 32 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "extra": {} }, "required": [ "id", "name", "phone" ] }, "KaspiMetricsAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "balance": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "client_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "client": { "type": "string", "readOnly": true }, "requests": { "type": "string", "readOnly": true } }, "required": [ "balance", "client", "client_id", "id", "requests" ] }, "KaspiTransaction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "account": { "type": "integer" }, "balance": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "balance_after": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "created_at": { "type": "string", "format": "date-time" }, "transaction_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "transaction": { "type": "string", "readOnly": true }, "kaspi_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "bcc_id": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "request_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "request_status": { "type": "string", "readOnly": true } }, "required": [ "account", "created_at", "id", "request_status", "transaction" ] }, "KaspiTransactionDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "account": { "allOf": [ { "$ref": "#/components/schemas/KaspiAccount" } ], "readOnly": true }, "balance": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "balance_after": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "created_at": { "type": "string", "format": "date-time" }, "transaction_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "transaction": { "type": "string", "readOnly": true }, "kaspi_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "bcc_id": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "request_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "request_status": { "type": "string", "readOnly": true }, "client": { "allOf": [ { "$ref": "#/components/schemas/KaspiClient" } ], "readOnly": true } }, "required": [ "account", "client", "created_at", "id", "request_status", "transaction" ] }, "Label": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "key": { "$ref": "#/components/schemas/LabelKeyEnum" }, "language": { "$ref": "#/components/schemas/LanguageEnum" }, "nominative_singular": { "type": "string", "nullable": true, "description": "Nominative singular form (e.g., \"Инвентарь\")" }, "nominative_plural": { "type": "string", "nullable": true, "description": "Nominative plural form (e.g., \"Инвентари\")" }, "genitive_singular": { "type": "string", "nullable": true, "description": "Genitive singular (e.g., \"инвентаря\")" }, "dative_singular": { "type": "string", "nullable": true, "description": "Dative singular (e.g., \"инвентарю\")" }, "accusative_singular": { "type": "string", "nullable": true, "description": "Accusative singular (e.g., \"инвентарь\")" }, "instrumental_singular": { "type": "string", "nullable": true, "description": "Instrumental singular (e.g., \"инвентарем\")" }, "prepositional_singular": { "type": "string", "nullable": true, "description": "Prepositional singular (e.g., \"об инвентаре\")" }, "genitive_plural": { "type": "string", "nullable": true, "description": "Genitive plural (e.g., \"инвентарей\")" }, "dative_plural": { "type": "string", "nullable": true, "description": "Dative plural (e.g., \"инвентарям\")" }, "accusative_plural": { "type": "string", "nullable": true, "description": "Accusative plural (e.g., \"инвентари\")" }, "instrumental_plural": { "type": "string", "nullable": true, "description": "Instrumental plural (e.g., \"инвентарями\")" }, "prepositional_plural": { "type": "string", "nullable": true, "description": "Prepositional plural (e.g., \"об инвентарях\")" } }, "required": [ "id", "key", "language" ] }, "LabelKeyEnum": { "enum": [ "inventory", "inventory_set", "inventory_group", "rental_point", "service", "client", "deposit", "request", "reserve", "inrent", "canceled", "completed", "debtor", "exceed", "deleted" ], "type": "string", "description": "* `inventory` - Inventory\n* `inventory_set` - Inventory Set\n* `inventory_group` - Inventory Group\n* `rental_point` - Rental Point\n* `service` - Service\n* `client` - Client\n* `deposit` - Deposit\n* `request` - Request\n* `reserve` - Reserve\n* `inrent` - Inrent\n* `canceled` - Canceled\n* `completed` - Completed\n* `debtor` - Debtor\n* `exceed` - Exceed\n* `deleted` - Deleted" }, "LanguageEnum": { "enum": [ "ru", "en" ], "type": "string", "description": "* `ru` - Русский\n* `en` - English" }, "LeadBulkOperation": { "type": "object", "properties": { "stage": { "type": "integer" }, "action": { "$ref": "#/components/schemas/LeadBulkOperationActionEnum" }, "stage_move": { "type": "integer" }, "message": { "type": "string", "nullable": true } }, "required": [ "action", "stage" ] }, "LeadBulkOperationActionEnum": { "enum": [ "move", "delete", "wazzup" ], "type": "string", "description": "* `move` - move\n* `delete` - delete\n* `wazzup` - wazzup" }, "LeadCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "ordering": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "cancel_reason": { "type": "string", "nullable": true }, "extra": {}, "tenant": { "type": "integer" }, "client": { "type": "integer", "nullable": true }, "stage": { "type": "integer" }, "funnel": { "type": "integer" }, "manager": { "type": "integer", "nullable": true }, "source": { "type": "integer", "nullable": true }, "request": { "type": "integer", "nullable": true }, "sale": { "type": "integer", "nullable": true } }, "required": [ "created_at", "funnel", "id", "stage", "updated_at" ] }, "LeadList": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "task_date": { "type": "string", "format": "date-time", "readOnly": true }, "request_status": { "type": "integer", "readOnly": true, "nullable": true }, "request_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true, "nullable": true }, "client_phone": { "type": "string", "readOnly": true, "nullable": true }, "client_name": { "type": "string", "readOnly": true, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "ordering": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "cancel_reason": { "type": "string", "nullable": true }, "extra": {}, "tenant": { "type": "integer" }, "client": { "type": "integer", "nullable": true }, "stage": { "type": "integer" }, "funnel": { "type": "integer" }, "manager": { "type": "integer", "nullable": true }, "source": { "type": "integer", "nullable": true }, "request": { "type": "integer", "nullable": true }, "sale": { "type": "integer", "nullable": true } }, "required": [ "client_name", "client_phone", "created_at", "funnel", "id", "request_price", "request_status", "stage", "task_date", "updated_at" ] }, "LeadTask": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "date": { "type": "string", "format": "date-time" }, "description": { "type": "string", "nullable": true }, "manager": { "type": "integer", "nullable": true }, "manager_name": { "type": "string", "readOnly": true }, "result": { "type": "string" }, "finished_at": { "type": "string", "format": "date-time", "nullable": true }, "method": { "type": "integer", "nullable": true }, "lead": { "type": "integer", "readOnly": true, "nullable": true }, "extra": {}, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "funnel": { "type": "integer", "readOnly": true } }, "required": [ "created_at", "date", "funnel", "id", "lead", "manager", "manager_name", "method" ] }, "LeadTaskMethod": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "funnel": { "type": "integer", "nullable": true } }, "required": [ "id", "name" ] }, "LeadUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "description": { "type": "string", "nullable": true }, "finished_at": { "type": "string", "format": "date-time", "nullable": true }, "result": { "type": "string" }, "date": { "type": "string", "format": "date-time" }, "extra": {}, "tenant": { "type": "integer" }, "lead": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "method": { "type": "integer", "nullable": true }, "manager": { "type": "integer", "nullable": true } }, "required": [ "created_at", "date", "id", "updated_at" ] }, "LegalClientData": { "type": "object", "properties": { "name": { "type": "string" }, "phone": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "bin": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true }, "director": { "type": "string", "nullable": true }, "bik": { "type": "string", "nullable": true }, "bank": { "type": "string", "nullable": true }, "iban": { "type": "string", "nullable": true } }, "required": [ "name" ] }, "LegalClientImport": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/LegalClientData" } } }, "required": [ "data" ] }, "LegalTypeEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - ИП\n* `1` - ТОО\n* `2` - АО\n* `3` - ПК" }, "LinkAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "link": { "type": "string", "format": "uri", "maxLength": 200 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" } }, "required": [ "content_type", "created_at", "created_by", "id", "link", "object_id" ] }, "LogEntry": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "content_type": { "type": "integer", "title": "Тип содержимого" }, "object_pk": { "type": "string", "title": "Первичный ключ объекта", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true, "title": "Идентификатор объекта" }, "actor": { "type": "integer", "nullable": true, "title": "Действующее лицо" }, "serialized_data": { "nullable": true }, "action": { "allOf": [ { "$ref": "#/components/schemas/LogEntryActionEnum" } ], "title": "Действие", "minimum": 0, "maximum": 32767 }, "changes": { "nullable": true, "title": "Сообщение об изменении" }, "timestamp": { "type": "string", "format": "date-time", "title": "Метка времени" } }, "required": [ "action", "content_type", "id", "object_pk" ] }, "LogEntryActionEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - создать\n* `1` - обновить\n* `2` - удалить\n* `3` - доступ" }, "Loyalty": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "current": { "type": "boolean", "default": false }, "passed": { "type": "boolean", "default": false }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "percent": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "title": "Процент" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "title": "Цена" }, "grant_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "event_limit": { "type": "string", "nullable": true }, "delivery_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" } }, "required": [ "id", "price" ] }, "ManageArticle": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": 0, "nullable": true }, "title": { "type": "string", "maxLength": 5196 }, "body": { "type": "string", "nullable": true }, "active": { "type": "boolean" }, "outer_url": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "expire_date": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "created_at", "id", "title", "updated_at" ] }, "ManageEvent": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "user_registered": { "type": "integer", "readOnly": true, "default": 0 }, "video": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "image": { "type": "string", "format": "uri" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "location_link": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "body": { "type": "string", "nullable": true }, "date": { "type": "string", "format": "date-time" }, "location": { "type": "string", "nullable": true, "maxLength": 255 }, "user_limit": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "active": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "created_at", "date", "id", "updated_at", "user_registered" ] }, "ManageEventRequest": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string" }, "phone": { "type": "string" }, "age": { "type": "string" }, "profession": { "type": "array", "items": { "type": "string" } }, "experience": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "tenant": { "type": "integer" }, "event": { "type": "integer" }, "user": { "type": "integer", "nullable": true } }, "required": [ "age", "created_at", "event", "experience", "id", "name", "phone", "updated_at" ] }, "ManageProduct": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "type": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Type476Enum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "unique_id": { "type": "string", "nullable": true, "maxLength": 64 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "discount": { "type": "integer", "nullable": true }, "discount_start_at": { "type": "string", "format": "date-time", "nullable": true }, "discount_end_at": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "published": { "type": "boolean" } }, "required": [ "amount", "id", "name", "object_id", "price", "type", "unique_id" ] }, "ManagerContants": { "type": "object", "properties": { "INVENTORY_CATEGORIES": { "type": "string", "readOnly": true }, "SERVICE_TYPE": { "type": "string", "readOnly": true }, "CLIENT_ATTRACTION_METHOD": { "type": "string", "readOnly": true }, "CLIENT_LEGAL_TYPE": { "type": "string", "readOnly": true }, "CLIENT_TICKS": { "type": "string", "readOnly": true }, "RENTAL_POINTS": { "type": "string", "readOnly": true }, "APPLICATION_READY": { "type": "string", "readOnly": true }, "INVENTORY_GROUP_TYPE": { "type": "string", "readOnly": true }, "TARIF_TIME_PERIODS": { "type": "string", "readOnly": true }, "ORDER_REQUEST_STATUS": { "type": "string", "readOnly": true }, "PAYMENT_TYPES": { "type": "string", "readOnly": true }, "INVENTORY_STATE_STATUS": { "type": "string", "readOnly": true }, "EXPENSE_CATEGORY": { "type": "string", "readOnly": true }, "EXPENSE_COUNTERPARTY": { "type": "string", "readOnly": true }, "PASSPORT_ISSUERS": { "type": "string", "readOnly": true } }, "required": [ "APPLICATION_READY", "CLIENT_ATTRACTION_METHOD", "CLIENT_LEGAL_TYPE", "CLIENT_TICKS", "EXPENSE_CATEGORY", "EXPENSE_COUNTERPARTY", "INVENTORY_CATEGORIES", "INVENTORY_GROUP_TYPE", "INVENTORY_STATE_STATUS", "ORDER_REQUEST_STATUS", "PASSPORT_ISSUERS", "PAYMENT_TYPES", "RENTAL_POINTS", "SERVICE_TYPE", "TARIF_TIME_PERIODS" ] }, "MessageSourceEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - sms message source\n* `1` - wazzup message source" }, "Method5b3Enum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - delete\n* `1` - archive\n* `2` - withdraw" }, "Method7b1Enum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - manual\n* `1` - sms\n* `2` - egov" }, "MetricsBonusGeneral": { "type": "object", "properties": { "sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "delivered": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "received": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "delivered", "received", "sum" ] }, "MetricsClient": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type433Enum" } ], "minimum": 0, "maximum": 2147483647 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "agreement_id": { "type": "string", "readOnly": true, "nullable": true }, "signed": { "type": "boolean" }, "sign_date": { "type": "string", "format": "date", "nullable": true }, "sign_expires": { "type": "string", "format": "date", "nullable": true }, "phone": { "type": "string", "maxLength": 32 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "legal_type": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/LegalTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "ticks": { "type": "array", "items": { "$ref": "#/components/schemas/ClientTickRelation" }, "readOnly": true }, "extra": {}, "iin": { "type": "string", "readOnly": true }, "bin": { "type": "string", "readOnly": true }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "prediction_period": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "transaction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "transaction_debt": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "debt": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "debt_period": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "balance": { "type": "string", "readOnly": true }, "bonus": { "allOf": [ { "$ref": "#/components/schemas/ClientBonus" } ], "readOnly": true } }, "required": [ "agreement_id", "balance", "bin", "bonus", "debt", "debt_period", "id", "iin", "name", "phone", "prediction", "prediction_period", "ticks", "transaction", "transaction_debt" ] }, "MetricsClientBonus": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client_id": { "type": "integer" }, "client_name": { "type": "string" }, "request_status": { "type": "integer" }, "request_price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "bonus_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeC9cEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "tenant": { "type": "integer" }, "bonus": { "type": "integer" }, "request": { "type": "integer", "nullable": true }, "created_by": { "type": "integer", "nullable": true } }, "required": [ "bonus", "bonus_amount", "client_id", "client_name", "created_at", "id", "request_price_discount", "request_status", "updated_at" ] }, "MetricsClientBonusBalance": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client": { "$ref": "#/components/schemas/BaseClient" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "client", "id" ] }, "MetricsClientChurnRateGraph": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "value": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "date", "value" ] }, "MetricsClientCountGraph": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "value": { "type": "integer" } }, "required": [ "date", "value" ] }, "MetricsClientOverview": { "type": "object", "properties": { "count": { "$ref": "#/components/schemas/MetricsClientOverviewProgress" }, "count_unique": { "$ref": "#/components/schemas/MetricsClientOverviewProgress" }, "churn_rate": { "$ref": "#/components/schemas/MetricsClientOverviewProgress" }, "crr": { "$ref": "#/components/schemas/MetricsClientOverviewProgress" }, "ltv": { "$ref": "#/components/schemas/MetricsClientOverviewProgress" }, "gender": {}, "age": {} }, "required": [ "age", "churn_rate", "count", "count_unique", "crr", "gender", "ltv" ] }, "MetricsClientOverviewProgress": { "type": "object", "properties": { "current": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "previous": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "progress": { "type": "string", "readOnly": true } }, "required": [ "current", "previous", "progress" ] }, "MetricsDeliveryList": { "type": "object", "properties": { "pending": { "type": "integer", "readOnly": true }, "in_progress": { "type": "integer", "readOnly": true }, "done": { "type": "integer", "readOnly": true }, "cancel": { "type": "integer", "readOnly": true }, "delivery": { "type": "integer", "readOnly": true }, "pick_up": { "type": "integer", "readOnly": true }, "pending_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "in_progress_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "done_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "cancel_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "delivery_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "pick_up_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "worker": { "type": "integer", "readOnly": true }, "count": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "last_delivered_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "cancel", "cancel_price", "count", "delivery", "delivery_price", "done", "done_price", "in_progress", "in_progress_price", "last_delivered_at", "pending", "pending_price", "pick_up", "pick_up_price", "price", "worker" ] }, "MetricsDeposit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "rental_point": { "type": "integer", "readOnly": true }, "client": { "$ref": "#/components/schemas/BaseClient" }, "transaction_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type305Enum" } ], "minimum": -32768, "maximum": 32767 }, "status": { "allOf": [ { "$ref": "#/components/schemas/Status0aeEnum" } ], "minimum": -32768, "maximum": 32767 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "deposit": { "type": "string", "maxLength": 255 }, "returned_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "request": { "type": "integer" }, "created_by": { "type": "integer" }, "payment_type": { "type": "integer", "nullable": true } }, "required": [ "client", "created_at", "created_by", "deposit", "id", "rental_point", "request", "transaction_amount", "updated_at" ] }, "MetricsDiscount": { "type": "object", "properties": { "discount": { "type": "integer", "readOnly": true }, "discount_type": { "type": "integer", "readOnly": true }, "discount_discount": { "type": "integer", "readOnly": true }, "discount_discount_type": { "type": "integer", "readOnly": true }, "count": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "count", "discount", "discount_discount", "discount_discount_type", "discount_type", "price", "price_discount" ] }, "MetricsFinanceCashFlow": { "type": "object", "properties": { "year": { "type": "integer" }, "month": { "type": "integer" }, "incomes": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "incomes_request": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "incomes_sale": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "incomes_workshop": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "incomes_deposit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "incomes_bonus": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "expenses": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "categories": { "type": "string", "readOnly": true }, "saldo": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "start_balance": { "type": "string", "readOnly": true }, "end_balance": { "type": "string", "readOnly": true } }, "required": [ "categories", "end_balance", "expenses", "incomes", "incomes_bonus", "incomes_deposit", "incomes_request", "incomes_sale", "incomes_workshop", "month", "saldo", "start_balance", "year" ] }, "MetricsFinancePnL": { "type": "object", "properties": { "year": { "type": "integer" }, "month": { "type": "integer" }, "prediction": { "type": "string", "readOnly": true }, "prediction_request": { "type": "string", "readOnly": true }, "prediction_service": { "type": "string", "readOnly": true }, "prediction_delivery": { "type": "string", "readOnly": true }, "prediction_penalty": { "type": "string", "readOnly": true }, "prediction_sale": { "type": "string", "readOnly": true }, "prediction_workshop": { "type": "string", "readOnly": true }, "expenses": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "categories": { "type": "string", "readOnly": true }, "saldo": { "type": "string", "readOnly": true } }, "required": [ "categories", "expenses", "month", "prediction", "prediction_delivery", "prediction_penalty", "prediction_request", "prediction_sale", "prediction_service", "prediction_workshop", "profit", "saldo", "year" ] }, "MetricsFunnelView": { "type": "object", "properties": { "count": { "type": "integer" }, "count_period": { "type": "integer" }, "loaded": { "$ref": "#/components/schemas/StageLoadede" }, "users": { "type": "array", "items": { "$ref": "#/components/schemas/UserSpeed" } }, "stages": { "type": "array", "items": { "$ref": "#/components/schemas/StageSpeed" } } }, "required": [ "count", "count_period", "loaded", "stages", "users" ] }, "MetricsGeneral": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "request_count": { "type": "integer" }, "service_count": { "type": "integer" }, "delivery_count": { "type": "integer" }, "penalty_count": { "type": "integer" }, "workshop_count": { "type": "integer" }, "sale_count": { "type": "integer" }, "request_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "service_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "delivery_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "workshop_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "sale_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "date", "delivery_amount", "delivery_count", "penalty_amount", "penalty_count", "prediction", "profit", "request_amount", "request_count", "sale_amount", "sale_count", "service_amount", "service_count", "workshop_amount", "workshop_count" ] }, "MetricsGeneralDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "date": { "type": "string", "format": "date", "readOnly": true }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/CarInventory" } ], "readOnly": true }, "inventory_group": { "allOf": [ { "$ref": "#/components/schemas/BaseInventoryGroup" } ], "readOnly": true }, "service": { "allOf": [ { "$ref": "#/components/schemas/Service" } ], "readOnly": true }, "category": { "type": "integer", "nullable": true }, "request": { "type": "integer", "nullable": true }, "request_status": { "type": "integer", "readOnly": true }, "request_delivery": { "type": "integer", "nullable": true }, "workshop": { "type": "integer", "nullable": true }, "sale": { "type": "integer", "nullable": true }, "client_id": { "type": "integer", "readOnly": true }, "client_name": { "type": "string", "readOnly": true }, "client_phone": { "type": "string", "readOnly": true }, "client_avatar": { "type": "string", "readOnly": true } }, "required": [ "client_avatar", "client_id", "client_name", "client_phone", "date", "id", "inventory", "inventory_group", "prediction", "profit", "request_status", "service" ] }, "MetricsGeneralRequestDetail": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "client_id": { "type": "integer", "readOnly": true }, "client_name": { "type": "string", "readOnly": true }, "client_phone": { "type": "string", "readOnly": true }, "client_avatar": { "type": "string", "readOnly": true }, "request_id": { "type": "integer" }, "request_status": { "type": "integer" }, "prediction_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "client_avatar", "client_id", "client_name", "client_phone", "date", "prediction_sum", "profit_sum", "request_id", "request_status" ] }, "MetricsInventoryDepreciation": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "type": "integer", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "sublease_user": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "rental_point": { "type": "integer", "nullable": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCar" } ], "readOnly": true }, "span": { "type": "integer", "readOnly": true }, "usage": { "type": "integer", "readOnly": true }, "depreciation": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "coverage": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "residual": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true } }, "required": [ "car", "coverage", "depreciation", "id", "name", "residual", "span", "usage" ] }, "MetricsInventoryDepreciationGeneral": { "type": "object", "properties": { "depreciation": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "buy_price_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "residual": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "buy_price_sum", "depreciation", "residual" ] }, "MetricsOrderDiscountHistory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "allOf": [ { "$ref": "#/components/schemas/BaseOrderRequest" } ], "readOnly": true }, "client": { "allOf": [ { "$ref": "#/components/schemas/BaseClient" } ], "readOnly": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "allOf": [ { "$ref": "#/components/schemas/MetricsOrderDiscountHistoryTypeEnum" } ], "minimum": -32768, "maximum": 32767 }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "start_at": { "type": "string", "format": "date", "nullable": true }, "end_at": { "type": "string", "format": "date", "nullable": true }, "scheduled": { "type": "boolean" }, "scheduled_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "destination": { "allOf": [ { "$ref": "#/components/schemas/DestinationEnum" } ], "minimum": -32768, "maximum": 32767 }, "reason": { "type": "string", "nullable": true, "maxLength": 512 }, "tenant": { "type": "integer" }, "request_inventory": { "type": "integer", "nullable": true }, "request_service": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "created_by": { "type": "integer", "nullable": true } }, "required": [ "client", "created_at", "id", "inventory", "request", "updated_at" ] }, "MetricsOrderDiscountHistoryTypeEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - DISCOUNT\n* `1` - MANUAL" }, "MetricsReferralAgents": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "amount_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "paid_amount_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "amount_sum", "id", "paid_amount_sum" ] }, "MetricsReferralGeneral": { "type": "object", "properties": { "referral_count": { "type": "integer" }, "referral_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "referral_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "referral_avg", "referral_count", "referral_sum" ] }, "MetricsShopListView": { "type": "object", "properties": { "group_id": { "type": "integer" }, "group_name": { "type": "string" }, "count": { "type": "integer" }, "total_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_price_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tariff_ids": { "type": "array", "items": { "type": "integer" } }, "product_profitability": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "return_on_sales": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "count", "group_id", "group_name", "product_profitability", "return_on_sales", "tariff_ids", "total_price", "unit_price_sum" ] }, "MetricsShopView": { "type": "object", "properties": { "total_count": { "type": "integer" }, "total_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_price_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "profit", "total_count", "total_price", "unit_price_sum" ] }, "MetricsTransaction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "method": { "allOf": [ { "$ref": "#/components/schemas/CategoryEnum" } ], "minimum": -32768, "maximum": 32767 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "type": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "comment": { "type": "string", "nullable": true }, "created_by": { "type": "integer", "nullable": true }, "sale": { "type": "integer", "nullable": true }, "workshop": { "type": "integer", "nullable": true }, "request": { "type": "integer", "nullable": true }, "client_id": { "type": "integer" }, "client_name": { "type": "string" }, "client_phone": { "type": "string" }, "client_avatar": { "type": "string" }, "request_status": { "type": "integer" }, "deposit": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer" } }, "required": [ "client_avatar", "client_id", "client_name", "client_phone", "created_at", "id", "rental_point", "request_status" ] }, "MetricsTransactionGeneral": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "request": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "shop": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "workshop": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "amount", "date", "request", "shop", "workshop" ] }, "MetricsTransactionType": { "type": "object", "properties": { "type": { "type": "integer", "nullable": true }, "method": { "type": "integer", "nullable": true }, "name": { "type": "string", "nullable": true }, "count": { "type": "integer" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "amount", "count", "method", "name", "type" ] }, "MetricsUserSalary": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "group": { "type": "integer", "nullable": true }, "points": { "type": "array", "items": { "type": "integer" }, "readOnly": true }, "salary_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "bonus_amount": { "type": "string", "readOnly": true }, "bonus_creation": { "type": "string", "readOnly": true }, "bonus_reservation": { "type": "string", "readOnly": true }, "bonus_collection": { "type": "string", "readOnly": true }, "bonus_issue": { "type": "string", "readOnly": true }, "bonus_receivement": { "type": "string", "readOnly": true }, "bonus_delivery": { "type": "string", "readOnly": true }, "earning_amount": { "type": "string", "readOnly": true } }, "required": [ "bonus_amount", "bonus_collection", "bonus_creation", "bonus_delivery", "bonus_issue", "bonus_receivement", "bonus_reservation", "earning_amount", "id", "points", "salary_amount" ] }, "MetricsUserSalaryDetail": { "type": "object", "properties": { "type": { "type": "integer" }, "count": { "type": "integer" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "amount", "count", "profit", "type" ] }, "MetricsUserSalaryTypeEarning": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "user": { "type": "integer" }, "request": { "type": "integer" }, "request_status": { "type": "integer", "readOnly": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeFd0Enum" } ], "minimum": -32768, "maximum": 32767 }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "inventories": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "created_at", "id", "inventories", "percent", "profit", "request", "request_status", "type", "user" ] }, "MetricsWorkshopList": { "type": "object", "properties": { "new": { "type": "integer" }, "in_progress": { "type": "integer" }, "completed": { "type": "integer" }, "expired": { "type": "integer" }, "active": { "type": "integer" }, "new_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "in_progress_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "completed_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "expired_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "active_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "worker": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "service_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "resource_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "paid_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$", "readOnly": true }, "duration": { "type": "string", "readOnly": true }, "last": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "active", "active_price", "completed", "completed_price", "duration", "expired", "expired_price", "in_progress", "in_progress_price", "last", "new", "new_price", "paid_price", "price", "price_avg", "resource_price", "service_price", "worker" ] }, "MetricsWorkshopResources": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "inventory_group": { "allOf": [ { "$ref": "#/components/schemas/BaseInventoryGroup" } ], "readOnly": true }, "inventory_group_count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif": { "type": "integer", "nullable": true }, "resource": { "allOf": [ { "$ref": "#/components/schemas/Resource" } ], "readOnly": true, "nullable": true }, "extra": {} }, "required": [ "id", "inventory", "inventory_group", "resource" ] }, "ModulesEnum": { "enum": [ "finance", "sales", "marketing", "other", "hr" ], "type": "string", "description": "* `finance` - Финансы\n* `sales` - Продажи\n* `marketing` - Маркетинг\n* `other` - Другое\n* `hr` - HR" }, "News": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "title": { "type": "string", "maxLength": 255 }, "content": { "type": "string" }, "image": { "type": "string", "format": "uri", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "content", "created_at", "id", "title" ] }, "Notification": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "body": { "type": "string" }, "user": { "type": "integer" }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "readed": { "type": "boolean", "default": false }, "archived": { "type": "boolean", "default": false }, "extra": {} }, "required": [ "body", "content_type", "created_at", "id", "object_id", "user" ] }, "NotificationAccess": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "source": { "$ref": "#/components/schemas/Source949Enum" }, "topic": { "$ref": "#/components/schemas/TopicEnum" }, "enabled": { "type": "boolean" } }, "required": [ "id" ] }, "NotificationAccessBulkUpdate": { "type": "object", "properties": { "accesses": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationAccessBulkUpdateItem" } } }, "required": [ "accesses" ] }, "NotificationAccessBulkUpdateItem": { "type": "object", "properties": { "source": { "$ref": "#/components/schemas/Source949Enum" }, "topic": { "$ref": "#/components/schemas/TopicEnum" }, "enabled": { "type": "boolean" } }, "required": [ "enabled", "source", "topic" ] }, "NotificationArchive": { "type": "object", "properties": { "notification_ids": { "type": "array", "items": { "type": "integer" } }, "archive_all": { "type": "boolean", "default": false } }, "required": [ "notification_ids" ] }, "NotificationPushToken": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "token": { "type": "string", "maxLength": 255 }, "device_id": { "type": "string", "nullable": true, "maxLength": 255 }, "device_type": { "$ref": "#/components/schemas/DeviceTypeEnum" }, "is_active": { "type": "boolean", "readOnly": true }, "last_used": { "type": "string", "format": "date-time", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } }, "required": [ "created_at", "id", "is_active", "last_used", "token", "updated_at" ] }, "NotificationPushTokenUnsubscribe": { "type": "object", "properties": { "device_id": { "type": "string" } }, "required": [ "device_id" ] }, "NotificationRead": { "type": "object", "properties": { "notification_ids": { "type": "array", "items": { "type": "integer" } }, "read_all": { "type": "boolean", "default": false } }, "required": [ "notification_ids" ] }, "NullEnum": { "enum": [ null ] }, "OKAutoCar": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "title": "ID в OKAuto" }, "number": { "type": "string", "title": "Номер автомобиля", "maxLength": 20 }, "tech_passport": { "type": "string", "title": "Номер техпаспорта", "maxLength": 255 }, "published_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Дата активации" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } }, "required": [ "created_at", "id", "number", "outer_id", "tech_passport", "updated_at" ] }, "OKAutoCompany": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "title": "ID в OKAuto" }, "bin_number": { "type": "string", "nullable": true, "title": "БИН", "maxLength": 12 }, "name": { "type": "string", "nullable": true, "title": "Название компании", "maxLength": 255 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } }, "required": [ "created_at", "id", "outer_id", "updated_at" ] }, "OKAutoDriver": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "title": "ID в OKAuto" }, "iin_number": { "type": "string", "nullable": true, "title": "ИИН", "maxLength": 12 }, "doc_number": { "type": "string", "nullable": true, "title": "Номер удостоверения", "maxLength": 255 }, "doc_issue_date": { "type": "string", "format": "date", "nullable": true, "title": "Дата выдачи удостоверения" }, "first_name": { "type": "string", "nullable": true, "title": "Имя", "maxLength": 255 }, "last_name": { "type": "string", "nullable": true, "title": "Фамилия", "maxLength": 255 }, "middle_name": { "type": "string", "nullable": true, "title": "Отчество", "maxLength": 255 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } }, "required": [ "created_at", "id", "outer_id", "updated_at" ] }, "OKAutoPenalty": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "outer_id": { "type": "integer", "readOnly": true, "title": "ID в OKAuto" }, "protocol_number": { "type": "string", "title": "Номер протокола", "maxLength": 255 }, "description": { "type": "string", "nullable": true, "title": "Описание нарушения" }, "department_name": { "type": "string", "nullable": true, "title": "Орган, выявивший правонарушение", "maxLength": 255 }, "punishment_main": { "type": "string", "nullable": true, "title": "Основная мера наказания", "maxLength": 255 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true, "title": "Сумма штрафа" }, "violation_address": { "type": "string", "nullable": true, "title": "Адрес нарушения" }, "violated_at": { "type": "string", "format": "date-time", "readOnly": true }, "violation_date": { "type": "string", "format": "date", "nullable": true, "title": "Дата нарушения" }, "violation_time": { "type": "string", "format": "time", "nullable": true, "title": "Время нарушения" }, "paid": { "type": "boolean", "title": "Оплачен" }, "payment_date": { "type": "string", "format": "date-time", "nullable": true, "title": "Дата оплаты" }, "discount_expires_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Дата истечения скидки" }, "payment_kno": { "type": "string", "nullable": true, "title": "КНО", "maxLength": 255 }, "payment_kbk": { "type": "string", "nullable": true, "title": "КБК", "maxLength": 255 }, "payment_knp": { "type": "string", "nullable": true, "title": "КНП", "maxLength": 255 }, "beneficiary_tax_office_name": { "type": "string", "nullable": true, "title": "Название налогового органа", "maxLength": 255 }, "beneficiary_tax_iban": { "type": "string", "nullable": true, "title": "IBAN налогового органа", "maxLength": 255 }, "beneficiary_tax_bin_number": { "type": "string", "nullable": true, "title": "БИН налогового органа", "maxLength": 255 }, "pdf": { "type": "string", "format": "uri", "nullable": true, "title": "PDF протокола" }, "photo_urls": { "type": "array", "items": { "type": "string", "format": "uri", "maxLength": 200 }, "title": "Ссылки на фото нарушения" }, "car": { "allOf": [ { "$ref": "#/components/schemas/OKAutoCar" } ], "readOnly": true }, "driver": { "allOf": [ { "$ref": "#/components/schemas/OKAutoDriver" } ], "readOnly": true }, "company": { "allOf": [ { "$ref": "#/components/schemas/OKAutoCompany" } ], "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "state": { "type": "integer", "nullable": true }, "inventory": { "type": "string", "readOnly": true }, "request": { "type": "string", "readOnly": true }, "client": { "type": "string", "readOnly": true }, "noted": { "type": "boolean", "title": "Просмотрен" } }, "required": [ "car", "client", "company", "created_at", "driver", "id", "inventory", "outer_id", "protocol_number", "request", "updated_at", "violated_at" ] }, "OKAutoPenaltyGeneral": { "type": "object", "properties": { "count": { "type": "integer", "readOnly": true }, "paid_count": { "type": "integer", "readOnly": true }, "pending_count": { "type": "integer", "readOnly": true }, "total_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "pending_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "count", "paid_amount", "paid_count", "pending_amount", "pending_count", "total_amount" ] }, "OKAutoState": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "color": { "type": "string", "maxLength": 9 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } }, "required": [ "created_at", "id", "name", "updated_at" ] }, "OKAutoTenantCar": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "car": { "allOf": [ { "$ref": "#/components/schemas/OKAutoCar" } ], "readOnly": true }, "inventory": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } }, "required": [ "car", "created_at", "id", "inventory", "outer_id", "updated_at" ] }, "OrderAction": { "type": "object", "properties": { "order_inventories": { "type": "array", "items": { "type": "integer" } }, "status": { "$ref": "#/components/schemas/RequestStatusEnum" }, "action": { "$ref": "#/components/schemas/ActionFd0Enum" }, "datetime": { "type": "string", "format": "date-time", "nullable": true } }, "required": [ "status" ] }, "OrderPaymentStatusToEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - Ожидается оплата\n* `1` - Оплата произведена\n* `2` - Частичная оплата" }, "OrderRequestAction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "user": { "type": "integer" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeFd0Enum" } ], "minimum": -32768, "maximum": 32767 }, "inventories": { "type": "array", "items": { "type": "integer" }, "readOnly": true } }, "required": [ "created_at", "id", "inventories", "type", "user" ] }, "OrderRequestAmount": { "type": "object", "properties": { "price_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tax_amount_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "paid_amount_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "debt_amount_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "debt_amount_sum", "paid_amount_sum", "price_discount_sum", "price_sum", "tax_amount_sum" ] }, "OrderRequestCondition": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_inventory": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "condition": { "allOf": [ { "$ref": "#/components/schemas/ConditionEnum" } ], "minimum": 0, "maximum": 32767 }, "value": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "split_client": { "type": "integer", "maximum": 100, "minimum": 0 }, "split_company": { "type": "integer", "maximum": 100, "minimum": 0 } }, "required": [ "id" ] }, "OrderRequestCount": { "type": "object", "properties": { "all": { "type": "integer" }, "request": { "type": "integer" }, "reserve": { "type": "integer" }, "inrent": { "type": "integer" }, "completed": { "type": "integer" }, "cancelled": { "type": "integer" }, "debtor": { "type": "integer" }, "exceed": { "type": "integer" }, "deleted": { "type": "integer" } }, "required": [ "all", "cancelled", "completed", "debtor", "deleted", "exceed", "inrent", "request", "reserve" ] }, "OrderRequestCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "plus_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "rent_start": { "type": "string", "format": "date-time" }, "rent_end": { "type": "string", "format": "date-time" }, "autorenewal": { "type": "boolean" }, "autowithdraw": { "type": "boolean" }, "counting_duration": { "type": "string", "nullable": true }, "price_inventory_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_delivery": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_referral": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tax_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$" }, "tax_included": { "type": "boolean" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_combine": { "type": "boolean" }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_auto": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_custom": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_step_duriation": { "type": "string" }, "penalty_disabled": { "type": "boolean" }, "extra": {}, "active": { "type": "boolean" }, "tenant": { "type": "integer" }, "client": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "rental_point_return": { "type": "integer", "nullable": true }, "bag": { "type": "string", "format": "uuid", "nullable": true }, "default_tarif_period": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "updated_at" ] }, "OrderRequestDeliveryCancel": { "type": "object", "properties": { "comment": { "type": "string" } }, "required": [ "comment" ] }, "OrderRequestDeliveryCount": { "type": "object", "properties": { "pending": { "type": "integer" }, "in_progress": { "type": "integer" }, "done": { "type": "integer" } }, "required": [ "done", "in_progress", "pending" ] }, "OrderRequestDeliveryDelivered": { "type": "object", "properties": { "code": { "type": "string" } } }, "OrderRequestDeposit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_by": { "type": "integer", "readOnly": true }, "payment_type": { "type": "integer", "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type305Enum" } ], "minimum": -32768, "maximum": 32767 }, "status": { "allOf": [ { "$ref": "#/components/schemas/Status0aeEnum" } ], "minimum": -32768, "maximum": 32767 }, "request": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "deposit": { "type": "string", "maxLength": 255 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "returned_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "transaction_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "created_at", "created_by", "deposit", "id", "request", "returned_at", "status", "transaction_amount", "type" ] }, "OrderRequestDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "services": { "type": "array", "items": { "$ref": "#/components/schemas/DetailOrderRequestService" } }, "actions": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestAction" }, "readOnly": true }, "discount_type": { "type": "integer" }, "status_color": { "allOf": [ { "$ref": "#/components/schemas/StatusColorEnum" } ], "readOnly": true }, "pending_inventories": { "type": "integer", "readOnly": true }, "inrent_inventories": { "type": "integer", "readOnly": true }, "completed_inventories": { "type": "integer", "readOnly": true }, "bonus_max": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "bonus_used": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "bonus_available": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "status": { "allOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" } ], "minimum": 0, "maximum": 32767 }, "plus_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 64 }, "rent_start": { "type": "string", "format": "date-time" }, "rent_end": { "type": "string", "format": "date-time" }, "rent_fact_start": { "type": "string", "format": "date-time", "nullable": true }, "rent_fact_end": { "type": "string", "format": "date-time", "nullable": true }, "autorenewal": { "type": "boolean" }, "autowithdraw": { "type": "boolean" }, "duriation": { "type": "string", "nullable": true }, "initial_duriation": { "type": "string", "nullable": true }, "counting_duration": { "type": "string", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_inventory": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_inventory_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_delivery": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_referral": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tax_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$" }, "tax_included": { "type": "boolean" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_inventory_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_service_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_combine": { "type": "boolean" }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "payment_status": { "allOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "time_exceed": { "type": "boolean" }, "penalty_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_auto": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_custom": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_duriation": { "type": "string", "nullable": true }, "penalty_step_duriation": { "type": "string" }, "penalty_disabled": { "type": "boolean" }, "extra": {}, "deleted": { "type": "boolean" }, "active": { "type": "boolean" }, "tenant": { "type": "integer" }, "client": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "rental_point_return": { "type": "integer", "nullable": true }, "bag": { "type": "string", "format": "uuid", "nullable": true }, "default_tarif_period": { "type": "integer", "nullable": true } }, "required": [ "actions", "bonus_available", "bonus_max", "bonus_used", "completed_inventories", "created_at", "discount_type", "id", "inrent_inventories", "pending_inventories", "rent_end", "rent_start", "services", "status_color", "updated_at" ] }, "OrderRequestInventoryBulkCreate": { "type": "object", "properties": { "request": { "type": "integer", "writeOnly": true, "nullable": true }, "inventories": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestInventoryCreate" } } }, "required": [ "inventories" ] }, "OrderRequestInventoryBulkDelete": { "type": "object", "properties": { "request": { "type": "integer", "writeOnly": true, "nullable": true }, "ids": { "type": "array", "items": { "type": "integer" } } }, "required": [ "ids" ] }, "OrderRequestInventoryBulkUpdate": { "type": "object", "properties": { "request": { "type": "integer", "writeOnly": true, "nullable": true }, "inventories": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestInventoryUpdate" } } }, "required": [ "inventories" ] }, "OrderRequestInventoryCreate": { "type": "object", "properties": { "request": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "inventory": { "type": "integer" }, "tarif": { "type": "integer", "nullable": true }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "autorenewal": { "type": "boolean", "writeOnly": true, "nullable": true } }, "required": [ "inventory" ] }, "OrderRequestInventoryEfficency": { "type": "object", "properties": { "name": { "type": "string" }, "earnings": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "request_cnt": { "type": "integer" }, "request_days": { "type": "integer" }, "success_cnt": { "type": "integer" }, "success_days": { "type": "integer" }, "success_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "efficency": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "object_id": { "type": "integer" }, "request_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "days": { "type": "integer" } }, "required": [ "days", "name", "object_id", "request_cnt", "request_days", "success_cnt", "success_days" ] }, "OrderRequestInventoryGroupCreate": { "type": "object", "properties": { "request": { "type": "integer", "writeOnly": true }, "time_period": { "type": "integer", "writeOnly": true, "nullable": true }, "group": { "type": "integer", "writeOnly": true, "nullable": true }, "start_at": { "type": "string", "format": "date-time", "writeOnly": true }, "end_at": { "type": "string", "format": "date-time", "writeOnly": true }, "count": { "type": "integer", "writeOnly": true, "default": 1 }, "filter": { "writeOnly": true, "nullable": true }, "filter_exact": { "type": "boolean", "writeOnly": true, "default": false }, "exclude_ids": { "type": "array", "items": { "type": "integer" }, "writeOnly": true }, "inventory_id": { "type": "integer" }, "set_id": { "type": "string" } }, "required": [ "end_at", "exclude_ids", "start_at" ] }, "OrderRequestInventoryList": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer" }, "client": { "allOf": [ { "$ref": "#/components/schemas/BaseClient" } ], "readOnly": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/CarInventory" } ], "readOnly": true }, "tarif": { "type": "integer", "nullable": true }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "discount": { "type": "integer", "nullable": true }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "fact_start_at": { "type": "string", "format": "date-time", "nullable": true }, "fact_end_at": { "type": "string", "format": "date-time", "nullable": true }, "set": { "type": "integer", "nullable": true }, "set_group": { "type": "string", "nullable": true }, "extra": {}, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "created_by": { "type": "integer", "nullable": true }, "warehouse": { "type": "integer", "nullable": true }, "counterparty": { "type": "integer", "nullable": true }, "exchange": { "type": "integer", "nullable": true } }, "required": [ "client", "id", "inventory", "request" ] }, "OrderRequestInventoryPeriodChange": { "type": "object", "properties": { "time_period": { "type": "integer", "writeOnly": true, "nullable": true }, "inventory_ids": { "type": "array", "items": { "type": "integer" } }, "sets": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestInventorySetPeriodChange" } } }, "required": [ "inventory_ids", "sets", "time_period" ] }, "OrderRequestInventorySetCreate": { "type": "object", "properties": { "request": { "type": "integer", "writeOnly": true, "nullable": true }, "time_period": { "type": "integer", "writeOnly": true, "nullable": true }, "set": { "type": "integer", "writeOnly": true }, "start_at": { "type": "string", "format": "date-time", "writeOnly": true }, "end_at": { "type": "string", "format": "date-time", "writeOnly": true }, "exclude_ids": { "type": "array", "items": { "type": "integer" } }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestInventorySetCreateFilter" }, "writeOnly": true } }, "required": [ "end_at", "exclude_ids", "filters", "set", "start_at" ] }, "OrderRequestInventorySetCreateFilter": { "type": "object", "properties": { "count": { "type": "integer", "default": 1 }, "filter": {} } }, "OrderRequestInventorySetPeriodChange": { "type": "object", "properties": { "set_id": { "type": "integer" }, "inventory_ids": { "type": "array", "items": { "type": "integer" } } }, "required": [ "inventory_ids", "set_id" ] }, "OrderRequestInventoryUpdate": { "type": "object", "properties": { "type": { "type": "integer", "writeOnly": true, "default": 0 }, "set": { "type": "integer", "writeOnly": true, "nullable": true }, "set_group": { "type": "string", "writeOnly": true, "nullable": true }, "inventory_group": { "type": "integer", "writeOnly": true, "nullable": true }, "inventory": { "type": "integer", "writeOnly": true, "nullable": true }, "tarif": { "type": "integer", "writeOnly": true, "nullable": true }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true }, "tarif_duration": { "type": "string", "writeOnly": true }, "start_at": { "type": "string", "format": "date-time", "writeOnly": true }, "end_at": { "type": "string", "format": "date-time", "writeOnly": true }, "extra": { "writeOnly": true }, "warehouse": { "type": "integer", "writeOnly": true, "nullable": true }, "counterparty": { "type": "integer", "writeOnly": true, "nullable": true }, "discount": { "type": "integer", "writeOnly": true, "nullable": true }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true, "nullable": true, "default": "0.00" }, "id": { "type": "integer", "writeOnly": true } }, "required": [ "end_at", "id", "start_at", "tarif" ] }, "OrderRequestPause": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "start_at": { "type": "string", "format": "date-time" }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "request": { "type": "integer" }, "created_by": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "request", "start_at", "updated_at" ] }, "OrderRequestPenalty": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_status": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type978Enum" } ], "readOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount_paid": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "reason": { "type": "string", "nullable": true, "maxLength": 512 }, "custom": { "type": "boolean" }, "tenant": { "type": "integer" }, "request_inventory": { "type": "integer", "nullable": true }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "penalty": { "type": "integer", "nullable": true } }, "required": [ "created_at", "created_by", "id", "request_status", "type", "updated_at" ] }, "OrderRequestReceipt": { "type": "object", "properties": { "id": { "type": "integer" }, "unique_id": { "type": "string" }, "manager": { "type": "string" }, "client_name": { "type": "string", "readOnly": true }, "client_phone": { "type": "string", "readOnly": true }, "rent_start": { "type": "string", "format": "date-time" }, "rent_end": { "type": "string", "format": "date-time" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "default": "0.00" }, "date": { "type": "string", "format": "date-time" }, "comment_list": { "type": "array", "items": { "type": "string" }, "readOnly": true }, "rental_point_name": { "type": "string", "readOnly": true }, "rental_point_address": { "type": "string", "readOnly": true }, "deposit": { "type": "integer" }, "groups": { "type": "array", "items": { "$ref": "#/components/schemas/ReceiptRow" }, "readOnly": true }, "sets": { "type": "array", "items": { "$ref": "#/components/schemas/ReceiptRow" }, "readOnly": true }, "services": { "type": "array", "items": { "$ref": "#/components/schemas/ReceiptRow" }, "readOnly": true } }, "required": [ "client_name", "client_phone", "comment_list", "date", "deposit", "groups", "id", "manager", "rent_end", "rent_start", "rental_point_address", "rental_point_name", "services", "sets" ] }, "OrderRequestReferral": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "request": { "type": "integer", "readOnly": true }, "agent": { "type": "integer", "nullable": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "status": { "allOf": [ { "$ref": "#/components/schemas/OrderRequestReferralStatusEnum" } ], "readOnly": true }, "status_changed_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "request_status": { "type": "integer", "readOnly": true } }, "required": [ "created_at", "id", "request", "request_status", "status", "status_changed_at" ] }, "OrderRequestReferralStatusEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - paid\n* `1` - pending" }, "OrderRequestSchedule": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client": { "$ref": "#/components/schemas/BaseClient" }, "status": { "allOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" } ], "minimum": 0, "maximum": 32767 }, "rent_start": { "type": "string", "format": "date-time" }, "rent_fact_start": { "type": "string", "format": "date-time", "nullable": true }, "rent_end": { "type": "string", "format": "date-time" }, "rent_fact_end": { "type": "string", "format": "date-time", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_inventory": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_inventory_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_service_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "payment_status": { "allOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "time_exceed": { "type": "boolean" }, "penalty_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "status_color": { "allOf": [ { "$ref": "#/components/schemas/StatusColorEnum" } ], "readOnly": true }, "rental_point": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "deleted": { "type": "boolean" }, "plus_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "extra": {}, "autorenewal": { "type": "boolean" } }, "required": [ "client", "created_at", "id", "rent_end", "rent_start", "status_color", "updated_at" ] }, "OrderRequestServiceCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "info": { "type": "string", "nullable": true }, "extra": {}, "tenant": { "type": "integer" }, "request": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "request_inventory": { "type": "integer", "nullable": true }, "service": { "type": "integer" }, "worker": { "type": "integer", "nullable": true }, "tarif": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "service", "updated_at" ] }, "OrderRequestWeekday": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_inventory": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "work_days": { "type": "integer", "maximum": 32767, "minimum": 0 }, "rest_days": { "type": "integer", "maximum": 32767, "minimum": 0 }, "rest_weekdays": { "type": "array", "items": { "type": "integer" } }, "custom": { "type": "boolean" }, "exclude_rest": { "type": "boolean" } }, "required": [ "id" ] }, "OrderReview": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "rating": { "type": "integer", "maximum": 5, "minimum": 1 }, "comment": { "type": "string" }, "list": { "type": "array", "items": { "type": "string", "maxLength": 32 }, "nullable": true }, "product": { "type": "integer", "nullable": true } }, "required": [ "id", "rating" ] }, "OrderSale": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client": { "type": "integer", "nullable": true }, "agent": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "created_by": { "type": "integer" }, "rental_point": { "type": "integer", "readOnly": true, "nullable": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/SaleStatusToEnum" } ], "readOnly": true } }, "required": [ "id", "paid_amount", "price", "price_discount", "rental_point", "status" ] }, "OrderSaleDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client": { "$ref": "#/components/schemas/BaseClient" }, "agent": { "$ref": "#/components/schemas/Referral" }, "discount": { "type": "integer", "nullable": true }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "rental_point": { "type": "integer", "readOnly": true, "nullable": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/SaleStatusToEnum" } ], "readOnly": true }, "groups": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "payments": { "type": "array", "items": { "$ref": "#/components/schemas/BaseTransaction" }, "readOnly": true } }, "required": [ "agent", "client", "created_at", "created_by", "groups", "id", "paid_amount", "payments", "price", "price_discount", "rental_point", "status" ] }, "OrderSaleInventory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_group_count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "warehouse": { "type": "integer", "nullable": true }, "counterparty": { "type": "integer", "nullable": true }, "tarif": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {} }, "required": [ "id", "inventory" ] }, "OrderSaleInventoryBulkCreate": { "type": "object", "properties": { "inventories": { "type": "array", "items": { "$ref": "#/components/schemas/OrderSaleInventoryCreate" } } }, "required": [ "inventories" ] }, "OrderSaleInventoryBulkDelete": { "type": "object", "properties": { "ids": { "type": "array", "items": { "type": "integer" } } }, "required": [ "ids" ] }, "OrderSaleInventoryBulkUpdate": { "type": "object", "properties": { "inventories": { "type": "array", "items": { "$ref": "#/components/schemas/OrderSaleInventoryUpdate" } } }, "required": [ "inventories" ] }, "OrderSaleInventoryCreate": { "type": "object", "properties": { "inventory": { "type": "integer", "writeOnly": true, "nullable": true }, "inventory_group": { "type": "integer", "writeOnly": true }, "inventory_group_count": { "type": "integer", "writeOnly": true }, "warehouse": { "type": "integer", "writeOnly": true }, "counterparty": { "type": "integer", "writeOnly": true }, "tarif": { "type": "integer", "writeOnly": true, "nullable": true }, "discount": { "type": "integer", "writeOnly": true, "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true }, "extra": { "writeOnly": true } }, "required": [ "inventory_group", "inventory_group_count", "warehouse" ] }, "OrderSaleInventoryGroup": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 512 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "deleted": { "type": "boolean" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "category": { "type": "integer", "nullable": true }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_count": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_type": { "$ref": "#/components/schemas/UnitTypeEnum" }, "unit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "image": { "type": "string", "format": "uri", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "barcode": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "filters": { "type": "array", "items": { "type": "string", "maxLength": 32 }, "nullable": true }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "published": { "type": "boolean" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "sales": { "type": "array", "items": { "$ref": "#/components/schemas/OrderSaleInventory" } } }, "required": [ "created_at", "id", "sales", "updated_at" ] }, "OrderSaleInventoryUpdate": { "type": "object", "properties": { "inventory": { "type": "integer", "writeOnly": true, "nullable": true }, "inventory_group": { "type": "integer", "writeOnly": true }, "inventory_group_count": { "type": "integer", "writeOnly": true }, "warehouse": { "type": "integer", "writeOnly": true }, "counterparty": { "type": "integer", "writeOnly": true }, "tarif": { "type": "integer", "writeOnly": true, "nullable": true }, "discount": { "type": "integer", "writeOnly": true, "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true }, "extra": { "writeOnly": true }, "id": { "type": "integer", "writeOnly": true } }, "required": [ "id", "inventory_group", "inventory_group_count", "warehouse" ] }, "OrderSourceEnum": { "enum": [ "exceed", "request", "reserve", "inrent", "cancel", "completed", "debtor" ], "type": "string", "description": "* `exceed` - exceed\n* `request` - Запрос\n* `reserve` - reserve\n* `inrent` - В аренде\n* `cancel` - cancel\n* `completed` - Завершено\n* `debtor` - Должник" }, "OrderStatusFromEnum": { "enum": [ "exceed", "request", "reserve", "inrent", "cancel", "completed", "debtor" ], "type": "string", "description": "* `exceed` - exceed\n* `request` - Запрос\n* `reserve` - reserve\n* `inrent` - В аренде\n* `cancel` - cancel\n* `completed` - Завершено\n* `debtor` - Должник" }, "OrderStatusToEnum": { "enum": [ "exceed", "request", "reserve", "inrent", "cancel", "completed", "debtor" ], "type": "string", "description": "* `exceed` - exceed\n* `request` - Запрос\n* `reserve` - reserve\n* `inrent` - В аренде\n* `cancel` - cancel\n* `completed` - Завершено\n* `debtor` - Должник" }, "PaginatedBlacklistIdentityList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/BlacklistIdentity" } } } }, "PaginatedBlacklistListList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/BlacklistList" } } } }, "PaginatedBonusTransactionList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/BonusTransaction" } } } }, "PaginatedClientList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Client" } } } }, "PaginatedClientTickList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ClientTick" } } } }, "PaginatedDetailOrderRequestServiceList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/DetailOrderRequestService" } } } }, "PaginatedDisableListList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/DisableList" } } } }, "PaginatedDocumentV2List": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentV2" } } } }, "PaginatedFileAttachmentBulkCreateList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/FileAttachmentBulkCreate" } } } }, "PaginatedImageAttachmentBulkCreateList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ImageAttachmentBulkCreate" } } } }, "PaginatedInventorizationDetailList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventorizationDetail" } } } }, "PaginatedInventorizationTasklistList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventorizationTasklist" } } } }, "PaginatedInventoryDistanceList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryDistance" } } } }, "PaginatedInventoryEarningDetailList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryEarningDetail" } } } }, "PaginatedInventoryEarningList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryEarning" } } } }, "PaginatedInventoryEfficencyList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryEfficency" } } } }, "PaginatedInventoryForSaleList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryForSale" } } } }, "PaginatedInventoryGroupEarningList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryGroupEarning" } } } }, "PaginatedInventoryGroupList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryGroup" } } } }, "PaginatedInventoryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Inventory" } } } }, "PaginatedInventoryMaintenanceList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryMaintenance" } } } }, "PaginatedInventoryMaintenanceTableList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryMaintenanceTable" } } } }, "PaginatedInventoryMaintenanceTasklistList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventoryMaintenanceTasklist" } } } }, "PaginatedInventoryScheduleList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySchedule" } } } }, "PaginatedInventorySetList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySet" } } } }, "PaginatedKaspiMetricsAccountList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/KaspiMetricsAccount" } } } }, "PaginatedKaspiTransactionDetailList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/KaspiTransactionDetail" } } } }, "PaginatedKaspiTransactionList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/KaspiTransaction" } } } }, "PaginatedLeadListList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/LeadList" } } } }, "PaginatedLeadTaskList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/LeadTask" } } } }, "PaginatedLogEntryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/LogEntry" } } } }, "PaginatedManageProductList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ManageProduct" } } } }, "PaginatedMetricsClientBonusBalanceList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsClientBonusBalance" } } } }, "PaginatedMetricsClientBonusList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsClientBonus" } } } }, "PaginatedMetricsClientList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsClient" } } } }, "PaginatedMetricsDeliveryListList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsDeliveryList" } } } }, "PaginatedMetricsDepositList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsDeposit" } } } }, "PaginatedMetricsDiscountList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsDiscount" } } } }, "PaginatedMetricsGeneralDetailList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsGeneralDetail" } } } }, "PaginatedMetricsGeneralList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsGeneral" } } } }, "PaginatedMetricsGeneralRequestDetailList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsGeneralRequestDetail" } } } }, "PaginatedMetricsInventoryDepreciationList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsInventoryDepreciation" } } } }, "PaginatedMetricsOrderDiscountHistoryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsOrderDiscountHistory" } } } }, "PaginatedMetricsReferralAgentsList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsReferralAgents" } } } }, "PaginatedMetricsTransactionGeneralList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsTransactionGeneral" } } } }, "PaginatedMetricsTransactionList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsTransaction" } } } }, "PaginatedMetricsUserSalaryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsUserSalary" } } } }, "PaginatedMetricsUserSalaryTypeEarningList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsUserSalaryTypeEarning" } } } }, "PaginatedMetricsWorkshopListList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsWorkshopList" } } } }, "PaginatedMetricsWorkshopResourcesList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/MetricsWorkshopResources" } } } }, "PaginatedNewsList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/News" } } } }, "PaginatedNotificationList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Notification" } } } }, "PaginatedNotificationPushTokenList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationPushToken" } } } }, "PaginatedOKAutoPenaltyList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/OKAutoPenalty" } } } }, "PaginatedOrderRequestInventoryEfficencyList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestInventoryEfficency" } } } }, "PaginatedOrderRequestReferralList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestReferral" } } } }, "PaginatedOrderSaleDetailList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/OrderSaleDetail" } } } }, "PaginatedPenaltyMetricsList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/PenaltyMetrics" } } } }, "PaginatedPlusBonusTransactionList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/PlusBonusTransaction" } } } }, "PaginatedPlusProductList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProduct" } } } }, "PaginatedPlusProductViewList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductView" } } } }, "PaginatedProductWarehouseActionList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ProductWarehouseAction" } } } }, "PaginatedProductWarehouseDetailList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ProductWarehouseDetail" } } } }, "PaginatedProfileList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Profile" } } } }, "PaginatedRentalPointList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/RentalPoint" } } } }, "PaginatedResourceList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Resource" } } } }, "PaginatedRingostatResultList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/RingostatResult" } } } }, "PaginatedSMSBalanceHistoryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/SMSBalanceHistory" } } } }, "PaginatedSMSBroadcastList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/SMSBroadcast" } } } }, "PaginatedSMSBroadcastTemplateList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/SMSBroadcastTemplate" } } } }, "PaginatedSMSMessageList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/SMSMessage" } } } }, "PaginatedServiceList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Service" } } } }, "PaginatedServiceMetricsHistoryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceMetricsHistory" } } } }, "PaginatedServiceMetricsList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceMetrics" } } } }, "PaginatedServiceWorkerMetricsList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceWorkerMetrics" } } } }, "PaginatedSharedProductList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/SharedProduct" } } } }, "PaginatedSipuniCallRecordList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/SipuniCallRecord" } } } }, "PaginatedSipuniOperatorList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/SipuniOperator" } } } }, "PaginatedTarifList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Tarif" } } } }, "PaginatedTenantInvoiceList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/TenantInvoice" } } } }, "PaginatedUserRentalPointList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/UserRentalPoint" } } } }, "PaginatedUserSubleaseEarningHistoryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/UserSubleaseEarningHistory" } } } }, "PaginatedUserSubleaseEarningInventoryList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/UserSubleaseEarningInventory" } } } }, "PaginatedUserSubleaseEarningList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/UserSubleaseEarning" } } } }, "PaginatedWorkshiftList": { "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer", "example": 123 }, "next": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=4" }, "previous": { "type": "string", "nullable": true, "format": "uri", "example": "http://api.yume.cloud/accounts/?page=2" }, "results": { "type": "array", "items": { "$ref": "#/components/schemas/Workshift" } } } }, "ParamNameEnum": { "enum": [ "generalCallID", "callID" ], "type": "string", "description": "* `generalCallID` - generalCallID\n* `callID` - callID" }, "PassportIndividual": { "type": "object", "properties": { "iin": { "type": "string", "nullable": true, "maxLength": 14, "minLength": 12 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "document_number": { "type": "string", "nullable": true, "maxLength": 255 }, "issuer_manual": { "type": "string", "nullable": true, "maxLength": 255 }, "issue_date": { "type": "string", "format": "date", "nullable": true }, "issue_date_end": { "type": "string", "format": "date", "nullable": true }, "birth_date": { "type": "string", "format": "date", "nullable": true } } }, "PassportLegal": { "type": "object", "properties": { "bin": { "type": "string", "nullable": true, "maxLength": 12, "minLength": 12 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "director": { "type": "string", "nullable": true, "maxLength": 255 }, "iban": { "type": "string", "nullable": true, "maxLength": 25 }, "bik": { "type": "string", "nullable": true, "maxLength": 8 }, "bank": { "type": "string", "nullable": true, "maxLength": 255 } } }, "PasswordResetOTPConfirm": { "type": "object", "properties": { "token": { "type": "string" }, "email": { "type": "string", "format": "email" }, "password": { "type": "string" } }, "required": [ "email", "password", "token" ] }, "PasswordResetOTPInit": { "type": "object", "properties": { "email": { "type": "string", "format": "email" } }, "required": [ "email" ] }, "PasswordResetOTPVerify": { "type": "object", "properties": { "otp": { "type": "string", "maxLength": 6, "minLength": 6 }, "email": { "type": "string", "format": "email" } }, "required": [ "email", "otp" ] }, "PatchedAttractionMethod": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "tenant": { "type": "integer" } } }, "PatchedBaseInventoryMaintenance": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "state": { "type": "integer", "nullable": true }, "interval": { "type": "string", "nullable": true }, "inventory": { "type": "integer" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type5b9Enum" } ], "minimum": -32768, "maximum": 32767 }, "period_type": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/PeriodTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "maintenance_date": { "type": "string", "format": "date-time", "nullable": true }, "distance_threshold": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "time_threshold": { "type": "string", "nullable": true }, "responsible": { "type": "integer" }, "total_distance": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "distance": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "comment": { "type": "string", "readOnly": true, "nullable": true }, "fact_maintenance_date": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_total_distance": { "type": "integer", "readOnly": true, "nullable": true } } }, "PatchedBlacklistCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "photo": { "type": "string", "format": "uri", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "iin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "bin": { "type": "string", "nullable": true, "maxLength": 16, "minLength": 12 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "extra": {}, "client_id": { "type": "integer", "writeOnly": true, "nullable": true } } }, "PatchedCategory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "icon": { "type": "string", "format": "uri", "nullable": true }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "deleted": { "type": "boolean" }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "extra": {}, "tenant": { "type": "integer" }, "parent": { "type": "integer", "nullable": true } } }, "PatchedClientEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "ticks": { "type": "array", "items": { "type": "integer", "writeOnly": true }, "writeOnly": true }, "bonus": { "allOf": [ { "$ref": "#/components/schemas/ClientBonus" } ], "readOnly": true }, "orders_count": { "type": "integer", "readOnly": true }, "orders_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_debt_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "overdue_rentals_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "transfer_count": { "type": "integer", "readOnly": true }, "transfer_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "last_rent_date": { "type": "string", "format": "date-time", "readOnly": true }, "total_time": { "type": "string", "readOnly": true }, "iin": { "type": "string", "readOnly": true }, "bin": { "type": "string", "readOnly": true }, "legal": { "allOf": [ { "$ref": "#/components/schemas/PassportLegal" } ], "writeOnly": true, "nullable": true }, "individual": { "allOf": [ { "$ref": "#/components/schemas/PassportIndividual" } ], "writeOnly": true, "nullable": true }, "balance": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "name": { "type": "string", "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type433Enum" } ], "minimum": 0, "maximum": 2147483647 }, "legal_type": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/LegalTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "gender": { "nullable": true, "minimum": 0, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/GenderEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "phone": { "type": "string", "maxLength": 32 }, "deposit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "agreement_id": { "type": "string", "readOnly": true, "nullable": true }, "signed": { "type": "boolean" }, "sign_date": { "type": "string", "format": "date", "nullable": true }, "sign_expires": { "type": "string", "format": "date", "nullable": true }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "deleted": { "type": "boolean" }, "tenant": { "type": "integer" }, "legal_passport": { "type": "integer", "nullable": true }, "individual_passport": { "type": "integer", "nullable": true }, "attraction": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "user": { "type": "integer", "nullable": true } } }, "PatchedClientPassportIndividual": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "iin": { "type": "string", "nullable": true, "maxLength": 14, "minLength": 12 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "document_number": { "type": "string", "nullable": true, "maxLength": 255 }, "issuer_manual": { "type": "string", "nullable": true, "maxLength": 255 }, "issue_date": { "type": "string", "format": "date", "nullable": true }, "issue_date_end": { "type": "string", "format": "date", "nullable": true }, "birth_date": { "type": "string", "format": "date", "nullable": true }, "extra": {}, "tenant": { "type": "integer" } } }, "PatchedClientPassportLegal": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "bin": { "type": "string", "nullable": true, "maxLength": 12, "minLength": 12 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "director": { "type": "string", "nullable": true, "maxLength": 255 }, "iban": { "type": "string", "nullable": true, "maxLength": 25 }, "bik": { "type": "string", "nullable": true, "maxLength": 8 }, "bank": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "tenant": { "type": "integer" } } }, "PatchedClientTick": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "code": { "type": "string", "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$", "maxLength": 9 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "blacklist": { "type": "boolean" }, "request_count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "request_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "debt_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "tenant": { "type": "integer" } } }, "PatchedCommentAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "body": { "type": "string" }, "user": { "type": "integer", "readOnly": true, "nullable": true }, "context": { "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } } }, "PatchedCompanyCart": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/CompanyCartItem" }, "readOnly": true }, "company_name": { "type": "string", "readOnly": true }, "company_address": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 255 }, "status": { "readOnly": true, "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Status26aEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "payment_type": { "$ref": "#/components/schemas/PaymentTypeEnum" }, "payment_status": { "allOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" } ], "readOnly": true }, "payment_invoice_url": { "type": "string", "format": "uri", "readOnly": true, "nullable": true }, "bonus": { "type": "boolean" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "fact_start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "fact_end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "outer_id": { "type": "integer", "readOnly": true, "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 2048 }, "user": { "type": "integer", "readOnly": true, "nullable": true }, "tenant": { "type": "integer", "nullable": true }, "company": { "type": "integer", "nullable": true } } }, "PatchedCompanyCartItem": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "product_name": { "type": "string", "readOnly": true }, "quantity": { "type": "integer", "minimum": 1 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "cart": { "type": "integer", "readOnly": true }, "product": { "type": "integer" }, "product_company": { "type": "integer", "nullable": true }, "product_price": { "type": "integer", "nullable": true } } }, "PatchedCounterparty": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "access": { "type": "array", "items": { "type": "integer" }, "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "side": { "allOf": [ { "$ref": "#/components/schemas/SideEnum" } ], "minimum": -32768, "maximum": 32767 }, "source": { "allOf": [ { "$ref": "#/components/schemas/CounterpartySourceEnum" } ], "minimum": -32768, "maximum": 32767 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type6ecEnum" } ], "minimum": -32768, "maximum": 32767 }, "category": { "allOf": [ { "$ref": "#/components/schemas/CategoryEnum" } ], "minimum": -32768, "maximum": 32767 }, "iin": { "type": "string", "nullable": true, "maxLength": 12, "minLength": 12 }, "bin": { "type": "string", "nullable": true, "maxLength": 12, "minLength": 12 }, "iban": { "type": "string", "nullable": true, "maxLength": 25 }, "bank": { "type": "string", "nullable": true, "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "owner": { "type": "string", "nullable": true, "maxLength": 255 }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "extra": {}, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" } } }, "PatchedCustomField": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "key": { "$ref": "#/components/schemas/CustomFieldKeyEnum" }, "name": { "type": "string", "maxLength": 255 }, "label": { "type": "string", "maxLength": 255 }, "placeholder": { "type": "string", "nullable": true, "maxLength": 255 }, "required": { "type": "boolean" }, "table": { "type": "boolean" }, "filter": { "type": "boolean" }, "type": { "$ref": "#/components/schemas/CustomFieldTypeEnum" }, "options": {} } }, "PatchedCustomFieldUpdate": { "type": "object", "properties": { "inventory_group": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "inventory_set": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "inventory": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "service": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "client": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "client_document": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "rental_point": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "order": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "order_inventory": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "order_service": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "funnel_lead": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } }, "category": { "type": "array", "items": { "$ref": "#/components/schemas/CustomFieldList" } } } }, "PatchedDiscountUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "discount": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "discount_type": { "allOf": [ { "$ref": "#/components/schemas/DiscountTypeEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeCf7Enum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "extra": {}, "active": { "type": "boolean" }, "start_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Начало Акции" }, "end_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Конец Акции" }, "usage_limit": { "type": "integer", "maximum": 2147483647, "minimum": 0 } } }, "PatchedDocumentV2Detail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "name": { "type": "string" }, "source": { "allOf": [ { "$ref": "#/components/schemas/Source3eeEnum" } ], "default": 0 }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "template": { "type": "integer", "nullable": true }, "type": { "$ref": "#/components/schemas/TypeBe1Enum" }, "signed": { "type": "boolean", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "content_type": { "type": "string", "nullable": true }, "object_id": { "type": "integer", "nullable": true }, "regenerate": { "type": "boolean", "default": false }, "resign": { "type": "boolean", "default": false }, "file": { "type": "string", "format": "uri", "writeOnly": true }, "files": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentFile" }, "readOnly": true }, "signs": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentSign" }, "readOnly": true }, "content": { "type": "string", "nullable": true }, "meta": { "readOnly": true } } }, "PatchedDocumentV2SignUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client": { "type": "integer", "writeOnly": true }, "method_allowed": { "type": "array", "items": { "type": "integer", "maximum": 32767, "minimum": 0 } }, "uuid": { "type": "string", "format": "uuid", "readOnly": true }, "method": { "allOf": [ { "$ref": "#/components/schemas/Method7b1Enum" } ], "readOnly": true }, "signer": { "allOf": [ { "$ref": "#/components/schemas/Signer" } ], "readOnly": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/StatusToEnum" } ], "readOnly": true } } }, "PatchedFileAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "file": { "type": "string", "format": "uri", "nullable": true }, "extension": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" }, "type": { "type": "string", "nullable": true, "maxLength": 255 } } }, "PatchedFunnel": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "stages": { "type": "array", "items": { "type": "integer" }, "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "extra": {}, "created_by": { "type": "integer", "nullable": true }, "users": { "type": "array", "items": { "type": "integer" } } } }, "PatchedFunnelStage": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "funnel": { "type": "integer", "readOnly": true }, "ordering": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "type": { "allOf": [ { "$ref": "#/components/schemas/FunnelStageTypeEnum" } ], "readOnly": true }, "color": { "type": "string", "maxLength": 7 }, "extra": {}, "users": { "type": "array", "items": { "type": "integer" } } } }, "PatchedFunnelTrigger": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "create_leads": { "type": "boolean", "writeOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "action": { "allOf": [ { "$ref": "#/components/schemas/FunnelTriggerActionEnum" } ], "minimum": -32768, "maximum": 32767 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "message": { "type": "string", "nullable": true }, "message_source": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/MessageSourceEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "task_deadline": { "type": "string", "nullable": true }, "task_description": { "type": "string", "nullable": true }, "order_status": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_source": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/OrderSourceEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "webhook_url": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "webhook_method": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/WebhookMethodEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "slot": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "index": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "tenant": { "type": "integer" }, "task_method": { "type": "integer", "nullable": true }, "funnel": { "type": "integer", "nullable": true }, "stages": { "type": "array", "items": { "type": "integer" } } } }, "PatchedGroupEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string" }, "permissions": { "type": "array", "items": { "type": "integer" }, "writeOnly": true } } }, "PatchedImageAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "thumb": { "type": "string", "format": "uri", "readOnly": true, "nullable": true }, "extension": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" }, "type": { "type": "string", "nullable": true, "maxLength": 255 } } }, "PatchedInventoryEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "car": { "allOf": [ { "$ref": "#/components/schemas/InventoryCarCreateUpdate" } ], "nullable": true }, "category": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "device_unique_id": { "type": "string", "readOnly": true, "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "sell_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "sell_date": { "type": "string", "format": "date-time", "nullable": true }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "stock_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "comment": { "type": "string", "nullable": true, "maxLength": 1024 }, "sublease_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "prev_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "group": { "type": "integer", "nullable": true }, "state": { "type": "integer", "nullable": true }, "sublease_user": { "type": "integer", "nullable": true } } }, "PatchedInventoryGroupTarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "weekdays": { "type": "array", "items": { "type": "integer" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "readOnly": true, "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } } }, "PatchedInventoryGroupUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 512 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "category": { "type": "integer", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "barcode": { "type": "string", "nullable": true, "maxLength": 255 }, "image": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "published": { "type": "boolean" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9ddEnum" } ], "minimum": 0, "maximum": 32767 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount": { "type": "integer", "nullable": true }, "tarif_form": { "type": "array", "items": { "$ref": "#/components/schemas/BaseInventoryTarifUpdate" } }, "inventory_form": { "$ref": "#/components/schemas/InventoryClone" }, "unit_type": { "$ref": "#/components/schemas/UnitTypeEnum" }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_count": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "unit_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true } } }, "PatchedInventoryInsurance": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "$ref": "#/components/schemas/InventoryInsuranceTypeEnum" }, "company": { "type": "string", "nullable": true, "maxLength": 255 }, "number": { "type": "string", "nullable": true, "maxLength": 255 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "start_at": { "type": "string", "format": "date-time" }, "end_at": { "type": "string", "format": "date-time" }, "tenant": { "type": "integer", "readOnly": true }, "inventory": { "type": "integer", "readOnly": true } } }, "PatchedInventorySet": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "image": { "type": "string", "format": "uri", "nullable": true }, "category": { "type": "integer", "nullable": true }, "status": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "prices": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetPrice" }, "readOnly": true }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/InventorySetItem" }, "readOnly": true }, "static": { "type": "boolean" }, "extra": {}, "published": { "type": "boolean" }, "deleted": { "type": "boolean", "readOnly": true } } }, "PatchedInventorySetItem": { "type": "object", "properties": { "id": { "type": "integer" }, "count": { "type": "integer" }, "group_id": { "type": "integer" }, "group_name": { "type": "string", "readOnly": true }, "group_unique_id": { "type": "string", "readOnly": true }, "group_category": { "type": "integer", "readOnly": true }, "group_image": { "type": "string", "readOnly": true }, "inventories_count": { "type": "integer", "readOnly": true, "default": 0 }, "inventories_free": { "type": "integer", "readOnly": true, "default": 0 }, "alternative": { "type": "integer", "nullable": true }, "required": { "type": "boolean" } } }, "PatchedInventorySetPriceSerializerV2": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "period": { "type": "integer" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } } }, "PatchedInventoryState": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "disable": { "type": "boolean" }, "workshop": { "type": "boolean" }, "color": { "type": "string", "maxLength": 9 } } }, "PatchedInventoryTarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "set_id": { "type": "integer", "readOnly": true }, "group_id": { "type": "integer", "readOnly": true }, "weekdays": { "type": "array", "items": { "type": "integer" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "readOnly": true, "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "readOnly": true, "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } } }, "PatchedInventoryTarifTimePeriod": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string" }, "time": { "type": "string" }, "weekdays": { "type": "array", "items": { "type": "integer" } }, "deleted": { "type": "boolean", "readOnly": true }, "inventory_tarif_count": { "type": "integer" }, "service_tarif_count": { "type": "integer" } } }, "PatchedLabel": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "key": { "$ref": "#/components/schemas/LabelKeyEnum" }, "language": { "$ref": "#/components/schemas/LanguageEnum" }, "nominative_singular": { "type": "string", "nullable": true, "description": "Nominative singular form (e.g., \"Инвентарь\")" }, "nominative_plural": { "type": "string", "nullable": true, "description": "Nominative plural form (e.g., \"Инвентари\")" }, "genitive_singular": { "type": "string", "nullable": true, "description": "Genitive singular (e.g., \"инвентаря\")" }, "dative_singular": { "type": "string", "nullable": true, "description": "Dative singular (e.g., \"инвентарю\")" }, "accusative_singular": { "type": "string", "nullable": true, "description": "Accusative singular (e.g., \"инвентарь\")" }, "instrumental_singular": { "type": "string", "nullable": true, "description": "Instrumental singular (e.g., \"инвентарем\")" }, "prepositional_singular": { "type": "string", "nullable": true, "description": "Prepositional singular (e.g., \"об инвентаре\")" }, "genitive_plural": { "type": "string", "nullable": true, "description": "Genitive plural (e.g., \"инвентарей\")" }, "dative_plural": { "type": "string", "nullable": true, "description": "Dative plural (e.g., \"инвентарям\")" }, "accusative_plural": { "type": "string", "nullable": true, "description": "Accusative plural (e.g., \"инвентари\")" }, "instrumental_plural": { "type": "string", "nullable": true, "description": "Instrumental plural (e.g., \"инвентарями\")" }, "prepositional_plural": { "type": "string", "nullable": true, "description": "Prepositional plural (e.g., \"об инвентарях\")" } } }, "PatchedLeadCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "ordering": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "cancel_reason": { "type": "string", "nullable": true }, "extra": {}, "tenant": { "type": "integer" }, "client": { "type": "integer", "nullable": true }, "stage": { "type": "integer" }, "funnel": { "type": "integer" }, "manager": { "type": "integer", "nullable": true }, "source": { "type": "integer", "nullable": true }, "request": { "type": "integer", "nullable": true }, "sale": { "type": "integer", "nullable": true } } }, "PatchedLeadUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "description": { "type": "string", "nullable": true }, "finished_at": { "type": "string", "format": "date-time", "nullable": true }, "result": { "type": "string" }, "date": { "type": "string", "format": "date-time" }, "extra": {}, "tenant": { "type": "integer" }, "lead": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "method": { "type": "integer", "nullable": true }, "manager": { "type": "integer", "nullable": true } } }, "PatchedLinkAttachment": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "link": { "type": "string", "format": "uri", "maxLength": 200 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "content_type": { "type": "string", "maxLength": 255 }, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": 0, "format": "int64" } } }, "PatchedManageArticle": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": 0, "nullable": true }, "title": { "type": "string", "maxLength": 5196 }, "body": { "type": "string", "nullable": true }, "active": { "type": "boolean" }, "outer_url": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "expire_date": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "tenant": { "type": "integer" } } }, "PatchedManageEvent": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "user_registered": { "type": "integer", "readOnly": true, "default": 0 }, "video": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "image": { "type": "string", "format": "uri" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "location_link": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "body": { "type": "string", "nullable": true }, "date": { "type": "string", "format": "date-time" }, "location": { "type": "string", "nullable": true, "maxLength": 255 }, "user_limit": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "active": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" } } }, "PatchedManageProduct": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "type": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Type476Enum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "unique_id": { "type": "string", "nullable": true, "maxLength": 64 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "discount": { "type": "integer", "nullable": true }, "discount_start_at": { "type": "string", "format": "date-time", "nullable": true }, "discount_end_at": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "object_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "published": { "type": "boolean" } } }, "PatchedOKAutoPenalty": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "outer_id": { "type": "integer", "readOnly": true, "title": "ID в OKAuto" }, "protocol_number": { "type": "string", "title": "Номер протокола", "maxLength": 255 }, "description": { "type": "string", "nullable": true, "title": "Описание нарушения" }, "department_name": { "type": "string", "nullable": true, "title": "Орган, выявивший правонарушение", "maxLength": 255 }, "punishment_main": { "type": "string", "nullable": true, "title": "Основная мера наказания", "maxLength": 255 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true, "title": "Сумма штрафа" }, "violation_address": { "type": "string", "nullable": true, "title": "Адрес нарушения" }, "violated_at": { "type": "string", "format": "date-time", "readOnly": true }, "violation_date": { "type": "string", "format": "date", "nullable": true, "title": "Дата нарушения" }, "violation_time": { "type": "string", "format": "time", "nullable": true, "title": "Время нарушения" }, "paid": { "type": "boolean", "title": "Оплачен" }, "payment_date": { "type": "string", "format": "date-time", "nullable": true, "title": "Дата оплаты" }, "discount_expires_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Дата истечения скидки" }, "payment_kno": { "type": "string", "nullable": true, "title": "КНО", "maxLength": 255 }, "payment_kbk": { "type": "string", "nullable": true, "title": "КБК", "maxLength": 255 }, "payment_knp": { "type": "string", "nullable": true, "title": "КНП", "maxLength": 255 }, "beneficiary_tax_office_name": { "type": "string", "nullable": true, "title": "Название налогового органа", "maxLength": 255 }, "beneficiary_tax_iban": { "type": "string", "nullable": true, "title": "IBAN налогового органа", "maxLength": 255 }, "beneficiary_tax_bin_number": { "type": "string", "nullable": true, "title": "БИН налогового органа", "maxLength": 255 }, "pdf": { "type": "string", "format": "uri", "nullable": true, "title": "PDF протокола" }, "photo_urls": { "type": "array", "items": { "type": "string", "format": "uri", "maxLength": 200 }, "title": "Ссылки на фото нарушения" }, "car": { "allOf": [ { "$ref": "#/components/schemas/OKAutoCar" } ], "readOnly": true }, "driver": { "allOf": [ { "$ref": "#/components/schemas/OKAutoDriver" } ], "readOnly": true }, "company": { "allOf": [ { "$ref": "#/components/schemas/OKAutoCompany" } ], "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "state": { "type": "integer", "nullable": true }, "inventory": { "type": "string", "readOnly": true }, "request": { "type": "string", "readOnly": true }, "client": { "type": "string", "readOnly": true }, "noted": { "type": "boolean", "title": "Просмотрен" } } }, "PatchedOKAutoState": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "color": { "type": "string", "maxLength": 9 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" } } }, "PatchedOrderRequestCondition": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_inventory": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "condition": { "allOf": [ { "$ref": "#/components/schemas/ConditionEnum" } ], "minimum": 0, "maximum": 32767 }, "value": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "split_client": { "type": "integer", "maximum": 100, "minimum": 0 }, "split_company": { "type": "integer", "maximum": 100, "minimum": 0 } } }, "PatchedOrderRequestCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "plus_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "rent_start": { "type": "string", "format": "date-time" }, "rent_end": { "type": "string", "format": "date-time" }, "autorenewal": { "type": "boolean" }, "autowithdraw": { "type": "boolean" }, "counting_duration": { "type": "string", "nullable": true }, "price_inventory_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_delivery": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_referral": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tax_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$" }, "tax_included": { "type": "boolean" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_combine": { "type": "boolean" }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_auto": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_custom": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_step_duriation": { "type": "string" }, "penalty_disabled": { "type": "boolean" }, "extra": {}, "active": { "type": "boolean" }, "tenant": { "type": "integer" }, "client": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "rental_point_return": { "type": "integer", "nullable": true }, "bag": { "type": "string", "format": "uuid", "nullable": true }, "default_tarif_period": { "type": "integer", "nullable": true } } }, "PatchedOrderRequestDeposit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_by": { "type": "integer", "readOnly": true }, "payment_type": { "type": "integer", "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type305Enum" } ], "minimum": -32768, "maximum": 32767 }, "status": { "allOf": [ { "$ref": "#/components/schemas/Status0aeEnum" } ], "minimum": -32768, "maximum": 32767 }, "request": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "deposit": { "type": "string", "maxLength": 255 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "returned_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "transaction_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } } }, "PatchedOrderRequestInventoryCreate": { "type": "object", "properties": { "request": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "inventory": { "type": "integer" }, "tarif": { "type": "integer", "nullable": true }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "extra": {}, "autorenewal": { "type": "boolean", "writeOnly": true, "nullable": true } } }, "PatchedOrderRequestPenalty": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_status": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type978Enum" } ], "readOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount_paid": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "reason": { "type": "string", "nullable": true, "maxLength": 512 }, "custom": { "type": "boolean" }, "tenant": { "type": "integer" }, "request_inventory": { "type": "integer", "nullable": true }, "created_by": { "type": "integer", "readOnly": true, "nullable": true }, "penalty": { "type": "integer", "nullable": true } } }, "PatchedOrderRequestReferral": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "request": { "type": "integer", "readOnly": true }, "agent": { "type": "integer", "nullable": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "status": { "allOf": [ { "$ref": "#/components/schemas/OrderRequestReferralStatusEnum" } ], "readOnly": true }, "status_changed_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "request_status": { "type": "integer", "readOnly": true } } }, "PatchedOrderRequestServiceCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "info": { "type": "string", "nullable": true }, "extra": {}, "tenant": { "type": "integer" }, "request": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "request_inventory": { "type": "integer", "nullable": true }, "service": { "type": "integer" }, "worker": { "type": "integer", "nullable": true }, "tarif": { "type": "integer", "nullable": true } } }, "PatchedOrderRequestWeekday": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_inventory": { "type": "integer", "nullable": true }, "client": { "type": "integer", "nullable": true }, "work_days": { "type": "integer", "maximum": 32767, "minimum": 0 }, "rest_days": { "type": "integer", "maximum": 32767, "minimum": 0 }, "rest_weekdays": { "type": "array", "items": { "type": "integer" } }, "custom": { "type": "boolean" }, "exclude_rest": { "type": "boolean" } } }, "PatchedOrderSale": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "client": { "type": "integer", "nullable": true }, "agent": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "created_by": { "type": "integer" }, "rental_point": { "type": "integer", "readOnly": true, "nullable": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/SaleStatusToEnum" } ], "readOnly": true } } }, "PatchedPaymentAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "default": { "type": "boolean" }, "initial": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "balance": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "types": { "type": "array", "items": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" } }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "tenant": { "type": "integer" } } }, "PatchedPaymentCategory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/CategoryEnum" } ], "minimum": -32768, "maximum": 32767 }, "enabled": { "type": "boolean" }, "deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "tenant": { "type": "integer" }, "parent": { "type": "integer", "nullable": true } } }, "PatchedPaymentType": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "tenant": { "type": "integer" } } }, "PatchedPlusArticle": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "title": { "type": "string", "maxLength": 5196 }, "body": { "type": "string", "nullable": true }, "active": { "type": "boolean" }, "expire_at": { "type": "string", "format": "date-time", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "background": { "type": "string", "format": "uri", "nullable": true }, "extra": {} } }, "PatchedPlusCompanyCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tenant": { "type": "integer", "readOnly": true, "nullable": true }, "rental_point_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "active": { "type": "boolean" }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "extra": {} } }, "PatchedPlusProductCategoryUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "icon": { "type": "string", "format": "uri", "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true } } }, "PatchedPlusProductCompanyUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "published": { "type": "boolean" }, "extra": {}, "company": { "type": "integer", "title": "Компания" } } }, "PatchedPlusProductImageUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "thumbnail": { "type": "string", "format": "uri", "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } } }, "PatchedPlusProductPriceUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "duration": { "type": "string" }, "outer_id": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "active": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } } }, "PatchedPlusProductUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "thumbnail": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "set_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "group_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "service_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "category": { "type": "integer" } } }, "PatchedPlusTenantSettings": { "type": "object", "properties": { "logo": { "type": "string", "format": "uri", "nullable": true }, "background": { "type": "string", "format": "uri", "nullable": true }, "brand_color": { "type": "string", "maxLength": 7 }, "extra": {} } }, "PatchedProductWarehouseAction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "invoice_id": { "type": "string", "nullable": true, "maxLength": 255 }, "invoice_datetime": { "type": "string", "format": "date-time" }, "type": { "allOf": [ { "$ref": "#/components/schemas/ProductWarehouseActionTypeEnum" } ], "minimum": -32768, "maximum": 32767 }, "from_warehouse": { "type": "integer", "nullable": true }, "to_warehouse": { "type": "integer" }, "from_counterparty": { "type": "integer", "nullable": true }, "to_counterparty": { "type": "integer", "nullable": true }, "comment": { "type": "string", "nullable": true }, "manager": { "type": "integer" }, "approved": { "type": "boolean" }, "products": { "type": "array", "items": { "$ref": "#/components/schemas/ProductWarehouseActionItem" } }, "tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,2}(?:\\.\\d{0,2})?$" }, "tax_included": { "type": "boolean" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } } }, "PatchedProfileEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "group": { "type": "integer", "nullable": true }, "is_staff": { "type": "boolean" }, "is_superuser": { "type": "boolean" }, "is_sublease": { "type": "boolean" }, "password": { "type": "string", "writeOnly": true }, "points": { "type": "array", "items": { "type": "integer" }, "nullable": true }, "salary_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true } } }, "PatchedProfileLimited": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "password": { "type": "string", "writeOnly": true } } }, "PatchedRentalPoint": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 512 }, "address": { "type": "string", "maxLength": 512 }, "deleted": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" } } }, "PatchedResource": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } } }, "PatchedSMSBroadcast": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "message": { "type": "string", "maxLength": 1024 }, "trigger": { "allOf": [ { "$ref": "#/components/schemas/TriggerEnum" } ], "minimum": 0, "maximum": 32767 }, "schedule": { "type": "string", "nullable": true, "pattern": "^(\\*|([0-9]|[1-5][0-9])) (\\*|([01]?[0-9]|2[0-3])) (\\*|([1-9]|[12][0-9]|3[01])) (\\*|([1-9]|1[0-2])) (\\*|([0-6]))$", "maxLength": 64 }, "send_time": { "type": "string", "format": "date-time", "nullable": true }, "enabled": { "type": "boolean" }, "tenant": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "recipients": { "type": "array", "items": { "$ref": "#/components/schemas/SMSBroadcastRecipient" } } } }, "PatchedSMSBroadcastTemplate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "message": { "type": "string" } } }, "PatchedService": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceTarifs" }, "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "type": { "allOf": [ { "$ref": "#/components/schemas/ServiceTypeEnum" } ], "minimum": 0, "maximum": 2147483647 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "bonus": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "extra": {}, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "published": { "type": "boolean" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "image": { "type": "string", "format": "uri", "nullable": true }, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "category": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true } } }, "PatchedServiceTarifs": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "one_time_payment": { "type": "boolean" }, "published": { "type": "boolean" }, "tenant": { "type": "integer" }, "service": { "type": "integer" }, "duriation": { "type": "integer", "nullable": true } } }, "PatchedSettingsConfig": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" }, "company_iin": { "type": "string" }, "company_bin": { "type": "string" }, "currency": { "type": "string" }, "currency_prefix": { "type": "boolean", "default": true }, "language": { "type": "string" }, "company_bank": { "type": "string" }, "company_iban": { "type": "string" }, "company_bic": { "type": "string" }, "company_account_number": { "type": "string" }, "feature_point_clean": { "type": "boolean", "default": false }, "feature_group": { "type": "boolean", "default": true }, "feature_group_available": { "type": "boolean", "default": false }, "feature_set": { "type": "boolean", "default": true }, "feature_set_alternative": { "type": "boolean", "default": false }, "feature_service": { "type": "boolean", "default": true }, "feature_inventory": { "type": "boolean", "default": false }, "feature_inventory_car": { "type": "boolean", "default": false }, "feature_unique_id": { "type": "boolean", "default": false }, "feature_inventorization_before": { "type": "boolean", "default": false }, "feature_inventorization_after": { "type": "boolean", "default": true }, "feature_inventorization_media": { "type": "boolean", "default": false }, "feature_inventorization_media_desktop": { "type": "boolean", "default": true }, "feature_inventorization_request": { "type": "boolean", "default": false }, "feature_order_recipe": { "type": "boolean", "default": false }, "feature_sublease": { "type": "boolean", "default": false }, "feature_okauto": { "type": "boolean", "default": false }, "feature_transaction_date": { "type": "boolean", "default": false }, "feature_transaction_overpay": { "type": "boolean", "default": false }, "feature_transaction_schedule": { "type": "boolean", "default": false }, "feature_delivery_confirm": { "type": "boolean", "default": true }, "feature_delivery_rent_start": { "type": "boolean", "default": false }, "feature_delivery_rent_end": { "type": "boolean", "default": false }, "request": { "type": "string" }, "reserve": { "type": "string" }, "debtor": { "type": "string" }, "inrent": { "type": "string" }, "cancel": { "type": "string" }, "completed": { "type": "string" }, "exceed": { "type": "string" }, "reservation": { "type": "boolean" }, "collection": { "type": "boolean" }, "order_draft": { "type": "boolean", "default": true }, "order_flex": { "type": "boolean", "default": false }, "order_agent": { "type": "boolean", "default": false }, "order_client": { "type": "boolean", "default": true }, "order_client_tick_filter": { "type": "array", "items": { "type": "integer" } }, "order_inventory": { "type": "boolean", "default": false }, "order_group": { "type": "boolean", "default": true }, "order_service": { "type": "boolean", "default": true }, "order_penalty_rounding": { "type": "integer", "default": 1 }, "order_penalty_buffer_duration": { "type": "string" }, "order_deposit": { "type": "boolean", "default": true }, "order_pause": { "type": "boolean", "default": true }, "order_group_tarif": { "type": "boolean", "default": false }, "order_inventory_detail": { "type": "boolean", "default": true }, "order_agent_percent": { "type": "integer", "default": 10 }, "order_table_expanded": { "type": "boolean", "default": false }, "order_inventory_occupation": { "type": "boolean", "default": true }, "order_inventory_discount": { "type": "boolean", "default": true }, "order_duration": { "type": "string" }, "order_archive_auto": { "type": "boolean", "default": false }, "order_archive_buffer_duration": { "type": "string" }, "order_default_filter": { "type": "string", "nullable": true }, "order_rental_point": { "type": "boolean", "default": true }, "order_rental_point_return": { "type": "boolean", "default": false }, "order_period": { "type": "boolean", "default": true }, "order_merge_inrent_exceed": { "type": "boolean", "default": false }, "order_single_inventory": { "type": "boolean", "default": false }, "order_autorenewal": { "type": "boolean", "default": false }, "penalty": { "type": "boolean" }, "penalty_type": { "type": "string", "nullable": true }, "penalty_after": { "type": "boolean" }, "penalty_manager_access": { "type": "boolean" }, "penalty_default": { "type": "string" }, "rent_inventory_priority": { "type": "string" }, "creation_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "reservation_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "issue_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "recievement_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "delivery_order_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "single_issue": { "type": "boolean" }, "single_recievement": { "type": "boolean" }, "workshift": { "type": "boolean", "default": false }, "metrics_order_statuses": { "type": "array", "items": { "type": "integer" } }, "metrics_order_payment_statuses": { "type": "array", "items": { "type": "integer" } }, "rent_product_types": { "type": "array", "items": { "type": "string" } }, "penalty_options": { "type": "array", "items": { "$ref": "#/components/schemas/PenaltyOption" } }, "custom_fields": { "allOf": [ { "$ref": "#/components/schemas/CustomFieldUpdate" } ], "readOnly": true }, "feature_bonus": { "type": "boolean", "default": false }, "bonus_default_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "bonus_default_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "bonus_default_usage": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "tax": { "type": "boolean", "default": true }, "tax_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "tax_included": { "type": "boolean", "default": true }, "phone_format": { "type": "string" }, "order_layout_left": {}, "order_layout_right_v2": { "type": "array", "items": { "type": "string" } }, "client_debt_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "client_passport": { "type": "boolean", "default": true }, "client_passport_scan": { "type": "boolean", "default": false }, "client_passport_iin_length": { "type": "integer", "default": 12 }, "client_kaspi_balance": { "type": "boolean", "default": false }, "whapi": { "type": "boolean", "default": false } } }, "PatchedSharedBagDetail": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/SharedBagItemDetail" }, "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "delivery": { "type": "boolean" }, "delivery_return": { "type": "boolean" }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "address_return": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "period": { "type": "integer", "nullable": true } } }, "PatchedSharedBagItem": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "count": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "product": { "type": "integer" }, "discount": { "type": "integer", "readOnly": true, "nullable": true } } }, "PatchedSharedUserPassword": { "type": "object", "properties": { "old_password": { "type": "string" }, "new_password": { "type": "string" } } }, "PatchedSharedUserProfile": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "birth_date": { "type": "string", "format": "date", "nullable": true }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "phone": { "type": "string", "nullable": true }, "bonus": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "grant_sent": { "type": "boolean", "readOnly": true }, "grant_accessible": { "type": "boolean", "readOnly": true }, "loyalty_percent": { "type": "integer", "readOnly": true }, "verified": { "type": "boolean", "readOnly": true }, "extra": {}, "delivery_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "next_loyalty": { "type": "string", "readOnly": true } } }, "PatchedTableSettings": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "fields": { "type": "array", "items": { "$ref": "#/components/schemas/TableSettingsField" } } } }, "PatchedTag": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "extra": {}, "tenant": { "type": "integer" } } }, "PatchedTarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "weekdays": { "type": "array", "items": { "type": "integer", "maximum": 6, "minimum": 0 } }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } } }, "PatchedTemplateV2Detail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "content_type": { "$ref": "#/components/schemas/ContentTypeEnum" }, "filter": {}, "created_by": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "status": { "$ref": "#/components/schemas/StatusD51Enum" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "format": { "$ref": "#/components/schemas/FormatEnum" }, "width": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "height": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_left": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_right": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_top": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_bottom": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "scale": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$" }, "content": { "type": "string" } } }, "PatchedTenantAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "user": { "type": "integer", "readOnly": true, "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "address": { "type": "string", "maxLength": 255 }, "domain": { "type": "string", "writeOnly": true }, "logo": { "type": "string", "format": "uri", "nullable": true }, "type": { "type": "integer", "nullable": true }, "type_code": { "type": "string", "readOnly": true, "nullable": true }, "currency": { "type": "string", "default": "KZT" }, "country": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CountryEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "link": { "type": "string", "readOnly": true, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "limits": { "type": "array", "items": { "$ref": "#/components/schemas/TenantLimit" }, "readOnly": true }, "extra": {} } }, "PatchedTenantCard": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tenant": { "type": "integer", "readOnly": true }, "active": { "type": "boolean" }, "status": { "allOf": [ { "$ref": "#/components/schemas/TenantCardStatusEnum" } ], "readOnly": true }, "card_hash": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "bank_alias": { "type": "string", "readOnly": true, "nullable": true }, "brand_alias": { "type": "string", "readOnly": true, "nullable": true }, "expiry_year": { "type": "string", "readOnly": true, "nullable": true }, "expiry_month": { "type": "string", "readOnly": true, "nullable": true }, "recurring": { "type": "boolean" } } }, "PatchedTenantInvoiceDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tenant": { "type": "integer", "readOnly": true }, "card": { "type": "integer", "readOnly": true, "nullable": true }, "currency": { "allOf": [ { "$ref": "#/components/schemas/CurrencyEnum" } ], "readOnly": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/Status14dEnum" } ], "readOnly": true }, "total": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "captured_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "refund_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "captured_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/TenantInvoiceItem" } }, "success_url": { "type": "string", "writeOnly": true }, "transaction_url": { "type": "string", "format": "uri", "readOnly": true, "nullable": true } } }, "PatchedTransactionSchedule": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "readOnly": true, "nullable": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "amount_paid": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "weekend": { "type": "boolean" }, "date": { "type": "string", "format": "date-time", "readOnly": true }, "custom": { "type": "boolean" } } }, "PatchedTransactionStatementExchangeEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "account_from": { "type": "integer", "writeOnly": true }, "account_to": { "type": "integer", "writeOnly": true }, "tags": { "type": "array", "items": { "type": "integer", "writeOnly": true }, "writeOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true }, "datetime": { "type": "string", "format": "date-time", "writeOnly": true } } }, "PatchedUserRentalPoint": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "active": { "type": "boolean" }, "tenant": { "type": "integer" }, "user": { "type": "integer" }, "point": { "type": "integer", "nullable": true } } }, "PatchedWarehouse": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "address": { "type": "string", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "deleted": { "type": "boolean" } } }, "PatchedWazzupSettings": { "type": "object", "properties": { "api_key": { "type": "string" }, "funnel_id": { "type": "integer" }, "stage_id": { "type": "integer" } } }, "PatchedWazzupTrigger": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "documents": { "type": "array", "items": { "type": "integer" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "allOf": [ { "$ref": "#/components/schemas/WazzupTriggerTypeEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "order_status_from": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/OrderStatusFromEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_status_to": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/OrderStatusToEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_payment_status_from": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_payment_status_to": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "sale_status_from": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/SaleStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "sale_status_to": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/SaleStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "delivery_type": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/DeliveryTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "delivery_status": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/DeliveryStatusEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "text": { "type": "string", "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "template_id": { "type": "string", "nullable": true, "maxLength": 255 }, "template_keys": { "type": "array", "items": { "type": "string", "maxLength": 255 }, "nullable": true }, "timeout": { "type": "string" }, "tenant": { "type": "integer", "readOnly": true } } }, "PatchedWialonAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "host": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "token": { "type": "string", "maxLength": 255 }, "extra": {} } }, "PatchedWialonUnit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "inventory": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "unit_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "mileage": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "x": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,8})?$", "nullable": true }, "y": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,8})?$", "nullable": true } } }, "PatchedWorkshopPipeline": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 } } }, "PatchedWorkshopResourceEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "inventory_group_count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "approved": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "tarif": { "type": "integer", "nullable": true }, "task": { "type": "integer", "readOnly": true }, "resource": { "type": "integer", "nullable": true }, "approved_by": { "type": "integer", "nullable": true } } }, "PatchedWorkshopServiceEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "tenant": { "type": "integer" }, "task": { "type": "integer", "readOnly": true }, "service": { "type": "integer" }, "tarif": { "type": "integer", "nullable": true } } }, "PatchedWorkshopUpdateStage": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "pipeline": { "type": "integer", "nullable": true }, "post_state": { "type": "integer", "nullable": true } } }, "PaymentAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "default": { "type": "boolean" }, "initial": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "balance": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "types": { "type": "array", "items": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" } }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "tenant": { "type": "integer" } }, "required": [ "balance", "created_at", "deleted", "deleted_at", "id", "name", "updated_at" ] }, "PaymentCategory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/CategoryEnum" } ], "minimum": -32768, "maximum": 32767 }, "enabled": { "type": "boolean" }, "deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "tenant": { "type": "integer" }, "parent": { "type": "integer", "nullable": true } }, "required": [ "created_at", "deleted", "deleted_at", "id", "name", "updated_at" ] }, "PaymentGroup": { "type": "object", "properties": { "type": { "type": "integer", "nullable": true }, "name": { "type": "string", "nullable": true }, "count": { "type": "integer" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "amount", "count", "name", "type" ] }, "PaymentType": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "deleted": { "type": "boolean", "readOnly": true }, "deleted_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "tenant": { "type": "integer" } }, "required": [ "created_at", "deleted", "deleted_at", "id", "name", "updated_at" ] }, "PaymentTypeEnum": { "enum": [ "card", "cash" ], "type": "string", "description": "* `card` - card\n* `cash` - cash" }, "PenaltyMetrics": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer" }, "request_status": { "type": "integer", "readOnly": true }, "payment_status": { "type": "integer", "readOnly": true }, "request_inventory": { "type": "integer", "nullable": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "reason": { "type": "string", "nullable": true, "maxLength": 512 }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type978Enum" } ], "minimum": -32768, "maximum": 32767 }, "created_by": { "type": "integer", "nullable": true }, "inventory_id": { "type": "integer", "readOnly": true }, "inventory_name": { "type": "string", "readOnly": true }, "inventory_unique_id": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "client": { "$ref": "#/components/schemas/BaseClient" }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "pending_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "client", "created_at", "id", "inventory_id", "inventory_name", "inventory_unique_id", "paid_amount", "payment_status", "pending_amount", "request", "request_status" ] }, "PenaltyOption": { "type": "object", "properties": { "name": { "type": "string" }, "duration": { "type": "string" } }, "required": [ "duration", "name" ] }, "PeriodTypeEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - interval\n* `1` - distance" }, "Permission": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "codename": { "type": "string", "title": "Кодовое название", "maxLength": 100 } }, "required": [ "codename", "id" ] }, "PlusArticle": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "title": { "type": "string", "maxLength": 5196 }, "body": { "type": "string", "nullable": true }, "active": { "type": "boolean" }, "expire_at": { "type": "string", "format": "date-time", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "background": { "type": "string", "format": "uri", "nullable": true }, "extra": {} }, "required": [ "created_at", "id", "title", "updated_at" ] }, "PlusBonus": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "user": { "type": "integer" } }, "required": [ "created_at", "id", "updated_at", "user" ] }, "PlusBonusTransaction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "bonus": { "type": "integer" }, "cart": { "type": "integer", "nullable": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/TypeC9cEnum" } ], "readOnly": true }, "created_by": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "amount", "bonus", "created_at", "id", "type" ] }, "PlusCompany": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "price_from": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "worktimes": { "type": "array", "items": { "$ref": "#/components/schemas/Worktime" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "rental_point_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "active": { "type": "boolean" }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "address": { "type": "string", "maxLength": 255 }, "address_url": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "icon": { "type": "string", "format": "uri", "nullable": true }, "background": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "payment": { "type": "boolean" }, "tenant": { "type": "integer", "nullable": true }, "user": { "type": "integer", "nullable": true }, "category": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "name", "updated_at", "worktimes" ] }, "PlusCompanyCategory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "code": { "type": "string", "nullable": true }, "icon": { "type": "string", "format": "uri", "nullable": true }, "active": { "type": "boolean" }, "country": { "$ref": "#/components/schemas/CountryEnum" } }, "required": [ "id", "name" ] }, "PlusCompanyCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tenant": { "type": "integer", "readOnly": true, "nullable": true }, "rental_point_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "active": { "type": "boolean" }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "extra": {} }, "required": [ "id", "name", "tenant" ] }, "PlusDomain": { "type": "object", "properties": { "domain": { "type": "string" }, "verified": { "type": "boolean", "readOnly": true }, "verified_at": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "domain", "verified", "verified_at" ] }, "PlusFullSync": { "type": "object", "properties": { "categories": { "type": "array", "items": { "type": "integer" }, "default": [] }, "groups": { "type": "array", "items": { "type": "integer" }, "default": [] }, "sets": { "type": "array", "items": { "type": "integer" }, "default": [] }, "services": { "type": "array", "items": { "type": "integer" }, "default": [] } } }, "PlusOrderCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "bonus": { "type": "boolean", "writeOnly": true, "default": true }, "name": { "type": "string", "writeOnly": true }, "phone": { "type": "string", "writeOnly": true }, "request_id": { "type": "integer", "readOnly": true } }, "required": [ "id", "name", "phone", "request_id" ] }, "PlusProduct": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "category": { "type": "integer" }, "thumbnail": { "type": "string", "format": "uri", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "companies": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductCompanyInfo" }, "readOnly": true } }, "required": [ "category", "companies", "id", "name", "price" ] }, "PlusProductCategory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "companies": { "type": "string", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "icon": { "type": "string", "format": "uri", "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "tenant": { "type": "integer", "nullable": true } }, "required": [ "companies", "id", "name" ] }, "PlusProductCategoryUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "icon": { "type": "string", "format": "uri", "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true } }, "required": [ "id", "name" ] }, "PlusProductCompanyInfo": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "company": { "type": "integer", "title": "Компания" } }, "required": [ "company", "id" ] }, "PlusProductCompanyUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "published": { "type": "boolean" }, "extra": {}, "company": { "type": "integer", "title": "Компания" } }, "required": [ "company", "id", "price" ] }, "PlusProductImageUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "thumbnail": { "type": "string", "format": "uri", "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "required": [ "id" ] }, "PlusProductInfo": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "category": { "type": "integer" }, "thumbnail": { "type": "string", "format": "uri", "nullable": true } }, "required": [ "category", "id", "name" ] }, "PlusProductPriceSeriliazer": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "duration": { "type": "string" }, "weekdays": { "type": "array", "items": { "type": "integer", "maximum": 6, "minimum": 0 } }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "outer_id": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "active": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "tenant": { "type": "integer", "nullable": true }, "product": { "type": "integer", "nullable": true }, "product_company": { "type": "integer", "nullable": true } }, "required": [ "duration", "id", "name" ] }, "PlusProductPriceUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "duration": { "type": "string" }, "outer_id": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "active": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "required": [ "duration", "id", "name" ] }, "PlusProductUpdate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "thumbnail": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "set_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "group_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "service_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "category": { "type": "integer" } }, "required": [ "category", "id", "name" ] }, "PlusProductView": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "prices": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductPriceUpdate" } }, "images": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductImageUpdate" } }, "companies": { "type": "array", "items": { "$ref": "#/components/schemas/PlusProductCompanyUpdate" } }, "name": { "type": "string", "maxLength": 255 }, "description": { "type": "string", "nullable": true }, "thumbnail": { "type": "string", "format": "uri", "nullable": true }, "extra": {}, "set_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "group_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "service_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "category": { "type": "integer" } }, "required": [ "category", "companies", "id", "images", "name", "prices" ] }, "PlusTenant": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "address": { "type": "string", "maxLength": 255 }, "logo": { "type": "string", "format": "uri", "nullable": true }, "background": { "type": "string", "format": "uri", "nullable": true }, "brand_color": { "type": "string", "maxLength": 7 }, "extra": {}, "currency": { "$ref": "#/components/schemas/CurrencyEnum" }, "country": { "$ref": "#/components/schemas/CountryEnum" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "companies": { "type": "array", "items": { "$ref": "#/components/schemas/PlusCompany" } }, "public": { "type": "boolean" } }, "required": [ "companies", "created_at", "id", "name", "public" ] }, "PlusTenantSettings": { "type": "object", "properties": { "logo": { "type": "string", "format": "uri", "nullable": true }, "background": { "type": "string", "format": "uri", "nullable": true }, "brand_color": { "type": "string", "maxLength": 7 }, "extra": {} } }, "Position": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "device": { "type": "integer" }, "protocol": { "type": "string", "maxLength": 128 }, "devicetime": { "type": "string", "format": "date-time" }, "fixtime": { "type": "string", "format": "date-time" }, "servertime": { "type": "string", "format": "date-time" }, "valid": { "type": "boolean" }, "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" }, "altitude": { "type": "number", "format": "double" }, "speed": { "type": "number", "format": "double" }, "course": { "type": "number", "format": "double" }, "address": { "type": "string", "nullable": true, "maxLength": 512 }, "accuracy": { "type": "number", "format": "double" }, "network": { "type": "string", "nullable": true, "maxLength": 4000 }, "geofenceids": { "type": "string", "nullable": true, "maxLength": 128 }, "attributes": { "nullable": true } }, "required": [ "altitude", "course", "device", "devicetime", "fixtime", "id", "latitude", "longitude", "protocol", "speed", "valid" ] }, "ProductWarehouseAction": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "invoice_id": { "type": "string", "nullable": true, "maxLength": 255 }, "invoice_datetime": { "type": "string", "format": "date-time" }, "type": { "allOf": [ { "$ref": "#/components/schemas/ProductWarehouseActionTypeEnum" } ], "minimum": -32768, "maximum": 32767 }, "from_warehouse": { "type": "integer", "nullable": true }, "to_warehouse": { "type": "integer" }, "from_counterparty": { "type": "integer", "nullable": true }, "to_counterparty": { "type": "integer", "nullable": true }, "comment": { "type": "string", "nullable": true }, "manager": { "type": "integer" }, "approved": { "type": "boolean" }, "products": { "type": "array", "items": { "$ref": "#/components/schemas/ProductWarehouseActionItem" } }, "tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,2}(?:\\.\\d{0,2})?$" }, "tax_included": { "type": "boolean" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "amount", "created_at", "id", "invoice_datetime", "manager", "price", "products", "to_warehouse" ] }, "ProductWarehouseActionItem": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "action": { "type": "integer", "readOnly": true }, "group": { "type": "integer" }, "group_warehouse": { "type": "integer", "readOnly": true }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "unit_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,2}(?:\\.\\d{0,2})?$" } }, "required": [ "action", "group", "group_warehouse", "id", "price" ] }, "ProductWarehouseActionStats": { "type": "object", "properties": { "counterparty": { "type": "integer" }, "children": { "type": "array", "items": { "type": "integer" } } }, "required": [ "children", "counterparty" ] }, "ProductWarehouseActionTypeEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - CREATE\n* `1` - MOVE\n* `2` - DELETE" }, "ProductWarehouseDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "group": { "allOf": [ { "$ref": "#/components/schemas/InventoryGroup" } ], "readOnly": true }, "warehouse": { "type": "integer" }, "counterparty": { "type": "integer", "nullable": true }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "unit_price_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "inventories": { "type": "array", "items": { "$ref": "#/components/schemas/InvenotoryWarehouse" }, "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "counterparty_unit_count": { "type": "integer", "readOnly": true }, "counterparty_unit_price": { "type": "integer", "readOnly": true } }, "required": [ "counterparty_unit_count", "counterparty_unit_price", "created_at", "group", "id", "inventories", "warehouse" ] }, "ProductWarehouseWithdraw": { "type": "object", "properties": { "group": { "type": "integer", "writeOnly": true }, "warehouse": { "type": "integer", "writeOnly": true }, "counterparty": { "type": "integer", "writeOnly": true }, "amount": { "type": "integer", "writeOnly": true } }, "required": [ "amount", "counterparty", "group", "warehouse" ] }, "Profile": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "phone": { "type": "string", "nullable": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "group": { "type": "integer", "readOnly": true }, "is_staff": { "type": "boolean", "readOnly": true }, "is_sublease": { "type": "boolean", "readOnly": true }, "is_superuser": { "type": "boolean", "readOnly": true }, "points": { "type": "array", "items": { "type": "integer" }, "readOnly": true }, "salary_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true } }, "required": [ "group", "id", "is_staff", "is_sublease", "is_superuser", "points" ] }, "ProfileEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "group": { "type": "integer", "nullable": true }, "is_staff": { "type": "boolean" }, "is_superuser": { "type": "boolean" }, "is_sublease": { "type": "boolean" }, "password": { "type": "string", "writeOnly": true }, "points": { "type": "array", "items": { "type": "integer" }, "nullable": true }, "salary_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true } }, "required": [ "id", "password" ] }, "ProfileLimited": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "password": { "type": "string", "writeOnly": true } }, "required": [ "id", "password" ] }, "Promo": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "title": { "type": "string", "maxLength": 255 }, "description": { "type": "string" }, "code": { "type": "string", "nullable": true, "maxLength": 255 }, "icon": { "type": "string", "nullable": true, "maxLength": 255 }, "link": { "type": "string", "nullable": true, "maxLength": 255 }, "image": { "type": "string", "format": "uri", "nullable": true }, "gif": { "type": "string", "format": "uri", "nullable": true } }, "required": [ "description", "id", "title" ] }, "ReceiptRow": { "type": "object", "properties": { "object_id": { "type": "integer" }, "name": { "type": "string" }, "count": { "type": "integer" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "count", "name", "object_id", "price", "price_discount" ] }, "Referral": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "extra": {} }, "required": [ "id", "name" ] }, "RegisterUserOTPConfirm": { "type": "object", "properties": { "email": { "type": "string", "format": "email" }, "password": { "type": "string" }, "otp": { "type": "string", "maxLength": 6, "minLength": 6 }, "first_name": { "type": "string" }, "last_name": { "type": "string" }, "phone": { "type": "string", "pattern": "^\\+?\\d{9,15}$" } }, "required": [ "email", "first_name", "otp", "password", "phone" ] }, "RegisterUserOTPInit": { "type": "object", "properties": { "email": { "type": "string", "format": "email" } }, "required": [ "email" ] }, "RentalPoint": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 512 }, "address": { "type": "string", "maxLength": 512 }, "deleted": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "address", "created_at", "id", "name", "updated_at" ] }, "RequestStatusColorEnum": { "enum": [ "exceed", "request", "reserve", "inrent", "cancel", "completed", "debtor" ], "type": "string", "description": "* `exceed` - exceed\n* `request` - Запрос\n* `reserve` - reserve\n* `inrent` - В аренде\n* `cancel` - cancel\n* `completed` - Завершено\n* `debtor` - Должник" }, "RequestStatusEnum": { "enum": [ 0, 1, 2, 3, 4, 5 ], "type": "integer", "description": "* `0` - Запрос\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Отменено\n* `4` - Завершено\n* `5` - Должник" }, "ResetPassword": { "type": "object", "properties": { "password": { "type": "string", "writeOnly": true } }, "required": [ "password" ] }, "Resource": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "required": [ "id", "name" ] }, "RingostatCall": { "type": "object", "properties": { "destination": { "type": "string", "writeOnly": true, "maxLength": 255 }, "extension": { "type": "string", "writeOnly": true, "maxLength": 255 } }, "required": [ "destination", "extension" ] }, "RingostatConnect": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true, "title": "Начало", "description": "Начало подключения интеграции" }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true, "title": "Конец", "description": "Конец подключения интеграции" }, "connected": { "type": "boolean", "title": "Подключено", "description": "Подключено интеграция" }, "extra": { "nullable": true, "title": "Дополнительно", "description": "Дополнительные данные" }, "demo": { "type": "boolean", "title": "Демо", "description": "Демо подключение интеграции" }, "tenant": { "type": "integer", "readOnly": true, "title": "Компания", "description": "Компания" }, "integration": { "type": "integer", "readOnly": true, "title": "Интеграция", "description": "Интеграция" }, "integration_period": { "type": "integer", "nullable": true, "title": "Тариф", "description": "Тариф интеграции" } }, "required": [ "created_at", "end_at", "id", "integration", "start_at", "tenant", "updated_at" ] }, "RingostatCreateClient": { "type": "object", "properties": { "client_id": { "type": "string", "maxLength": 255 } }, "required": [ "client_id" ] }, "RingostatResult": { "type": "object", "properties": { "caller": { "type": "string", "readOnly": true }, "dst": { "type": "string", "readOnly": true }, "pool_name": { "type": "string", "readOnly": true }, "disposition": { "type": "string", "readOnly": true }, "calldate": { "type": "string", "format": "date-time", "readOnly": true }, "category_mark": { "type": "string", "readOnly": true }, "duration": { "type": "integer", "readOnly": true }, "call_type": { "type": "string", "readOnly": true }, "waittime": { "type": "integer", "readOnly": true }, "billsec": { "type": "integer", "readOnly": true }, "connected_with": { "type": "string", "readOnly": true }, "call_counter": { "type": "integer", "readOnly": true }, "proper_flag": { "type": "boolean", "readOnly": true }, "repeated_flag": { "type": "boolean", "readOnly": true }, "utm_source": { "type": "string", "readOnly": true }, "utm_medium": { "type": "string", "readOnly": true }, "utm_campaign": { "type": "string", "readOnly": true }, "utm_content": { "type": "string", "readOnly": true }, "utm_term": { "type": "string", "readOnly": true }, "uniqueid": { "type": "string", "readOnly": true }, "category_number": { "type": "string", "readOnly": true }, "employee_number": { "type": "string", "readOnly": true }, "employee_mark": { "type": "string", "readOnly": true }, "client_id": { "type": "string", "readOnly": true }, "remote_ip": { "type": "string", "readOnly": true }, "refferrer": { "type": "string", "format": "uri", "readOnly": true }, "landing": { "type": "string", "format": "uri", "readOnly": true }, "call_card": { "type": "string", "format": "uri", "readOnly": true }, "additional_number": { "type": "string", "readOnly": true }, "has_recording": { "type": "boolean", "readOnly": true }, "scheme_name": { "type": "string", "readOnly": true }, "duration_ms": { "type": "integer", "readOnly": true }, "employee_fio": { "type": "string", "readOnly": true }, "department": { "type": "string", "readOnly": true }, "caller_number": { "type": "string", "readOnly": true }, "recording": { "type": "string", "format": "uri", "readOnly": true }, "recording_wav": { "type": "string", "format": "uri", "readOnly": true }, "yume_client_name": { "type": "string", "readOnly": true }, "yume_client_id": { "type": "string", "readOnly": true } }, "required": [ "additional_number", "billsec", "call_card", "call_counter", "call_type", "calldate", "caller", "caller_number", "category_mark", "category_number", "client_id", "connected_with", "department", "disposition", "dst", "duration", "duration_ms", "employee_fio", "employee_mark", "employee_number", "has_recording", "landing", "pool_name", "proper_flag", "recording", "recording_wav", "refferrer", "remote_ip", "repeated_flag", "scheme_name", "uniqueid", "utm_campaign", "utm_content", "utm_medium", "utm_source", "utm_term", "waittime", "yume_client_id", "yume_client_name" ] }, "SMSBalance": { "type": "object", "properties": { "balance": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "balance" ] }, "SMSBalanceHistory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" }, "invoice": { "type": "integer" } }, "required": [ "created_at", "id", "invoice", "tenant", "updated_at" ] }, "SMSBroadcast": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "message": { "type": "string", "maxLength": 1024 }, "trigger": { "allOf": [ { "$ref": "#/components/schemas/TriggerEnum" } ], "minimum": 0, "maximum": 32767 }, "schedule": { "type": "string", "nullable": true, "pattern": "^(\\*|([0-9]|[1-5][0-9])) (\\*|([01]?[0-9]|2[0-3])) (\\*|([1-9]|[12][0-9]|3[01])) (\\*|([1-9]|1[0-2])) (\\*|([0-6]))$", "maxLength": 64 }, "send_time": { "type": "string", "format": "date-time", "nullable": true }, "enabled": { "type": "boolean" }, "tenant": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "recipients": { "type": "array", "items": { "$ref": "#/components/schemas/SMSBroadcastRecipient" } } }, "required": [ "created_at", "id", "message", "name", "recipients", "tenant", "updated_at" ] }, "SMSBroadcastRecipient": { "type": "object", "properties": { "phone": { "type": "string", "pattern": "^\\+?\\d{9,15}$" }, "client_id": { "type": "integer", "nullable": true } }, "required": [ "phone" ] }, "SMSBroadcastTemplate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "message": { "type": "string" } }, "required": [ "id", "message", "name" ] }, "SMSMessage": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "cost": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "phones": { "type": "array", "items": { "type": "string", "maxLength": 32 }, "nullable": true }, "message": { "type": "string" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "type": { "allOf": [ { "$ref": "#/components/schemas/SMSMessageTypeEnum" } ], "minimum": 0, "maximum": 32767 }, "document_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "created_by_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "status": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/SMSMessageStatusEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "client": { "type": "string", "readOnly": true }, "request_id": { "type": "string", "readOnly": true } }, "required": [ "client", "created_at", "id", "message", "request_id" ] }, "SMSMessageStatusEnum": { "enum": [ "PENDING", "DELIVERED", "FAILED" ], "type": "string", "description": "* `PENDING` - PENDING\n* `DELIVERED` - DELIVERED\n* `FAILED` - FAILED" }, "SMSMessageTypeEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - simple\n* `1` - document\n* `2` - otp" }, "SaleStatusToEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - черновик\n* `1` - Продано\n* `2` - cancelled" }, "Schedule": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "inventory": { "type": "integer", "nullable": true }, "request_id": { "type": "integer" }, "request_status_color": { "allOf": [ { "$ref": "#/components/schemas/RequestStatusColorEnum" } ], "readOnly": true }, "request_autorenewal": { "type": "boolean", "readOnly": true }, "client": { "allOf": [ { "$ref": "#/components/schemas/BaseClient" } ], "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "fact_start_at": { "type": "string", "format": "date-time", "nullable": true }, "fact_end_at": { "type": "string", "format": "date-time", "nullable": true }, "rent_start": { "type": "string", "format": "date-time" }, "rent_fact_start": { "type": "string", "format": "date-time" }, "rent_end": { "type": "string", "format": "date-time" }, "rent_fact_end": { "type": "string", "format": "date-time" }, "rent_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "rent_price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "rent_price_inventory": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "rent_price_service": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "rent_price_paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "deposits": { "type": "array", "items": { "$ref": "#/components/schemas/OrderRequestDeposit" }, "readOnly": true } }, "required": [ "client", "deposits", "id", "rent_end", "rent_fact_end", "rent_fact_start", "rent_start", "request_autorenewal", "request_id", "request_status_color" ] }, "Service": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "disabled": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DisabledEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceTarifs" }, "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "type": { "allOf": [ { "$ref": "#/components/schemas/ServiceTypeEnum" } ], "minimum": 0, "maximum": 2147483647 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "bonus": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "extra": {}, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "published": { "type": "boolean" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "image": { "type": "string", "format": "uri", "nullable": true }, "deleted": { "type": "boolean" }, "deleted_at": { "type": "string", "format": "date-time", "nullable": true }, "tenant": { "type": "integer" }, "category": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "tarifs", "updated_at" ] }, "ServiceGeneral": { "type": "object", "properties": { "count": { "type": "integer" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "amount_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "amount", "amount_avg", "count" ] }, "ServiceGeneralMetrics": { "type": "object", "properties": { "count": { "type": "integer", "default": 0 }, "days": { "type": "integer", "default": 0 }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "prediction", "profit" ] }, "ServiceGroup": { "type": "object", "properties": { "service": { "type": "integer" }, "name": { "type": "string", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "count": { "type": "integer" } }, "required": [ "count", "name", "price", "service" ] }, "ServiceMetrics": { "type": "object", "properties": { "service": { "type": "integer", "readOnly": true }, "workers": { "type": "array", "items": { "type": "integer" } }, "service_name": { "type": "string", "readOnly": true }, "count": { "type": "integer", "readOnly": true, "default": 0 }, "days": { "type": "integer", "readOnly": true, "default": 0 }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "count", "days", "prediction", "profit", "service", "service_name", "workers" ] }, "ServiceMetricsHistory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "service": { "type": "integer", "nullable": true }, "service_name": { "type": "string", "readOnly": true }, "request": { "type": "integer", "nullable": true }, "request_status": { "type": "integer", "readOnly": true }, "date": { "type": "string", "format": "date" }, "client": { "allOf": [ { "$ref": "#/components/schemas/BaseClient" } ], "readOnly": true }, "worker": { "type": "integer", "readOnly": true }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "client", "date", "id", "prediction", "profit", "request_status", "service_name", "worker" ] }, "ServiceTarifs": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "one_time_payment": { "type": "boolean" }, "published": { "type": "boolean" }, "tenant": { "type": "integer" }, "service": { "type": "integer" }, "duriation": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "service", "updated_at" ] }, "ServiceTypeEnum": { "enum": [ 0, 1, 2, 3, 4 ], "type": "integer", "description": "* `0` - Доставка\n* `1` - Не выбрано\n* `2` - Доставка обратно\n* `3` - Доставка туда и обратно\n* `4` - workshop" }, "ServiceWorkerMetrics": { "type": "object", "properties": { "service": { "type": "integer", "readOnly": true }, "worker": { "type": "integer", "readOnly": true }, "service_name": { "type": "string", "readOnly": true }, "count": { "type": "integer", "readOnly": true, "default": 0 }, "days": { "type": "integer", "readOnly": true, "default": 0 }, "prediction": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "count", "days", "prediction", "profit", "service", "service_name", "worker" ] }, "SettingsConfig": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" }, "company_iin": { "type": "string" }, "company_bin": { "type": "string" }, "currency": { "type": "string" }, "currency_prefix": { "type": "boolean", "default": true }, "language": { "type": "string" }, "company_bank": { "type": "string" }, "company_iban": { "type": "string" }, "company_bic": { "type": "string" }, "company_account_number": { "type": "string" }, "feature_point_clean": { "type": "boolean", "default": false }, "feature_group": { "type": "boolean", "default": true }, "feature_group_available": { "type": "boolean", "default": false }, "feature_set": { "type": "boolean", "default": true }, "feature_set_alternative": { "type": "boolean", "default": false }, "feature_service": { "type": "boolean", "default": true }, "feature_inventory": { "type": "boolean", "default": false }, "feature_inventory_car": { "type": "boolean", "default": false }, "feature_unique_id": { "type": "boolean", "default": false }, "feature_inventorization_before": { "type": "boolean", "default": false }, "feature_inventorization_after": { "type": "boolean", "default": true }, "feature_inventorization_media": { "type": "boolean", "default": false }, "feature_inventorization_media_desktop": { "type": "boolean", "default": true }, "feature_inventorization_request": { "type": "boolean", "default": false }, "feature_order_recipe": { "type": "boolean", "default": false }, "feature_sublease": { "type": "boolean", "default": false }, "feature_okauto": { "type": "boolean", "default": false }, "feature_transaction_date": { "type": "boolean", "default": false }, "feature_transaction_overpay": { "type": "boolean", "default": false }, "feature_transaction_schedule": { "type": "boolean", "default": false }, "feature_delivery_confirm": { "type": "boolean", "default": true }, "feature_delivery_rent_start": { "type": "boolean", "default": false }, "feature_delivery_rent_end": { "type": "boolean", "default": false }, "request": { "type": "string" }, "reserve": { "type": "string" }, "debtor": { "type": "string" }, "inrent": { "type": "string" }, "cancel": { "type": "string" }, "completed": { "type": "string" }, "exceed": { "type": "string" }, "reservation": { "type": "boolean" }, "collection": { "type": "boolean" }, "order_draft": { "type": "boolean", "default": true }, "order_flex": { "type": "boolean", "default": false }, "order_agent": { "type": "boolean", "default": false }, "order_client": { "type": "boolean", "default": true }, "order_client_tick_filter": { "type": "array", "items": { "type": "integer" } }, "order_inventory": { "type": "boolean", "default": false }, "order_group": { "type": "boolean", "default": true }, "order_service": { "type": "boolean", "default": true }, "order_penalty_rounding": { "type": "integer", "default": 1 }, "order_penalty_buffer_duration": { "type": "string" }, "order_deposit": { "type": "boolean", "default": true }, "order_pause": { "type": "boolean", "default": true }, "order_group_tarif": { "type": "boolean", "default": false }, "order_inventory_detail": { "type": "boolean", "default": true }, "order_agent_percent": { "type": "integer", "default": 10 }, "order_table_expanded": { "type": "boolean", "default": false }, "order_inventory_occupation": { "type": "boolean", "default": true }, "order_inventory_discount": { "type": "boolean", "default": true }, "order_duration": { "type": "string" }, "order_archive_auto": { "type": "boolean", "default": false }, "order_archive_buffer_duration": { "type": "string" }, "order_default_filter": { "type": "string", "nullable": true }, "order_rental_point": { "type": "boolean", "default": true }, "order_rental_point_return": { "type": "boolean", "default": false }, "order_period": { "type": "boolean", "default": true }, "order_merge_inrent_exceed": { "type": "boolean", "default": false }, "order_single_inventory": { "type": "boolean", "default": false }, "order_autorenewal": { "type": "boolean", "default": false }, "penalty": { "type": "boolean" }, "penalty_type": { "type": "string", "nullable": true }, "penalty_after": { "type": "boolean" }, "penalty_manager_access": { "type": "boolean" }, "penalty_default": { "type": "string" }, "rent_inventory_priority": { "type": "string" }, "creation_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "reservation_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "issue_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "recievement_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "delivery_order_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "single_issue": { "type": "boolean" }, "single_recievement": { "type": "boolean" }, "workshift": { "type": "boolean", "default": false }, "metrics_order_statuses": { "type": "array", "items": { "type": "integer" } }, "metrics_order_payment_statuses": { "type": "array", "items": { "type": "integer" } }, "rent_product_types": { "type": "array", "items": { "type": "string" } }, "penalty_options": { "type": "array", "items": { "$ref": "#/components/schemas/PenaltyOption" } }, "custom_fields": { "allOf": [ { "$ref": "#/components/schemas/CustomFieldUpdate" } ], "readOnly": true }, "feature_bonus": { "type": "boolean", "default": false }, "bonus_default_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "bonus_default_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "bonus_default_usage": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "tax": { "type": "boolean", "default": true }, "tax_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "tax_included": { "type": "boolean", "default": true }, "phone_format": { "type": "string" }, "order_layout_left": {}, "order_layout_right_v2": { "type": "array", "items": { "type": "string" } }, "client_debt_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "client_passport": { "type": "boolean", "default": true }, "client_passport_scan": { "type": "boolean", "default": false }, "client_passport_iin_length": { "type": "integer", "default": 12 }, "client_kaspi_balance": { "type": "boolean", "default": false }, "whapi": { "type": "boolean", "default": false } }, "required": [ "address", "cancel", "collection", "company_account_number", "company_bank", "company_bic", "company_bin", "company_iban", "company_iin", "completed", "currency", "custom_fields", "debtor", "exceed", "inrent", "language", "metrics_order_payment_statuses", "metrics_order_statuses", "name", "order_archive_buffer_duration", "order_client_tick_filter", "order_duration", "order_layout_left", "order_layout_right_v2", "order_penalty_buffer_duration", "penalty", "penalty_after", "penalty_default", "penalty_manager_access", "penalty_options", "phone_format", "rent_inventory_priority", "rent_product_types", "request", "reservation", "reserve", "single_issue", "single_recievement" ] }, "SharedBagDetail": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/SharedBagItemDetail" }, "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "delivery": { "type": "boolean" }, "delivery_return": { "type": "boolean" }, "address": { "type": "string", "nullable": true, "maxLength": 255 }, "address_return": { "type": "string", "nullable": true, "maxLength": 255 }, "extra": {}, "period": { "type": "integer", "nullable": true } }, "required": [ "children", "id", "price", "price_discount" ] }, "SharedBagItem": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "count": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "product": { "type": "integer" }, "discount": { "type": "integer", "readOnly": true, "nullable": true } }, "required": [ "discount", "id", "product" ] }, "SharedBagItemDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "product": { "allOf": [ { "$ref": "#/components/schemas/SharedProduct" } ], "readOnly": true }, "count": { "type": "integer", "maximum": 2147483647, "minimum": 0 }, "discount": { "type": "integer", "nullable": true }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "id", "price", "price_discount", "product" ] }, "SharedOrderRequestItems": { "type": "object", "properties": { "set": { "type": "array", "items": { "$ref": "#/components/schemas/SharedOrderRequestProduct" } }, "service": { "type": "array", "items": { "$ref": "#/components/schemas/SharedOrderRequestProduct" } }, "product": { "type": "array", "items": { "$ref": "#/components/schemas/SharedOrderRequestProduct" } } }, "required": [ "product", "service", "set" ] }, "SharedOrderRequestProduct": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "type": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Type476Enum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "unique_id": { "type": "string", "nullable": true, "maxLength": 32 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "discount": { "type": "integer", "nullable": true }, "discount_amount": { "type": "integer", "nullable": true }, "images": { "type": "string", "readOnly": true }, "bonus": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {} }, "required": [ "id", "images" ] }, "SharedProduct": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "nullable": true, "maxLength": 255 }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "type": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Type476Enum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "unique_id": { "type": "string", "nullable": true, "maxLength": 64 }, "category": { "type": "integer", "nullable": true }, "image": { "type": "string", "format": "uri", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "amount": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "discount": { "type": "integer", "nullable": true }, "discount_amount": { "type": "integer", "readOnly": true, "nullable": true }, "images": { "type": "string", "readOnly": true }, "bonus": { "type": "string", "readOnly": true }, "extra": {} }, "required": [ "bonus", "discount_amount", "id", "images", "price_discount" ] }, "SharedProductGroup": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "groups": { "type": "array", "items": { "$ref": "#/components/schemas/SharedProduct" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "comment": { "type": "string", "nullable": true, "maxLength": 512 }, "prefix": { "type": "string", "maxLength": 16 }, "icon": { "type": "string", "format": "uri", "nullable": true }, "slug": { "type": "string", "nullable": true, "maxLength": 50, "pattern": "^[-a-zA-Z0-9_]+$" }, "deleted": { "type": "boolean" }, "lifetime": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "extra": {}, "tenant": { "type": "integer" }, "parent": { "type": "integer", "nullable": true } }, "required": [ "created_at", "groups", "id", "name", "prefix", "updated_at" ] }, "SharedUserPassword": { "type": "object", "properties": { "old_password": { "type": "string" }, "new_password": { "type": "string" } }, "required": [ "new_password", "old_password" ] }, "SharedUserProductSave": { "type": "object", "properties": { "product": { "type": "integer" } }, "required": [ "product" ] }, "SharedUserProductSet": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "products": { "type": "array", "items": { "$ref": "#/components/schemas/SharedProduct" }, "readOnly": true } }, "required": [ "id", "name", "products" ] }, "SharedUserProductSetItem": { "type": "object", "properties": { "product": { "type": "integer" } }, "required": [ "product" ] }, "SharedUserProfile": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "birth_date": { "type": "string", "format": "date", "nullable": true }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "phone": { "type": "string", "nullable": true }, "bonus": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "grant_sent": { "type": "boolean", "readOnly": true }, "grant_accessible": { "type": "boolean", "readOnly": true }, "loyalty_percent": { "type": "integer", "readOnly": true }, "verified": { "type": "boolean", "readOnly": true }, "extra": {}, "delivery_limit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "orders_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "next_loyalty": { "type": "string", "readOnly": true } }, "required": [ "birth_date", "bonus", "delivery_limit", "first_name", "grant_accessible", "grant_sent", "id", "last_name", "loyalty_percent", "next_loyalty", "orders_price", "phone", "verified" ] }, "SideEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - self\n* `1` - foreign" }, "Signer": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "phone": { "type": "string", "nullable": true, "maxLength": 32 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "type": { "$ref": "#/components/schemas/SignerTypeEnum" }, "outer_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true } }, "required": [ "id", "name" ] }, "SignerTypeEnum": { "enum": [ "company", "client" ], "type": "string", "description": "* `company` - company\n* `client` - клиент" }, "SipuniCallRecord": { "type": "object", "description": "Serializer for displaying call record (parsed from CSV)", "properties": { "id": { "type": "string", "readOnly": true }, "start_time": { "type": "string", "format": "date-time", "readOnly": true }, "duration": { "type": "integer", "readOnly": true }, "from_number": { "type": "string", "readOnly": true }, "to_number": { "type": "string", "readOnly": true }, "call_type": { "type": "string", "readOnly": true }, "status": { "type": "string", "readOnly": true }, "recording_url": { "type": "string", "readOnly": true } }, "required": [ "call_type", "duration", "from_number", "id", "recording_url", "start_time", "status", "to_number" ] }, "SipuniOperator": { "type": "object", "description": "Serializer for operator data (parsed from CSV)", "properties": { "number": { "type": "string", "readOnly": true }, "name": { "type": "string", "readOnly": true }, "status": { "type": "string", "readOnly": true }, "last_seen": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "last_seen", "name", "number", "status" ] }, "Source3eeEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - generated\n* `1` - uploaded" }, "Source949Enum": { "enum": [ "web", "push", "telegram" ], "type": "string", "description": "* `web` - web\n* `push` - push\n* `telegram` - telegram" }, "StageLoadede": { "type": "object", "properties": { "stage": { "type": "integer" }, "count": { "type": "integer" } }, "required": [ "count", "stage" ] }, "StageSpeed": { "type": "object", "properties": { "stage": { "type": "integer" }, "duration": { "type": "string" } }, "required": [ "duration", "stage" ] }, "Status0aeEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - DEFAULT\n* `1` - RECEIVED\n* `2` - RETURNED" }, "Status14dEnum": { "enum": [ "waiting", "confirmed", "rejected", "refunded" ], "type": "string", "description": "* `waiting` - В ожидании\n* `confirmed` - Подтвержден\n* `rejected` - Отклонен\n* `refunded` - Возвращен" }, "Status26aEnum": { "enum": [ "exceed", "request", "reserve", "inrent", "cancel", "completed", "debtor" ], "type": "string", "description": "* `exceed` - exceed\n* `request` - Запрос\n* `reserve` - reserve\n* `inrent` - В аренде\n* `cancel` - cancel\n* `completed` - Завершено\n* `debtor` - Должник" }, "StatusColorEnum": { "enum": [ "exceed", "request", "reserve", "inrent", "cancel", "completed", "debtor" ], "type": "string", "description": "* `exceed` - exceed\n* `request` - Запрос\n* `reserve` - reserve\n* `inrent` - В аренде\n* `cancel` - cancel\n* `completed` - Завершено\n* `debtor` - Должник" }, "StatusD51Enum": { "enum": [ "active", "disabled" ], "type": "string", "description": "* `active` - active\n* `disabled` - disabled" }, "StatusE96Enum": { "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "type": "integer", "description": "* `0` - Свободно\n* `1` - Забронировано\n* `2` - В аренде\n* `3` - Сломано\n* `4` - Просрочка\n* `5` - Не активна\n* `6` - Продано\n* `7` - repair\n* `8` - written off\n* `9` - warehouse\n* `10` - Доставка\n* `11` - Доставка" }, "StatusToEnum": { "enum": [ 0, 1, 2, 3, 4, 5 ], "type": "integer", "description": "* `0` - черновик\n* `1` - готово\n* `2` - просмотр\n* `3` - подтверждение\n* `4` - отклонено\n* `5` - подписано" }, "TableSettings": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "fields": { "type": "array", "items": { "$ref": "#/components/schemas/TableSettingsField" } } }, "required": [ "fields", "id", "name" ] }, "TableSettingsField": { "type": "object", "properties": { "key": { "type": "string" }, "width": { "type": "integer", "nullable": true }, "active": { "type": "boolean" } }, "required": [ "active", "key" ] }, "Tag": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "name": { "type": "string", "maxLength": 255 }, "extra": {}, "tenant": { "type": "integer" } }, "required": [ "created_at", "id", "name", "updated_at" ] }, "TagsEnum": { "enum": [ "free", "promo", "popular", "recommend" ], "type": "string", "description": "* `free` - free\n* `promo` - promo\n* `popular` - popular\n* `recommend` - recommend" }, "Tarif": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "weekdays": { "type": "array", "items": { "type": "integer", "maximum": 6, "minimum": 0 } }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "name": { "type": "string", "maxLength": 255 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "updated_at" ] }, "TarifBulkCreate": { "type": "object", "properties": { "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/TarifBulkCreateEntity" } } }, "required": [ "tarifs" ] }, "TarifBulkCreateEntity": { "type": "object", "properties": { "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "weekdays": { "type": "array", "items": { "type": "integer", "maximum": 6, "minimum": 0 } }, "start": { "type": "string", "format": "time", "nullable": true }, "end": { "type": "string", "format": "time", "nullable": true }, "published": { "type": "boolean" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "name": { "type": "string", "maxLength": 255 }, "inventory": { "type": "integer", "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } } }, "TarifBulkUpdate": { "type": "object", "properties": { "tarifs": { "type": "array", "items": { "$ref": "#/components/schemas/TarifBulkUpdateEntity" } } }, "required": [ "tarifs" ] }, "TarifBulkUpdateEntity": { "type": "object", "properties": { "id": { "type": "integer" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "inventory": { "type": "integer", "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "inventory_set": { "type": "integer", "nullable": true }, "inventory_set_price": { "type": "integer", "nullable": true }, "time_period": { "type": "integer", "nullable": true } }, "required": [ "id", "price" ] }, "TelegramBotLink": { "type": "object", "properties": { "username": { "type": "string", "readOnly": true }, "code": { "type": "string", "writeOnly": true, "minLength": 6, "maxLength": 6 } }, "required": [ "code", "username" ] }, "TemplateV2": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "content_type": { "$ref": "#/components/schemas/ContentTypeEnum" }, "filter": {}, "created_by": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "status": { "$ref": "#/components/schemas/StatusD51Enum" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "format": { "$ref": "#/components/schemas/FormatEnum" }, "width": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "height": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_left": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_right": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_top": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_bottom": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "scale": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$" } }, "required": [ "content_type", "created_at", "id", "name", "updated_at" ] }, "TemplateV2Detail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "content_type": { "$ref": "#/components/schemas/ContentTypeEnum" }, "filter": {}, "created_by": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "points": { "type": "array", "items": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 } }, "status": { "$ref": "#/components/schemas/StatusD51Enum" }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "format": { "$ref": "#/components/schemas/FormatEnum" }, "width": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "height": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_left": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_right": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_top": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "margin_bottom": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,2})?$" }, "scale": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$" }, "content": { "type": "string" } }, "required": [ "content", "content_type", "created_at", "id", "name", "updated_at" ] }, "TenantAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "user": { "type": "integer", "readOnly": true, "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "address": { "type": "string", "maxLength": 255 }, "domain": { "type": "string", "writeOnly": true }, "logo": { "type": "string", "format": "uri", "nullable": true }, "type": { "type": "integer", "nullable": true }, "type_code": { "type": "string", "readOnly": true, "nullable": true }, "currency": { "type": "string", "default": "KZT" }, "country": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CountryEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "link": { "type": "string", "readOnly": true, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "limits": { "type": "array", "items": { "$ref": "#/components/schemas/TenantLimit" }, "readOnly": true }, "extra": {} }, "required": [ "created_at", "end_at", "id", "limits", "link", "name", "start_at", "type_code", "user" ] }, "TenantCard": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tenant": { "type": "integer", "readOnly": true }, "active": { "type": "boolean" }, "status": { "allOf": [ { "$ref": "#/components/schemas/TenantCardStatusEnum" } ], "readOnly": true }, "card_hash": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "bank_alias": { "type": "string", "readOnly": true, "nullable": true }, "brand_alias": { "type": "string", "readOnly": true, "nullable": true }, "expiry_year": { "type": "string", "readOnly": true, "nullable": true }, "expiry_month": { "type": "string", "readOnly": true, "nullable": true }, "recurring": { "type": "boolean" } }, "required": [ "bank_alias", "brand_alias", "card_hash", "created_at", "expiry_month", "expiry_year", "id", "status", "tenant" ] }, "TenantCardInit": { "type": "object", "properties": { "pg_redirect_url": { "type": "string", "readOnly": true }, "pg_payment_id": { "type": "string", "readOnly": true }, "link": { "type": "string", "format": "uri", "writeOnly": true } }, "required": [ "link", "pg_payment_id", "pg_redirect_url" ] }, "TenantCardStatusEnum": { "enum": [ "ok", "approved", "deleted" ], "type": "string", "description": "* `ok` - ok\n* `approved` - approved\n* `deleted` - deleted" }, "TenantDomainCheck": { "type": "object", "properties": { "domain": { "type": "string", "writeOnly": true }, "exists": { "type": "boolean", "readOnly": true } }, "required": [ "domain", "exists" ] }, "TenantInvoice": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tenant": { "type": "integer", "readOnly": true }, "card": { "type": "integer", "readOnly": true, "nullable": true }, "currency": { "allOf": [ { "$ref": "#/components/schemas/CurrencyEnum" } ], "readOnly": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/Status14dEnum" } ], "readOnly": true }, "total": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "captured_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "refund_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "captured_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/TenantInvoiceItemInfo" } }, "errors": { "type": "array", "items": { "$ref": "#/components/schemas/TenantInvoiceError" } }, "transaction_url": { "type": "string", "format": "uri", "readOnly": true, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" } }, "required": [ "captured_amount", "captured_at", "card", "created_at", "currency", "end_at", "errors", "id", "items", "refund_amount", "start_at", "status", "tenant", "total", "transaction_url" ] }, "TenantInvoiceCalculation": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/TenantInvoiceItem" } } }, "required": [ "items" ] }, "TenantInvoiceDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "tenant": { "type": "integer", "readOnly": true }, "card": { "type": "integer", "readOnly": true, "nullable": true }, "currency": { "allOf": [ { "$ref": "#/components/schemas/CurrencyEnum" } ], "readOnly": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/Status14dEnum" } ], "readOnly": true }, "total": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "captured_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "refund_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "captured_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/TenantInvoiceItem" } }, "success_url": { "type": "string", "writeOnly": true }, "transaction_url": { "type": "string", "format": "uri", "readOnly": true, "nullable": true } }, "required": [ "captured_amount", "captured_at", "card", "currency", "end_at", "id", "items", "refund_amount", "start_at", "status", "success_url", "tenant", "total", "transaction_url" ] }, "TenantInvoiceError": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "code": { "type": "string", "maxLength": 64 }, "description": { "type": "string" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "invoice": { "type": "integer" } }, "required": [ "code", "created_at", "description", "id", "invoice" ] }, "TenantInvoiceItem": { "type": "object", "properties": { "id": { "type": "integer" }, "type": { "$ref": "#/components/schemas/Type9b6Enum" }, "integration_period": { "type": "integer" }, "count": { "type": "integer" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true } }, "required": [ "count", "price", "type" ] }, "TenantInvoiceItemInfo": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "integration": { "allOf": [ { "$ref": "#/components/schemas/IntegrationInfo" } ], "readOnly": true }, "variant": { "allOf": [ { "$ref": "#/components/schemas/IntegrationVariant" } ], "readOnly": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/Type9b6Enum" } ], "default": "integration" }, "start_at": { "type": "string", "format": "date-time", "nullable": true }, "end_at": { "type": "string", "format": "date-time", "nullable": true }, "count": { "type": "integer", "maximum": 32767, "minimum": 0 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "invoice": { "type": "integer" }, "integration_period": { "type": "integer", "nullable": true } }, "required": [ "id", "integration", "invoice", "variant" ] }, "TenantInvoiceManual": { "type": "object", "properties": { "success_url": { "type": "string", "writeOnly": true }, "failure_url": { "type": "string", "writeOnly": true }, "transaction_id": { "type": "string", "readOnly": true }, "transaction_url": { "type": "string", "readOnly": true } }, "required": [ "failure_url", "success_url", "transaction_id", "transaction_url" ] }, "TenantLimit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "type": { "allOf": [ { "$ref": "#/components/schemas/TenantLimitTypeEnum" } ], "readOnly": true }, "limit": { "type": "integer", "readOnly": true, "nullable": true }, "limit_free": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "count": { "type": "integer", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "end_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true } }, "required": [ "count", "end_at", "id", "limit", "limit_free", "price", "start_at", "type" ] }, "TenantLimitTypeEnum": { "enum": [ "staff", "rental_point", "inventory", "inventory_car", "inventory_group", "inventory_set", "service", "template", "document" ], "type": "string", "description": "* `staff` - Сотрудники\n* `rental_point` - Точки аренды\n* `inventory` - Инвентарь\n* `inventory_car` - Автомобили\n* `inventory_group` - Продукты\n* `inventory_set` - Комплекты\n* `service` - Услуги\n* `template` - Шаблоны\n* `document` - Документы" }, "TenantProfileEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "phone": { "type": "string", "pattern": "^\\+?\\d{9,15}$" }, "email": { "type": "string", "format": "email" }, "password": { "type": "string", "writeOnly": true }, "company_name": { "type": "string", "nullable": true } }, "required": [ "email", "id", "password", "phone" ] }, "TokenBlacklist": { "type": "object", "properties": { "refresh": { "type": "string", "writeOnly": true } }, "required": [ "refresh" ] }, "TokenRefresh": { "type": "object", "properties": { "access": { "type": "string", "readOnly": true }, "refresh": { "type": "string", "writeOnly": true } }, "required": [ "access", "refresh" ] }, "TopicEnum": { "enum": [ "default", "request_reserved", "request_completed", "request_time_exceed", "request_payment_status_change", "transaction_created", "transaction_refund", "transaction_delete", "client_debt_limit_exceeded", "client_blacklist_added", "document_created", "document_signed", "inventorization_created", "inventorization_checklist", "delivery_assigned", "delivery_status_change", "delivery_completed", "delivery_cancelled", "maintenance_due", "maintenance_assigned", "maintenance_completed", "inventory_broken", "sms_balance_low", "sms_error", "sms_refund", "okauto_penalty_created", "wazzup_message_received" ], "type": "string", "description": "* `default` - default\n* `request_reserved` - request_reserved\n* `request_completed` - request_completed\n* `request_time_exceed` - request_time_exceed\n* `request_payment_status_change` - request_payment_status_change\n* `transaction_created` - transaction_created\n* `transaction_refund` - transaction_refund\n* `transaction_delete` - transaction_delete\n* `client_debt_limit_exceeded` - client_debt_limit_exceeded\n* `client_blacklist_added` - client_blacklist_added\n* `document_created` - document_created\n* `document_signed` - document_signed\n* `inventorization_created` - inventorization_created\n* `inventorization_checklist` - inventorization_checklist\n* `delivery_assigned` - delivery_assigned\n* `delivery_status_change` - delivery_status_change\n* `delivery_completed` - delivery_completed\n* `delivery_cancelled` - delivery_cancelled\n* `maintenance_due` - maintenance_due\n* `maintenance_assigned` - maintenance_assigned\n* `maintenance_completed` - maintenance_completed\n* `inventory_broken` - inventory_broken\n* `sms_balance_low` - sms_balance_low\n* `sms_error` - sms_error\n* `sms_refund` - sms_refund\n* `okauto_penalty_created` - okauto_penalty_created\n* `wazzup_message_received` - wazzup_message_received" }, "TraccarUser": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 128 }, "email": { "type": "string", "format": "email", "maxLength": 128 }, "phone": { "type": "string", "nullable": true, "maxLength": 128 }, "readonly": { "type": "boolean" }, "administrator": { "type": "boolean", "nullable": true }, "map": { "type": "string", "nullable": true, "maxLength": 128 }, "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" }, "zoom": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "coordinateformat": { "type": "string", "nullable": true, "maxLength": 128 }, "disabled": { "type": "boolean", "nullable": true }, "expirationtime": { "type": "string", "format": "date-time", "nullable": true }, "devicelimit": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "userlimit": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "devicereadonly": { "type": "boolean", "nullable": true }, "limitcommands": { "type": "boolean", "nullable": true }, "fixedemail": { "type": "boolean", "nullable": true }, "poilayer": { "type": "string", "nullable": true, "maxLength": 512 }, "attributes": { "type": "string", "nullable": true, "maxLength": 4000 } }, "required": [ "email", "id", "name" ] }, "TraccarUserCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 128 }, "email": { "type": "string", "format": "email", "maxLength": 128 } }, "required": [ "email", "id", "name" ] }, "TransactionGeneral": { "type": "object", "properties": { "income": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "expense": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "profit": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "expense", "income", "profit" ] }, "TransactionRefundCreate": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "reason": { "type": "string", "nullable": true }, "request": { "type": "integer", "writeOnly": true, "nullable": true }, "sale": { "type": "integer", "writeOnly": true, "nullable": true }, "payment_type": { "type": "integer", "writeOnly": true }, "payment_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true } }, "required": [ "id", "payment_amount", "payment_type" ] }, "TransactionSchedule": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "request": { "type": "integer", "readOnly": true, "nullable": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "amount_paid": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "weekend": { "type": "boolean" }, "date": { "type": "string", "format": "date-time", "readOnly": true }, "custom": { "type": "boolean" } }, "required": [ "amount", "amount_paid", "date", "id", "request" ] }, "TransactionStatementExchange": { "type": "object", "properties": { "account_from": { "type": "integer", "writeOnly": true }, "account_to": { "type": "integer", "writeOnly": true }, "tags": { "type": "array", "items": { "type": "integer", "writeOnly": true }, "writeOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true }, "datetime": { "type": "string", "format": "date-time", "writeOnly": true } }, "required": [ "account_from", "account_to", "amount", "datetime" ] }, "TransactionStatementExchangeEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "account_from": { "type": "integer", "writeOnly": true }, "account_to": { "type": "integer", "writeOnly": true }, "tags": { "type": "array", "items": { "type": "integer", "writeOnly": true }, "writeOnly": true }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "writeOnly": true }, "datetime": { "type": "string", "format": "date-time", "writeOnly": true } }, "required": [ "id" ] }, "TransactionStatementGeneral": { "type": "object", "properties": { "count": { "type": "integer" }, "sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "avg", "count", "sum" ] }, "TriggerEnum": { "enum": [ 0, 1, 2, 3, 4 ], "type": "integer", "description": "* `0` - Default\n* `1` - Birthday\n* `2` - Debt\n* `3` - Penalty\n* `4` - Congratulations" }, "Type135Enum": { "enum": [ "CAR", "SCOOTER", "MOTORCYCLE" ], "type": "string", "description": "* `CAR` - Машина\n* `SCOOTER` - Электросамокат\n* `MOTORCYCLE` - Мотоцикл/Мопед" }, "Type305Enum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - STRING\n* `1` - AMOUNT" }, "Type433Enum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - Физ. лицо\n* `1` - Юр. лицо" }, "Type476Enum": { "enum": [ "set", "product", "service" ], "type": "string", "description": "* `set` - set\n* `product` - product\n* `service` - service" }, "Type4a9Enum": { "enum": [ "integration", "module" ], "type": "string", "description": "* `integration` - integration\n* `module` - module" }, "Type5b9Enum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - one time\n* `1` - periodic" }, "Type61eEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - original\n* `1` - overlay\n* `2` - esign\n* `3` - sign" }, "Type6ecEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - ИП\n* `1` - ТОО\n* `2` - АО\n* `3` - ПК" }, "Type978Enum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - AUTO\n* `1` - MANUAL" }, "Type9b6Enum": { "enum": [ "staff", "rental_point", "inventory", "inventory_car", "module", "integration" ], "type": "string", "description": "* `staff` - Пользовательские места\n* `rental_point` - Точки аренды\n* `inventory` - Инвентарь\n* `inventory_car` - Автомобили\n* `module` - Модуль\n* `integration` - Интеграция" }, "Type9ddEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - Аренда\n* `1` - Продажа" }, "TypeBe1Enum": { "enum": [ "html", "pdf", "docx", "doc" ], "type": "string", "description": "* `html` - html\n* `pdf` - pdf\n* `docx` - docx\n* `doc` - doc" }, "TypeC9cEnum": { "enum": [ 0, 1 ], "type": "integer", "description": "* `0` - transaction_spend\n* `1` - transaction_earn" }, "TypeCf7Enum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - Скидка\n* `1` - Промокод\n* `2` - Сумма" }, "TypeFd0Enum": { "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "type": "integer", "description": "* `0` - reservation\n* `1` - issue\n* `2` - receivement\n* `3` - cancel\n* `4` - archive\n* `5` - collect\n* `6` - creation\n* `7` - delivery pickup\n* `8` - delivery issue" }, "Unavailable": { "type": "object", "properties": { "request_id": { "type": "integer", "nullable": true, "readOnly": true }, "request_status": { "allOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" } ], "minimum": -32768, "maximum": 32767 }, "inventory": { "type": "integer" }, "start_at": { "type": "string", "format": "date-time" }, "end_at": { "type": "string", "format": "date-time" } }, "required": [ "end_at", "inventory", "request_id", "start_at" ] }, "UnitTypeEnum": { "enum": [ "litre", "kg", "g", "ml", "piece", "m3" ], "type": "string", "description": "* `litre` - Litre\n* `kg` - Kilogram\n* `g` - Gram\n* `ml` - Millilitre\n* `piece` - Piece\n* `m3` - Cubic Meter" }, "UserDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "avatar": { "type": "string", "format": "uri", "nullable": true }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "group": { "type": "integer", "readOnly": true }, "is_staff": { "type": "boolean", "readOnly": true }, "is_sublease": { "type": "boolean", "readOnly": true }, "is_superuser": { "type": "boolean", "readOnly": true }, "password": { "type": "string", "writeOnly": true }, "point": { "type": "integer", "readOnly": true }, "points": { "type": "array", "items": { "type": "integer" } }, "salary_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true } }, "required": [ "group", "id", "is_staff", "is_sublease", "is_superuser", "password", "point" ] }, "UserOrderList": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "rent_start": { "type": "string", "format": "date-time" }, "rent_end": { "type": "string", "format": "date-time" }, "status": { "allOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" } ], "minimum": 0, "maximum": 32767 }, "payment_status": { "allOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "delivery_address": { "type": "string" }, "delivery_address_return": { "type": "string" }, "time_exceed": { "type": "boolean" }, "penalty_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "reviews_cnt": { "type": "integer", "readOnly": true }, "products": { "type": "array", "items": {} }, "bag": { "type": "string", "format": "uuid", "nullable": true } }, "required": [ "delivery_address", "delivery_address_return", "id", "rent_end", "rent_start", "reviews_cnt" ] }, "UserOrderRequest": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "reviews_cnt": { "type": "integer", "readOnly": true }, "delivery_address": { "type": "string", "readOnly": true }, "delivery_address_return": { "type": "string", "readOnly": true }, "bonus_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "bonus_used": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "bonus_max": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "readOnly": true }, "can_cancel": { "type": "string", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "id_dense": { "type": "integer", "maximum": 2147483647, "minimum": 0, "nullable": true }, "status": { "allOf": [ { "$ref": "#/components/schemas/RequestStatusEnum" } ], "minimum": 0, "maximum": 32767 }, "plus_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "unique_id": { "type": "string", "nullable": true, "maxLength": 64 }, "rent_start": { "type": "string", "format": "date-time" }, "rent_end": { "type": "string", "format": "date-time" }, "rent_fact_start": { "type": "string", "format": "date-time", "nullable": true }, "rent_fact_end": { "type": "string", "format": "date-time", "nullable": true }, "autorenewal": { "type": "boolean" }, "autowithdraw": { "type": "boolean" }, "duriation": { "type": "string", "nullable": true }, "initial_duriation": { "type": "string", "nullable": true }, "counting_duration": { "type": "string", "nullable": true }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_inventory": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_inventory_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_service_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_delivery": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_referral": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tax_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$" }, "tax_included": { "type": "boolean" }, "price_tax": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_inventory_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_service_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_combine": { "type": "boolean" }, "additional_discount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "payment_status": { "allOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" } ], "minimum": 0, "maximum": 32767 }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "time_exceed": { "type": "boolean" }, "penalty_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_auto": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_custom": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "penalty_duriation": { "type": "string", "nullable": true }, "penalty_step_duriation": { "type": "string" }, "penalty_disabled": { "type": "boolean" }, "extra": {}, "deleted": { "type": "boolean" }, "active": { "type": "boolean" }, "tenant": { "type": "integer" }, "client": { "type": "integer", "nullable": true }, "discount": { "type": "integer", "nullable": true }, "user_created": { "type": "integer", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "rental_point_return": { "type": "integer", "nullable": true }, "bag": { "type": "string", "format": "uuid", "nullable": true }, "default_tarif_period": { "type": "integer", "nullable": true } }, "required": [ "bonus_amount", "bonus_max", "bonus_used", "can_cancel", "created_at", "delivery_address", "delivery_address_return", "id", "rent_end", "rent_start", "reviews_cnt", "updated_at" ] }, "UserOrderRequestCancel": { "type": "object", "properties": { "comment": { "type": "string", "nullable": true } }, "required": [ "comment" ] }, "UserOrderRequestStats": { "type": "object", "properties": { "price_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "price_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "debt_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "paid_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "discount_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "count": { "type": "integer" } }, "required": [ "count", "debt_amount", "discount_amount", "paid_amount", "price_avg", "price_sum" ] }, "UserRentalPoint": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "active": { "type": "boolean" }, "tenant": { "type": "integer" }, "user": { "type": "integer" }, "point": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "updated_at", "user" ] }, "UserSpeed": { "type": "object", "properties": { "user": { "type": "integer" }, "duration": { "type": "string" } }, "required": [ "duration", "user" ] }, "UserSubleaseEarning": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "username": { "type": "string", "nullable": true, "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", "pattern": "^[\\w.@+-]+$", "maxLength": 150 }, "first_name": { "type": "string", "title": "Имя", "maxLength": 150 }, "last_name": { "type": "string", "title": "Фамилия", "maxLength": 150 }, "email": { "type": "string", "format": "email", "nullable": true, "maxLength": 254 }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "count": { "type": "integer", "default": 0 }, "earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "pending": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "owner_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "owner_pending": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "company_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "company_pending": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "amount", "company_earning", "company_pending", "earning", "id", "owner_earning", "owner_pending", "pending" ] }, "UserSubleaseEarningGeneral": { "type": "object", "properties": { "count": { "type": "integer", "default": 0 }, "user_count": { "type": "integer", "default": 0 }, "earning_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "earning_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "owner_earning_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "owner_earning_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "company_earning_sum": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "company_earning_avg": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "company_earning_avg", "company_earning_sum", "earning_avg", "earning_sum", "owner_earning_avg", "owner_earning_sum" ] }, "UserSubleaseEarningHistory": { "type": "object", "properties": { "uuid": { "type": "string", "format": "uuid" }, "id": { "type": "integer" }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "request_id": { "type": "integer" }, "request_status": { "type": "integer", "readOnly": true }, "request_rental_point": { "type": "integer", "readOnly": true }, "start_at": { "type": "string", "format": "date-time" }, "end_at": { "type": "string", "format": "date-time" }, "amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "amount_predicted": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "day": { "type": "integer" } }, "required": [ "amount", "amount_predicted", "day", "end_at", "id", "inventory", "request_id", "request_rental_point", "request_status", "start_at", "uuid" ] }, "UserSubleaseEarningInventory": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "unique_id": { "type": "string", "nullable": true, "maxLength": 255 }, "category": { "type": "integer", "nullable": true }, "group": { "type": "integer", "nullable": true }, "sublease_percent": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "buy_date": { "type": "string", "format": "date", "nullable": true }, "earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "pending": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "owner_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "owner_pending": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "company_earning": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "company_pending": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" } }, "required": [ "company_earning", "company_pending", "earning", "id", "name", "owner_earning", "owner_pending", "pending" ] }, "Warehouse": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "address": { "type": "string", "nullable": true }, "rental_point": { "type": "integer", "nullable": true }, "deleted": { "type": "boolean" } }, "required": [ "id", "name" ] }, "WazzupMessage": { "type": "object", "properties": { "phone": { "type": "string", "writeOnly": true }, "message": { "type": "string", "writeOnly": true, "nullable": true }, "files": { "type": "array", "items": { "type": "string", "format": "uri" }, "writeOnly": true } }, "required": [ "phone" ] }, "WazzupSettings": { "type": "object", "properties": { "api_key": { "type": "string" }, "funnel_id": { "type": "integer" }, "stage_id": { "type": "integer" } } }, "WazzupTrigger": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "documents": { "type": "array", "items": { "type": "integer" } }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "type": { "allOf": [ { "$ref": "#/components/schemas/WazzupTriggerTypeEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "order_status_from": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/OrderStatusFromEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_status_to": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/OrderStatusToEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_payment_status_from": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "order_payment_status_to": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/OrderPaymentStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "sale_status_from": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/SaleStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "sale_status_to": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/SaleStatusToEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "delivery_type": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/DeliveryTypeEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "delivery_status": { "nullable": true, "minimum": -32768, "maximum": 32767, "oneOf": [ { "$ref": "#/components/schemas/DeliveryStatusEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "text": { "type": "string", "nullable": true }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "template_id": { "type": "string", "nullable": true, "maxLength": 255 }, "template_keys": { "type": "array", "items": { "type": "string", "maxLength": 255 }, "nullable": true }, "timeout": { "type": "string" }, "tenant": { "type": "integer", "readOnly": true } }, "required": [ "created_at", "id", "tenant", "updated_at" ] }, "WazzupTriggerTypeEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - order\n* `1` - order payment\n* `2` - sale\n* `3` - delivery" }, "WazzupWebhook": { "type": "object", "description": "Base serializer class.", "properties": { "messages": { "type": "array", "items": { "$ref": "#/components/schemas/WazzupWebhookMessage" } }, "statuses": { "type": "array", "items": { "$ref": "#/components/schemas/WazzupWebhookMessageStatus" } }, "createDeal": {}, "createContact": {} } }, "WazzupWebhookInstagramPost": { "type": "object", "description": "Base serializer class.", "properties": { "id": { "type": "string" }, "src": { "type": "string", "format": "uri" }, "sha1": { "type": "string" }, "likes": { "type": "integer" }, "author": { "type": "string" }, "comments": { "type": "integer" }, "timestamp": { "type": "integer" }, "updatedAt": { "type": "integer" }, "authorName": { "type": "string" }, "authorId": { "type": "string" }, "description": { "type": "string" }, "previewSha1": { "type": "string" }, "imageSrc": { "type": "string", "format": "uri" }, "previewSrc": { "type": "string", "format": "uri" } } }, "WazzupWebhookMessage": { "type": "object", "description": "Base serializer class.", "properties": { "messageId": { "type": "string", "format": "uuid" }, "channelId": { "type": "string", "format": "uuid" }, "chatType": { "$ref": "#/components/schemas/ChatTypeEnum" }, "chatId": { "type": "string" }, "type": { "$ref": "#/components/schemas/WazzupWebhookMessageTypeEnum" }, "isEcho": { "type": "boolean" }, "contact": { "$ref": "#/components/schemas/Contact" }, "text": { "type": "string" }, "contentUri": { "type": "string", "format": "uri" }, "authorName": { "type": "string" }, "authorId": { "type": "string" }, "instPost": { "$ref": "#/components/schemas/WazzupWebhookInstagramPost" }, "status": { "$ref": "#/components/schemas/WazzupWebhookMessageStatusEnum" }, "dateTime": { "type": "string", "format": "date-time" } } }, "WazzupWebhookMessageStatus": { "type": "object", "description": "Base serializer class.", "properties": { "messageId": { "type": "string", "format": "uuid" }, "status": { "$ref": "#/components/schemas/WazzupWebhookMessageStatusStatusEnum" }, "timestamp": { "type": "string", "format": "date-time" }, "error": {} } }, "WazzupWebhookMessageStatusEnum": { "enum": [ "sent", "delivered", "read", "error", "inbound" ], "type": "string", "description": "* `sent` - sent\n* `delivered` - delivered\n* `read` - read\n* `error` - error\n* `inbound` - inbound" }, "WazzupWebhookMessageStatusStatusEnum": { "enum": [ "sent", "delivered", "read", "error" ], "type": "string", "description": "* `sent` - sent\n* `delivered` - delivered\n* `read` - read\n* `error` - error" }, "WazzupWebhookMessageTypeEnum": { "enum": [ "text", "image", "audio", "video", "document", "vcard", "geo", "wapi_template", "unsupported", "missing_call", "unknown" ], "type": "string", "description": "* `text` - text\n* `image` - image\n* `audio` - audio\n* `video` - video\n* `document` - document\n* `vcard` - vcard\n* `geo` - geo\n* `wapi_template` - wapi_template\n* `unsupported` - unsupported\n* `missing_call` - missing_call\n* `unknown` - unknown" }, "WebhookMethodEnum": { "enum": [ 0, 1, 2, 3, 4 ], "type": "integer", "description": "* `0` - post\n* `1` - get\n* `2` - put\n* `3` - patch\n* `4` - удалить" }, "WialonAccount": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "host": { "type": "string", "format": "uri", "nullable": true, "maxLength": 200 }, "token": { "type": "string", "maxLength": 255 }, "extra": {} }, "required": [ "created_at", "id", "name", "token", "updated_at" ] }, "WialonUnit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "inventory": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "unit_id": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "mileage": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$", "nullable": true }, "x": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,8})?$", "nullable": true }, "y": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,4}(?:\\.\\d{0,8})?$", "nullable": true } }, "required": [ "created_at", "id", "inventory", "unit_id", "updated_at" ] }, "Workshift": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "title": "Shift start" }, "end_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Конец смены" }, "user": { "type": "integer" }, "rental_point": { "type": "integer" }, "extra": {} }, "required": [ "id", "rental_point", "start_at", "user" ] }, "WorkshiftDetail": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "start_at": { "type": "string", "format": "date-time", "title": "Shift start" }, "end_at": { "type": "string", "format": "date-time", "nullable": true, "title": "Конец смены" }, "user": { "type": "integer" }, "rental_point": { "type": "integer" }, "extra": {}, "payments": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentGroup" }, "readOnly": true }, "refunds": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentGroup" }, "readOnly": true }, "services": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceGroup" }, "readOnly": true } }, "required": [ "id", "payments", "refunds", "rental_point", "services", "start_at", "user" ] }, "WorkshopPipeline": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 } }, "required": [ "id", "name" ] }, "WorkshopResource": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "inventory": { "allOf": [ { "$ref": "#/components/schemas/BaseInventory" } ], "readOnly": true }, "inventory_group": { "allOf": [ { "$ref": "#/components/schemas/BaseInventoryGroup" } ], "readOnly": true }, "resource": { "allOf": [ { "$ref": "#/components/schemas/Resource" } ], "readOnly": true, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "inventory_group_count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "approved": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" }, "tarif": { "type": "integer", "nullable": true }, "task": { "type": "integer", "readOnly": true }, "approved_by": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "inventory", "inventory_group", "resource", "task", "updated_at" ] }, "WorkshopResourceEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "inventory_group_count": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "approved": { "type": "boolean" }, "extra": {}, "tenant": { "type": "integer" }, "inventory": { "type": "integer", "nullable": true }, "inventory_group": { "type": "integer", "nullable": true }, "tarif": { "type": "integer", "nullable": true }, "task": { "type": "integer", "readOnly": true }, "resource": { "type": "integer", "nullable": true }, "approved_by": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "inventory_group_count", "task", "updated_at" ] }, "WorkshopService": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "service": { "allOf": [ { "$ref": "#/components/schemas/Service" } ], "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "tenant": { "type": "integer" }, "task": { "type": "integer", "readOnly": true }, "tarif": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "service", "task", "updated_at" ] }, "WorkshopServiceEdit": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Создан" }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true, "title": "Обновлен" }, "tarif_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "tarif_duration": { "type": "string" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,14}(?:\\.\\d{0,2})?$" }, "extra": {}, "tenant": { "type": "integer" }, "task": { "type": "integer", "readOnly": true }, "service": { "type": "integer" }, "tarif": { "type": "integer", "nullable": true } }, "required": [ "created_at", "id", "service", "task", "updated_at" ] }, "WorkshopStage": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "status": { "allOf": [ { "$ref": "#/components/schemas/WorkshopStageStatusEnum" } ], "minimum": -32768, "maximum": 32767 }, "color": { "type": "string", "maxLength": 7 }, "extra": {}, "tenant": { "type": "integer" }, "pipeline": { "type": "integer", "nullable": true }, "post_state": { "type": "integer", "nullable": true } }, "required": [ "id", "name" ] }, "WorkshopStageStatusEnum": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "description": "* `0` - NEW\n* `1` - IN_PROGRESS\n* `2` - COMPLETED\n* `3` - ARCHIVE" }, "WorkshopUpdateStage": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "order": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "pipeline": { "type": "integer", "nullable": true }, "post_state": { "type": "integer", "nullable": true } }, "required": [ "id", "name" ] }, "Worktime": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "start": { "type": "string", "format": "time" }, "end": { "type": "string", "format": "time" }, "weekdays": { "type": "array", "items": { "type": "integer" } } }, "required": [ "end", "id", "start", "weekdays" ] } }, "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer" } } } }