### GET /api/v2/products Source: https://my.raxs.ru/api-docs/v2/index Retrieves a list of all products. ```APIDOC ## GET /api/v2/products ### Description Retrieves a list of all products. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/products ### Response #### Success Response (200) - **data** (array) - An array containing product objects. #### Response Example ```json [ { "data": [ {} ] } ] ``` ``` -------------------------------- ### GET /products/wdc Source: https://my.raxs.ru/api-docs/v2/index Retrieves weight and dimensional characteristics for a given product. ```APIDOC ## GET /products/wdc ### Description Retrieves the weight and dimensional characteristics for a specific product. This includes incoming and outgoing measurements for weight, length, width, height, and volume. ### Method GET ### Endpoint `/api/v2/products/wdc` ### Parameters #### Query Parameters - **product_id** (integer) - Required - The ID of the product. ### Response #### Success Response (200) - **weight** (object) - Weight characteristics. - **in** (string) - Incoming weight. - **out** (string) - Outgoing weight. - **length** (object) - Length characteristics. - **in** (string) - Incoming length. - **out** (string) - Outgoing length. - **width** (object) - Width characteristics. - **in** (string) - Incoming width. - **out** (string) - Outgoing width. - **height** (object) - Height characteristics. - **in** (string) - Incoming height. - **out** (string) - Outgoing height. - **volume** (object) - Volume characteristics. - **in** (string) - Incoming volume. - **out** (string) - Outgoing volume. #### Response Example ```json [ { "weight": { "in": "1", "out": "2" }, "length": { "in": "3", "out": "4" }, "width": { "in": "5", "out": "6" }, "height": { "in": "7", "out": "8" }, "volume": { "in": "0.000105", "out": "0.000192" } } ] ``` ``` -------------------------------- ### Get Product Selection Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON snippet represents a sample response for retrieving product selection details. It includes unit information and a list of items with their respective quantities and product details. ```json [ { "unit_id": 568, "unit_code": "BZ-1", "items": [ { "id": 52, "count": 2, "unit_id": 2170, "to_unit_id": 7888, "product_id": 233851, "product_label": "кроссовки-найк-проверка", "barcode": "naike-test-233851", "unit_code": "BZ-1", "to_unit_code": "C-000001", "completed_at": null } ] } ] ``` -------------------------------- ### Get Products Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON response indicates a successful retrieval of products. The 'data' field contains an array of product objects, which may be empty. ```json [ { "data": [ { } ] } ] ``` -------------------------------- ### Get Product Stocks Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON response represents the stock data for a product. The 'data' field contains an array of stock information, which may be empty. ```json [ { "data": [ ] } ] ``` -------------------------------- ### GET /chats Source: https://my.raxs.ru/api-docs/v2/index Retrieves a list of all users available for chat. ```APIDOC ## GET /chats ### Description Retrieves a list of all users within the system who can be contacted via chat. This provides basic user information for initiating conversations. ### Method GET ### Endpoint `/api/v2/chats` ### Response #### Success Response (200) - **id** (integer) - The unique identifier for the user. - **surname** (string) - The user's surname. - **name** (string) - The user's first name. - **lastname** (string) - The user's patronymic name. - **email** (string) - The user's email address. - **phone** (string) - The user's phone number. #### Response Example ```json [ { "id": 1338, "surname": "Петров", "name": "Петр", "lastname": "Сергеевич", "email": "peter_jw@mail.ru", "phone": "+7 (917) 232-28-22" } ] ``` ``` -------------------------------- ### GET /api/v2/selections Source: https://my.raxs.ru/api-docs/v2/index Retrieves a list of selection orders. ```APIDOC ## GET /api/v2/selections ### Description Retrieves a list of selection orders. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/selections ### Response #### Success Response (200) - Returns a list of selection orders. ``` -------------------------------- ### Get Product WDC Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON snippet illustrates the response for retrieving weight, dimensions, and characteristics (WDC) of a product. It includes incoming and outgoing measurements for weight, length, width, height, and volume. ```json [ { "weight": { "in": "1", "out": "2" }, "length": { "in": "3", "out": "4" }, "width": { "in": "5", "out": "6" }, "height": { "in": "7", "out": "8" }, "volume": { "in": "0.000105", "out": "0.000192" } } ] ``` -------------------------------- ### GET /api/v2/documents Source: https://my.raxs.ru/api-docs/v2/index Retrieves a list of documents. ```APIDOC ## GET /api/v2/documents ### Description Retrieves a list of documents. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/documents ### Response #### Success Response (200) Indicates that the document was added. The actual response body for listing documents is not detailed in the provided text, but usually contains a list of document objects. ``` -------------------------------- ### Get Users for Chat Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON snippet represents a sample response when retrieving a list of users for chat. It includes user details such as ID, surname, name, lastname, email, and phone number. ```json [ { "id": 1338, "surname": "Петров", "name": "Петр", "lastname": "Сергеевич", "email": "peter_jw@mail.ru", "phone": "+7 (917) 232-28-22" } ] ``` -------------------------------- ### GET /api/v2/users/show Source: https://my.raxs.ru/api-docs/v2/index Retrieves details of the currently authenticated user. ```APIDOC ## GET /api/v2/users/show ### Description Retrieves details of the currently authenticated user. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/users/show ### Response #### Success Response (200) - **id** (integer) - The user's unique identifier. - **surname** (string) - The user's surname. - **name** (string) - The user's first name. #### Response Example ```json [ { "id": 1, "surname": "Тестов", "name": "Тест" } ] ``` ``` -------------------------------- ### GET /api/v2/users/company/show Source: https://my.raxs.ru/api-docs/v2/index Retrieves details of the user's company. ```APIDOC ## GET /api/v2/users/company/show ### Description Retrieves details of the user's company. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/users/company/show ### Response #### Success Response (200) - **id** (integer) - Company ID. - **short_name** (string) - Company short name. - **full_name** (string) - Company full name. - **inn** (string) - Company INN. - **kpp** (string) - Company KPP. - **ogrn** (string) - Company OGRN. - **ogrnip** (string) - Company OGRNIP. - **address** (string) - Company address. - **phone** (string|null) - Company phone number. - **email** (string) - Company email. #### Response Example ```json [ { "id": 1, "short_name": "ООО \"ОНМЕДИА\"", "full_name": "ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ \"ОНМЕДИА\"", "inn": "7722472580", "kpp": "772201001", "ogrn": "2311232", "ogrnip": "532234", "address": "109316, город Москва, Волгоградский пр-кт, д. 45 стр. 1, помещ. 1н/3", "phone": null, "email": "example@mail.com" } ] ``` ``` -------------------------------- ### GET /api/v2/products/stocks Source: https://my.raxs.ru/api-docs/v2/index Retrieves stock information for a specific product within a warehouse. ```APIDOC ## GET /api/v2/products/stocks ### Description Retrieves stock information for a specific product within a warehouse. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/products/stocks ### Parameters #### Query Parameters - **warehouse_id** (integer) - Required - ID склада - **barcode** (string) - Required - Штрихкод ### Response #### Success Response (200) - **data** (array) - An array containing stock information. #### Response Example ```json [ { "data": [] } ] ``` ``` -------------------------------- ### Get User Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON response represents a successfully retrieved user. It contains the user's ID, surname, and name. ```json [ { "id": 1, "surname": "Тестов", "name": "Тест" } ] ``` -------------------------------- ### Get All Warehouses Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON array contains sample data for warehouses. Each object includes the warehouse ID, type, name, address, phone number, and status flags. ```json [ { "id": 156, "type_id": 2, "name": "Склад ООО ОнМедиа", "address": "г Москва, ул Кремль", "phone": "+7 (926)-916-66-92", "description": "", "is_open_for_supply": 1, "is_open_for_shipment": 1, "is_active": 1 } ] ``` -------------------------------- ### GET /api/v2/companies Source: https://my.raxs.ru/api-docs/v2/index Retrieves a list of all companies associated with the user. ```APIDOC ## GET /api/v2/companies ### Description Retrieves a list of all companies associated with the user. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/companies ### Response #### Success Response (200) - **id** (integer) - Company ID. - **short_name** (string) - Company short name. - **full_name** (string) - Company full name. - **inn** (string) - Company INN. - **kpp** (string) - Company KPP. - **ogrn** (string) - Company OGRN. - **ogrnip** (string) - Company OGRNIP. - **address** (string) - Company address. - **phone** (string|null) - Company phone number. - **email** (string) - Company email. #### Response Example ```json [ { "id": 1, "short_name": "ООО \"ОНМЕДИА\"", "full_name": "ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ \"ОНМЕДИА\"", "inn": "7722472580", "kpp": "772201001", "ogrn": "2311232", "ogrnip": "532234", "address": "109316, город Москва, Волгоградский пр-кт, д. 45 стр. 1, помещ. 1н/3", "phone": null, "email": "example@mail.com" } ] ``` ``` -------------------------------- ### GET /api/v2/warehouses Source: https://my.raxs.ru/api-docs/v2/index Retrieves a list of all warehouses, optionally filtered by type. ```APIDOC ## GET /api/v2/warehouses ### Description Retrieves a list of all warehouses, optionally filtered by type. ### Method GET ### Endpoint https://ff-485.raxs.ru/api/v2/warehouses ### Parameters #### Query Parameters - **type_id** (integer) - Optional - Filter warehouses by type: 1 for client warehouse, 2 for fulfillment warehouse. ### Response #### Success Response (200) - **id** (integer) - Unique identifier for the warehouse. - **type_id** (integer) - Type of warehouse (1: client, 2: fulfillment). - **name** (string) - Name of the warehouse. - **address** (string) - Address of the warehouse. - **phone** (string) - Contact phone number for the warehouse. - **description** (string) - Additional description for the warehouse. - **is_open_for_supply** (integer) - Indicates if the warehouse is open for supply (1) or not (0). - **is_open_for_shipment** (integer) - Indicates if the warehouse is open for shipment (1) or not (0). - **is_active** (integer) - Indicates if the warehouse is active (1) or inactive (0). #### Response Example ```json [ { "id": 156, "type_id": 2, "name": "Склад ООО ОнМедиа", "address": "г Москва, ул Кремль", "phone": "+7 (926)-916-66-92", "description": "", "is_open_for_supply": 1, "is_open_for_shipment": 1, "is_active": 1 } ] ``` ``` -------------------------------- ### Get User Company Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON response details a user's company information, including IDs, names, contact information, and addresses. ```json [ { "id": 1, "short_name": "ООО \"ОНМЕДИА\"", "full_name": "ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ \"ОНМЕДИА\"", "inn": "7722472580", "kpp": "772201001", "ogrn": "2311232", "ogrnip": "532234", "address": "109316, город Москва, Волгоградский пр-кт, д. 45 стр. 1, помещ. 1н/3", "phone": null, "email": "example@mail.com" } ] ``` -------------------------------- ### Get Order Information Endpoint Source: https://my.raxs.ru/api-docs/v2/index Retrieves detailed information about a specific order. Requires the order ID as a path parameter. Returns detailed order information upon successful retrieval. ```bash GET https://ff-485.raxs.ru/api/v2/selections/show?order_id={order_id} ``` -------------------------------- ### POST /api/v2/products/create Source: https://my.raxs.ru/api-docs/v2/index Creates a new product with the provided details, including name, brand, article, barcodes, and images. ```APIDOC ## POST /api/v2/products/create ### Description Creates a new product with the provided details, including name, brand, article, barcodes, and images. ### Method POST ### Endpoint https://ff-485.raxs.ru/api/v2/products/create ### Parameters #### Request Body - **name** (string) - Required - Название товара - **brand** (string) - Required - Бренд - **articul** (string) - Required - Артикул - **barcode** (array) - Required - Массив штрихкодов - **images** (object) - Массив изображений ### Request Example ```json { "name": "Футболка", "brand": "BrandX", "articul": "ART-123", "barcode": ["1234567890"], "images": {} } ``` ### Response #### Success Response (200) - **id** (integer) - The unique identifier of the created product. - **global_id** (null) - Global ID of the product (if applicable). - **label** (string) - The name or label of the product. - **articul** (string) - The article number of the product. - **created_at** (string) - Timestamp of product creation. - **updated_at** (string) - Timestamp of last product update. - **size** (string) - The size of the product. - **barcodes** (array) - Array of barcode objects associated with the product. - **images** (array) - Array of image objects associated with the product. #### Response Example ```json { "id": 6694, "global_id": null, "label": "Футболка", "articul": "futbolka1232", "created_at": "2023-07-13 18:23:38", "updated_at": "2023-07-13 18:23:38", "size": "43", "barcodes": [ { "id": 6203, "code": "futbolka23111", "products_id": 6694, "action": "1", "created_user_id": 3, "created_datetime": "2023-07-13 18:23:38", "deleted_at": null } ], "images": [ { "id": 697101, "products_id": 6694, "url": "files/product_images/6694/$2y$10$HgT64BtOI8byFVu.6aZLOrPH8ZrSKWwt0U2DNP6lkvwiBwLpZR8i.png", "sort": "1", "action": "1", "created_user_id": 3, "created_at": "2024-08-30T12:50:20.000000Z", "updated_at": "2024-08-30T12:50:20.000000Z" } ] } ``` ``` -------------------------------- ### POST /api/v2/orders/supplies/create Source: https://my.raxs.ru/api-docs/v2/index Creates a supply order (acceptance request) with specified warehouse and delivery details. ```APIDOC ## POST /api/v2/orders/supplies/create ### Description Creates a supply order (acceptance request) with specified warehouse and delivery details. ### Method POST ### Endpoint https://ff-485.raxs.ru/api/v2/orders/supplies/create ### Parameters #### Request Body - **in_warehouse** (integer) - Required - ID склада входящего - **out_warehouse** (integer) - Required - ID склада исходящего - **delivery_date** (string) - Required - Дата поставки. - **application_mp** (string) - Optional - Номер заявки на маркетплейсе - **box_count** (integer) - Optional - Количество коробок - **pallet_count** (integer) - Optional - Количество паллет - **comment** (string) - Optional - Комментарий ### Response #### Success Response (200) - **message** (string) - Confirmation message that the order was created successfully. #### Response Example ```json { "message": "Заявка успешно создана" } ``` ``` -------------------------------- ### POST /api/v2/register Source: https://my.raxs.ru/api-docs/v2/index Registers a new user with the provided name, email, and password. ```APIDOC ## POST /api/v2/register ### Description Registers a new user with the provided name, email, and password. ### Method POST ### Endpoint https://ff-485.raxs.ru/api/v2/register ### Parameters #### Request Body - **name** (string) - Required - Имя пользователя - **email** (string) - Required - Email - **password** (string) - Required - Пароль ### Request Example ```json { "name": "Иван", "email": "user@example.com", "password": "password123" } ``` ### Response #### Success Response (200) - **success** (boolean) - Indicates if the registration was successful. - **warehouse** (integer) - The ID of the warehouse associated with the new user. #### Response Example ```json [ { "success": true, "warehouse": 41 } ] ``` ``` -------------------------------- ### Response Sample for Order Information (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON snippet represents a successful response (HTTP 200) for retrieving detailed information about an order. It includes partner details, order specifics, and a list of associated tasks. ```json [ { "partner_id": 2, "order_id": 90691, "total": 3, "completed_count_sum": 0, "partner_name": "ООО \"ОНМЕДИА ГРУПП\"", "order": { "id": 697101, "partner_id": 2, "created_user_id": 3, "type_id": 2, "delivery_date": "2025-11-28", "delivery_time": null, "pallets": 0, "boxes": 0, "delivery_type_id": null, "filled_template": null, "warehouse_id": 365, "status_id": 7, "cancel_reason": null, "comment": null, "created_at": "2025-11-28T07:54:19.000000Z", "updated_at": "2025-11-28T07:55:22.000000Z", "docs_id": 169666, "total_invoice_id": null, "total_akt_id": null, "contract_id": 86, "out_warehouse_id": 1030, "application_mp": null, "mp_warehouse_id": null, "parent_id": null, "order_files": null, "pallet_files": null, "is_preparation": 0, "city_id": null, "order_preparation_type_id": null, "comment_ff": null, "city": null, "fulfillment_id": 740, "out_warehouse_unit_id": null, "car_id": null, "warehouse_old_id": null, "marketplace_id": null, "sdek_uuid": "", "sdek_job_id": null, "loader_count": null, "tasks": [ { "id": 225897, "groups_types_join_id": 7, "order_id": 90691, "fulfillment_id": 740, "created_partner_id": 2, "created_user_id": 3, "executor_partner_id": 2, "executor_user_id": 1199, "status_id": 1, "finish_datetime": "2025-11-28 10:55:28", "created_at": "2025-11-28T07:54:19.000000Z", "updated_at": "2025-11-28T07:55:28.000000Z", "deleted_at": null, "finish_datetime_tsd": null, "task_custom_status_id": null, "deadline_datetime": null, "start_datetime": null }, { "id": 225898, "groups_types_join_id": 35, "order_id": 90691, "fulfillment_id": 740, "created_partner_id": 2, "created_user_id": 3, "executor_partner_id": 2, "executor_user_id": null, "status_id": 1, "finish_datetime": null, "created_at": "2025-11-28T07:54:19.000000Z", "updated_at": "2025-11-28T07:54:19.000000Z", "deleted_at": null, "finish_datetime_tsd": null, "task_custom_status_id": null, "deadline_datetime": null, "start_datetime": null }, { "id": 225899, "groups_types_join_id": 8, "order_id": 90691, "fulfillment_id": 740, "created_partner_id": 2, "created_user_id": 3, "executor_partner_id": 2, "executor_user_id": 1199, "status_id": 2, "finish_datetime": null, "created_at": "2025-11-28T07:55:28.000000Z", "updated_at": "2025-11-28T07:55:28.000000Z", "deleted_at": null, "finish_datetime_tsd": null, "task_custom_status_id": null, "deadline_datetime": null, "start_datetime": null } ] }, "partner": { "id": 2, "short_name": "ООО \"ОНМЕДИА ГРУПП\"", "full_name": "ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ \"ОНМЕДИА ГРУПП\"", "inn": "7725736440", "kpp": 772501001, "ogrn": null, "ogrnip": null, "address": "г Москва, ул Ленинская Слобода, д 9, помещ 1", "mailing_address": null, "phone": null, "email": null, "created_at": "2023-05-22T20:14:12.000000Z", "updated_at": "2025-09-29T11:34:32.000000Z", "deleted_at": null, "tax_type_id": 1, "docs_prefix": "", "stamp_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAw8AAAIUCAYAAABcuhA6AAAACXBIWXMAAC4jAAAuIwF4pT92AAXt.....", "logo_image": null, "doc_signatory_fullname": "Хаскель Дмитрий Сергеевич", "doc_signatory_fullname_2": "Хаскелем Дмитрием Сергеевичем", "doc_signatory_fullname_genitive": null, "doc_signatory_position": "Генеральный директор1", "doc_signatory_position_genitive": null, "doc_signatory_based": "Устава", "legal": null, "kbe": null, "is_dropshipping_contractor": null, "disabled_orders": 0, "catalog_id": null } } ] ``` -------------------------------- ### POST /api/v2/warehouses/create Source: https://my.raxs.ru/api-docs/v2/index Creates a new warehouse with specified type, name, and address. ```APIDOC ## POST /api/v2/warehouses/create ### Description Creates a new warehouse with specified type, name, and address. ### Method POST ### Endpoint https://ff-485.raxs.ru/api/v2/warehouses/create ### Parameters #### Query Parameters - **type_id** (integer) - Required - Type of warehouse: 1 for client, 2 for fulfillment. - **name** (string) - Required - Name of the warehouse. - **address** (string) - Required - Address of the warehouse. ### Response #### Success Response (200) - **id** (integer) - Unique identifier for the newly created warehouse. - **type_id** (integer) - Type of warehouse. - **name** (string) - Name of the warehouse. - **address** (string) - Address of the warehouse. - **phone** (string) - Contact phone number. - **description** (string) - Description of the warehouse. - **is_open_for_supply** (integer) - Flag indicating if open for supply. - **is_open_for_shipment** (integer) - Flag indicating if open for shipment. - **is_active** (integer) - Flag indicating if the warehouse is active. #### Response Example ```json { "id": 156, "type_id": 2, "name": "Склад ООО ОнМедиа", "address": "г Москва, ул Кремль", "phone": "+7 (926)-916-66-92", "description": "", "is_open_for_supply": 1, "is_open_for_shipment": 1, "is_active": 1 } ``` ``` -------------------------------- ### Send Message Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON snippet shows a sample response after successfully sending a message. It includes the message content, chat ID, user details, attached files (if any), and the creation timestamp. ```json [ { "message": "Привет как дела?", "chat_id": 56495, "user": { "id": 3, "name": "Андрей", "avatar": "/media/avatars/avatar15.jpg" }, "files": [ ], "created_at": "2025-12-09T08:00:01.000000Z" } ] ``` -------------------------------- ### Update Product WDC Response Sample (JSON) Source: https://my.raxs.ru/api-docs/v2/index This JSON snippet shows a sample response after successfully updating the weight, dimensions, and characteristics (WDC) of a product. It indicates a successful operation with an error flag set to false. ```json [ { "error": false, "message": "Успешно обновлено" } ] ```