{
  "openapi": "3.0.0",
  "info": {
    "title": "api/auctions",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/"
    },
    {
      "url": "https://api.ati.su"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/v1.2/auction": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accept_second_pay_type": true,
                        "active_deal_id": "adb51ee2-2eda-4e1b-9081-6d95f10e8466",
                        "auction_id": "e1143412-6bf4-43f3-932b-d00f9a65849c",
                        "auction_rates": [
                          {
                            "added_at": "2023-04-24T11:31:51.9748922Z",
                            "ati_id": "12345",
                            "auction_rate_id": "8afae956-adcd-4bdd-9676-f3a8485a6d25",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5500,
                            "rate_without_nds": 6600,
                            "source": 0,
                            "state": 0
                          },
                          {
                            "added_at": "2023-04-24T11:32:51.9749001Z",
                            "ati_id": "33345",
                            "auction_rate_id": "789d9dea-98d5-4a71-8c9d-de9be2ca6b86",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5000,
                            "rate_without_nds": 6000,
                            "source": 0,
                            "state": 1
                          }
                        ],
                        "auction_restart_parameters": {
                          "auction_finish_action": 1,
                          "current_change_winner_count": 2,
                          "current_restart_count": 1,
                          "duration_after_restart": 30,
                          "init_change_winner_count": 2,
                          "init_restart_count": 1,
                          "is_manually_restarted": false,
                          "rate_increase": null,
                          "rate_increase_option": null
                        },
                        "auto_renew": true,
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "deleted": false,
                        "docs_expired_date": "2023-04-24T14:36:51.9749155Z",
                        "duration": 6,
                        "end_date": "2023-04-24T11:36:51.9749281Z",
                        "end_date_boundary": "2023-04-24T11:36:51.9749281Z",
                        "finish_type": 0,
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "aeae42f6-0102-46e4-8310-2fa8cd23d771",
                        "max_rate": 6000,
                        "max_renew_time": 60,
                        "nds": 20,
                        "participants_count": 2,
                        "raise_bid": true,
                        "raise_bid_interval": 30,
                        "renew_time": 20,
                        "response_in_minutes": 0,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:51.9752751Z",
                        "start_date": "2023-04-24T11:30:51.9749144Z",
                        "start_since_first_bet": false,
                        "state": 0,
                        "step": 500,
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9749244Z",
                        "winner_criterion": 0
                      }
                    ]
                  }
                },
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuctionOfLoadOwner"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accept_second_pay_type": true,
                        "active_deal_id": "adb51ee2-2eda-4e1b-9081-6d95f10e8466",
                        "auction_id": "e1143412-6bf4-43f3-932b-d00f9a65849c",
                        "auction_rates": [
                          {
                            "added_at": "2023-04-24T11:31:51.9748922Z",
                            "ati_id": "12345",
                            "auction_rate_id": "8afae956-adcd-4bdd-9676-f3a8485a6d25",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5500,
                            "rate_without_nds": 6600,
                            "source": 0,
                            "state": 0
                          },
                          {
                            "added_at": "2023-04-24T11:32:51.9749001Z",
                            "ati_id": "33345",
                            "auction_rate_id": "789d9dea-98d5-4a71-8c9d-de9be2ca6b86",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5000,
                            "rate_without_nds": 6000,
                            "source": 0,
                            "state": 1
                          }
                        ],
                        "auction_restart_parameters": {
                          "auction_finish_action": 1,
                          "current_change_winner_count": 2,
                          "current_restart_count": 1,
                          "duration_after_restart": 30,
                          "init_change_winner_count": 2,
                          "init_restart_count": 1,
                          "is_manually_restarted": false,
                          "rate_increase": null,
                          "rate_increase_option": null
                        },
                        "auto_renew": true,
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "deleted": false,
                        "docs_expired_date": "2023-04-24T14:36:51.9749155Z",
                        "duration": 6,
                        "end_date": "2023-04-24T11:36:51.9749281Z",
                        "end_date_boundary": "2023-04-24T11:36:51.9749281Z",
                        "finish_type": 0,
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "aeae42f6-0102-46e4-8310-2fa8cd23d771",
                        "max_rate": 6000,
                        "max_renew_time": 60,
                        "nds": 20,
                        "participants_count": 2,
                        "raise_bid": true,
                        "raise_bid_interval": 30,
                        "renew_time": 20,
                        "response_in_minutes": 0,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:51.9752751Z",
                        "start_date": "2023-04-24T11:30:51.9749144Z",
                        "start_since_first_bet": false,
                        "state": 0,
                        "step": 500,
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9749244Z",
                        "winner_criterion": 0
                      }
                    ]
                  }
                },
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuctionOfLoadOwner"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accept_second_pay_type": true,
                        "active_deal_id": "adb51ee2-2eda-4e1b-9081-6d95f10e8466",
                        "auction_id": "e1143412-6bf4-43f3-932b-d00f9a65849c",
                        "auction_rates": [
                          {
                            "added_at": "2023-04-24T11:31:51.9748922Z",
                            "ati_id": "12345",
                            "auction_rate_id": "8afae956-adcd-4bdd-9676-f3a8485a6d25",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5500,
                            "rate_without_nds": 6600,
                            "source": 0,
                            "state": 0
                          },
                          {
                            "added_at": "2023-04-24T11:32:51.9749001Z",
                            "ati_id": "33345",
                            "auction_rate_id": "789d9dea-98d5-4a71-8c9d-de9be2ca6b86",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5000,
                            "rate_without_nds": 6000,
                            "source": 0,
                            "state": 1
                          }
                        ],
                        "auction_restart_parameters": {
                          "auction_finish_action": 1,
                          "current_change_winner_count": 2,
                          "current_restart_count": 1,
                          "duration_after_restart": 30,
                          "init_change_winner_count": 2,
                          "init_restart_count": 1,
                          "is_manually_restarted": false,
                          "rate_increase": null,
                          "rate_increase_option": null
                        },
                        "auto_renew": true,
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "deleted": false,
                        "docs_expired_date": "2023-04-24T14:36:51.9749155Z",
                        "duration": 6,
                        "end_date": "2023-04-24T11:36:51.9749281Z",
                        "end_date_boundary": "2023-04-24T11:36:51.9749281Z",
                        "finish_type": 0,
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "aeae42f6-0102-46e4-8310-2fa8cd23d771",
                        "max_rate": 6000,
                        "max_renew_time": 60,
                        "nds": 20,
                        "participants_count": 2,
                        "raise_bid": true,
                        "raise_bid_interval": 30,
                        "renew_time": 20,
                        "response_in_minutes": 0,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:51.9752751Z",
                        "start_date": "2023-04-24T11:30:51.9749144Z",
                        "start_since_first_bet": false,
                        "state": 0,
                        "step": 500,
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9749244Z",
                        "winner_criterion": 0
                      }
                    ]
                  }
                },
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuctionOfLoadOwner"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Торги (аукционы) грузовладельца"
          }
        },
        "tags": [
          "Auctions"
        ],
        "summary": "Получение всех Торгов (аукционов) для грузовладельца"
      }
    },
    "/v1.2/auction/{auctionId}": {
      "get": {
        "parameters": [
          {
            "description": "Id Торгов (аукциона)",
            "in": "path",
            "name": "auctionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Возвращать удалённые торги",
            "in": "query",
            "name": "withDeleted",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "4300ad9e-c164-447d-a00c-1b0f16355c89",
                      "auction_id": "edfa4cbc-868f-4ce7-89e2-8764df59151a",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:51.9296722Z",
                          "ati_id": "12345",
                          "auction_rate_id": "fb6093ff-28e8-4c45-ac33-5c88e68b349f",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:51.9296877Z",
                          "ati_id": "33345",
                          "auction_rate_id": "fdae4ca4-8c8b-44ac-9174-21614de4341f",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:51.9297113Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:51.9297297Z",
                      "end_date_boundary": "2023-04-24T11:36:51.9297268Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "a2f03352-d1f2-4d76-bc65-94d5c2914847",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9302947Z",
                      "start_date": "2023-04-24T11:30:51.9297089Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:51.9297244Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "4300ad9e-c164-447d-a00c-1b0f16355c89",
                      "auction_id": "edfa4cbc-868f-4ce7-89e2-8764df59151a",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:51.9296722Z",
                          "ati_id": "12345",
                          "auction_rate_id": "fb6093ff-28e8-4c45-ac33-5c88e68b349f",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:51.9296877Z",
                          "ati_id": "33345",
                          "auction_rate_id": "fdae4ca4-8c8b-44ac-9174-21614de4341f",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:51.9297113Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:51.9297297Z",
                      "end_date_boundary": "2023-04-24T11:36:51.9297268Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "a2f03352-d1f2-4d76-bc65-94d5c2914847",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9302947Z",
                      "start_date": "2023-04-24T11:30:51.9297089Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:51.9297244Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "4300ad9e-c164-447d-a00c-1b0f16355c89",
                      "auction_id": "edfa4cbc-868f-4ce7-89e2-8764df59151a",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:51.9296722Z",
                          "ati_id": "12345",
                          "auction_rate_id": "fb6093ff-28e8-4c45-ac33-5c88e68b349f",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:51.9296877Z",
                          "ati_id": "33345",
                          "auction_rate_id": "fdae4ca4-8c8b-44ac-9174-21614de4341f",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:51.9297113Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:51.9297297Z",
                      "end_date_boundary": "2023-04-24T11:36:51.9297268Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "a2f03352-d1f2-4d76-bc65-94d5c2914847",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9302947Z",
                      "start_date": "2023-04-24T11:30:51.9297089Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:51.9297244Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              }
            },
            "description": "Торги (аукцион) для грузовладельца (код 200)"
          },
          "201": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "auction_id": "248de03c-c445-4cca-8858-4e9b495ce3d7",
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "end_date": "2023-04-24T11:36:51.930351Z",
                      "finished": false,
                      "is_our_rate_best": true,
                      "load_id": "dcbe9875-ebb8-4c06-bbb9-ab4093c5fe20",
                      "next_rate_with_nds": 5500,
                      "next_rate_without_nds": 6600,
                      "our_rate": {
                        "added_at": "2023-04-24T11:35:51.9303557Z",
                        "auction_rate_id": "47c55885-1ca1-4d05-bc66-968d0e53f0ce",
                        "contact_id": 1,
                        "loading_date": null,
                        "rate_with_nds": 4500,
                        "rate_without_nds": 5400,
                        "state": 0
                      },
                      "participants_count": 2,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9305017Z",
                      "start_date": "2023-04-24T11:30:51.930351Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfTaker"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": {
                      "auction_id": "248de03c-c445-4cca-8858-4e9b495ce3d7",
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "end_date": "2023-04-24T11:36:51.930351Z",
                      "finished": false,
                      "is_our_rate_best": true,
                      "load_id": "dcbe9875-ebb8-4c06-bbb9-ab4093c5fe20",
                      "next_rate_with_nds": 5500,
                      "next_rate_without_nds": 6600,
                      "our_rate": {
                        "added_at": "2023-04-24T11:35:51.9303557Z",
                        "auction_rate_id": "47c55885-1ca1-4d05-bc66-968d0e53f0ce",
                        "contact_id": 1,
                        "loading_date": null,
                        "rate_with_nds": 4500,
                        "rate_without_nds": 5400,
                        "state": 0
                      },
                      "participants_count": 2,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9305017Z",
                      "start_date": "2023-04-24T11:30:51.930351Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfTaker"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": {
                      "auction_id": "248de03c-c445-4cca-8858-4e9b495ce3d7",
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "end_date": "2023-04-24T11:36:51.930351Z",
                      "finished": false,
                      "is_our_rate_best": true,
                      "load_id": "dcbe9875-ebb8-4c06-bbb9-ab4093c5fe20",
                      "next_rate_with_nds": 5500,
                      "next_rate_without_nds": 6600,
                      "our_rate": {
                        "added_at": "2023-04-24T11:35:51.9303557Z",
                        "auction_rate_id": "47c55885-1ca1-4d05-bc66-968d0e53f0ce",
                        "contact_id": 1,
                        "loading_date": null,
                        "rate_with_nds": 4500,
                        "rate_without_nds": 5400,
                        "state": 0
                      },
                      "participants_count": 2,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9305017Z",
                      "start_date": "2023-04-24T11:30:51.930351Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfTaker"
                }
              }
            },
            "description": "Торги (аукцион) для участника (код 200)"
          },
          "202": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "active_deal_id": "38bd5f61-d3e4-432f-be4c-6bcf0a5b7045",
                      "auction_id": "fd831353-d13d-43a1-91d3-6ad06c84a8db",
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "docs_expired_date": "2023-04-24T14:36:51.9305482Z",
                      "end_date": "2023-04-24T11:36:51.93054Z",
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "f0f98614-3fa3-4a6f-87ed-953b0f500eeb",
                      "our_rate": {
                        "added_at": "2023-04-24T11:35:51.9305428Z",
                        "auction_rate_id": "242bc0ad-56d9-49c1-93eb-7e93f53b139e",
                        "contact_id": 1,
                        "loading_date": null,
                        "rate_with_nds": 6000,
                        "rate_without_nds": 5000,
                        "state": 1
                      },
                      "participants_count": 2,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9306908Z",
                      "start_date": "2023-04-24T11:30:51.93054Z",
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:51.9305506Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfTakerWinner"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": {
                      "active_deal_id": "38bd5f61-d3e4-432f-be4c-6bcf0a5b7045",
                      "auction_id": "fd831353-d13d-43a1-91d3-6ad06c84a8db",
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "docs_expired_date": "2023-04-24T14:36:51.9305482Z",
                      "end_date": "2023-04-24T11:36:51.93054Z",
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "f0f98614-3fa3-4a6f-87ed-953b0f500eeb",
                      "our_rate": {
                        "added_at": "2023-04-24T11:35:51.9305428Z",
                        "auction_rate_id": "242bc0ad-56d9-49c1-93eb-7e93f53b139e",
                        "contact_id": 1,
                        "loading_date": null,
                        "rate_with_nds": 6000,
                        "rate_without_nds": 5000,
                        "state": 1
                      },
                      "participants_count": 2,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9306908Z",
                      "start_date": "2023-04-24T11:30:51.93054Z",
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:51.9305506Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfTakerWinner"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": {
                      "active_deal_id": "38bd5f61-d3e4-432f-be4c-6bcf0a5b7045",
                      "auction_id": "fd831353-d13d-43a1-91d3-6ad06c84a8db",
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "docs_expired_date": "2023-04-24T14:36:51.9305482Z",
                      "end_date": "2023-04-24T11:36:51.93054Z",
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "f0f98614-3fa3-4a6f-87ed-953b0f500eeb",
                      "our_rate": {
                        "added_at": "2023-04-24T11:35:51.9305428Z",
                        "auction_rate_id": "242bc0ad-56d9-49c1-93eb-7e93f53b139e",
                        "contact_id": 1,
                        "loading_date": null,
                        "rate_with_nds": 6000,
                        "rate_without_nds": 5000,
                        "state": 1
                      },
                      "participants_count": 2,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:51.9306908Z",
                      "start_date": "2023-04-24T11:30:51.93054Z",
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:51.9305506Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfTakerWinner"
                }
              }
            },
            "description": "Торги (аукцион) для победителя (код 200)"
          },
          "404": {
            "description": "Торги (аукцион) не найдены"
          }
        },
        "tags": [
          "Auctions"
        ],
        "summary": "Получение Торгов (аукциона) по Id"
      },
      "delete": {
        "parameters": [
          {
            "description": "Id Торгов (аукциона)",
            "in": "path",
            "name": "auctionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Торги (аукцион) отменены"
          },
          "403": {
            "description": "У Торгов (аукциона) имеются активные сделки"
          },
          "404": {
            "description": "Торги (аукцион) не найдены"
          }
        },
        "tags": [
          "Auctions"
        ],
        "summary": "Отмена Торгов (аукциона) по Id"
      }
    },
    "/v1.2/auction/byids": {
      "post": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accept_second_pay_type": true,
                        "active_deal_id": "11fd8b8d-1a68-4e02-a9ec-6af5b90d89a8",
                        "auction_id": "a93234db-3ba6-44fc-b946-06c08c8f58f7",
                        "auction_rates": [
                          {
                            "added_at": "2023-04-24T11:31:51.9996831Z",
                            "ati_id": "12345",
                            "auction_rate_id": "1f8b6617-c717-47ec-8deb-2fef504e5a2f",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5500,
                            "rate_without_nds": 6600,
                            "source": 0,
                            "state": 0
                          },
                          {
                            "added_at": "2023-04-24T11:32:51.9996963Z",
                            "ati_id": "33345",
                            "auction_rate_id": "cac6be64-8b82-43fd-9a87-8208913f894b",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5000,
                            "rate_without_nds": 6000,
                            "source": 0,
                            "state": 1
                          }
                        ],
                        "auction_restart_parameters": {
                          "auction_finish_action": 1,
                          "current_change_winner_count": 2,
                          "current_restart_count": 1,
                          "duration_after_restart": 30,
                          "init_change_winner_count": 2,
                          "init_restart_count": 1,
                          "is_manually_restarted": false,
                          "rate_increase": null,
                          "rate_increase_option": null
                        },
                        "auto_renew": true,
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "deleted": false,
                        "docs_expired_date": "2023-04-24T14:36:51.9997183Z",
                        "duration": 6,
                        "end_date": "2023-04-24T11:36:51.9997338Z",
                        "end_date_boundary": "2023-04-24T11:36:51.999732Z",
                        "finish_type": 0,
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "62cec59c-fd1b-4545-95b7-08f1bb95e368",
                        "max_rate": 6000,
                        "max_renew_time": 60,
                        "nds": 20,
                        "participants_count": 2,
                        "raise_bid": true,
                        "raise_bid_interval": 30,
                        "renew_time": 20,
                        "response_in_minutes": 0,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0002292Z",
                        "start_date": "2023-04-24T11:30:51.9997166Z",
                        "start_since_first_bet": false,
                        "state": 0,
                        "step": 500,
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9997291Z",
                        "winner_criterion": 0
                      },
                      {
                        "auction_id": "48866a07-b1b9-4f4e-8980-19118ed25c10",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "end_date": "2023-04-24T11:36:51.9997534Z",
                        "finished": false,
                        "is_our_rate_best": true,
                        "load_id": "ef34b355-62ae-428a-83b1-8bf5809209a2",
                        "next_rate_with_nds": 5500,
                        "next_rate_without_nds": 6600,
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:51.9997573Z",
                          "auction_rate_id": "981ccdef-5f13-4599-b994-76a1991255db",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 4500,
                          "rate_without_nds": 5400,
                          "state": 0
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0003727Z",
                        "start_date": "2023-04-24T11:30:51.9997516Z",
                        "winner_criterion": 0
                      },
                      {
                        "active_deal_id": "143a9e3b-368b-4fca-9d12-1c035d45d074",
                        "auction_id": "1acfb6a9-81bd-4abe-afb5-a1fe3be17653",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "docs_expired_date": "2023-04-24T14:36:51.9997965Z",
                        "end_date": "2023-04-24T11:36:51.9997816Z",
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "97c210ee-8431-4a64-93c6-4eeb2d95be7d",
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:51.9997838Z",
                          "auction_rate_id": "4567c7d0-83f4-49c5-9779-89473f976d0f",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 6000,
                          "rate_without_nds": 5000,
                          "state": 1
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0004775Z",
                        "start_date": "2023-04-24T11:30:51.9997795Z",
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9997995Z",
                        "winner_criterion": 0
                      }
                    ]
                  }
                },
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuctionOfLoadOwner"
                  },
                  "type": "array"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accept_second_pay_type": true,
                        "active_deal_id": "11fd8b8d-1a68-4e02-a9ec-6af5b90d89a8",
                        "auction_id": "a93234db-3ba6-44fc-b946-06c08c8f58f7",
                        "auction_rates": [
                          {
                            "added_at": "2023-04-24T11:31:51.9996831Z",
                            "ati_id": "12345",
                            "auction_rate_id": "1f8b6617-c717-47ec-8deb-2fef504e5a2f",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5500,
                            "rate_without_nds": 6600,
                            "source": 0,
                            "state": 0
                          },
                          {
                            "added_at": "2023-04-24T11:32:51.9996963Z",
                            "ati_id": "33345",
                            "auction_rate_id": "cac6be64-8b82-43fd-9a87-8208913f894b",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5000,
                            "rate_without_nds": 6000,
                            "source": 0,
                            "state": 1
                          }
                        ],
                        "auction_restart_parameters": {
                          "auction_finish_action": 1,
                          "current_change_winner_count": 2,
                          "current_restart_count": 1,
                          "duration_after_restart": 30,
                          "init_change_winner_count": 2,
                          "init_restart_count": 1,
                          "is_manually_restarted": false,
                          "rate_increase": null,
                          "rate_increase_option": null
                        },
                        "auto_renew": true,
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "deleted": false,
                        "docs_expired_date": "2023-04-24T14:36:51.9997183Z",
                        "duration": 6,
                        "end_date": "2023-04-24T11:36:51.9997338Z",
                        "end_date_boundary": "2023-04-24T11:36:51.999732Z",
                        "finish_type": 0,
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "62cec59c-fd1b-4545-95b7-08f1bb95e368",
                        "max_rate": 6000,
                        "max_renew_time": 60,
                        "nds": 20,
                        "participants_count": 2,
                        "raise_bid": true,
                        "raise_bid_interval": 30,
                        "renew_time": 20,
                        "response_in_minutes": 0,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0002292Z",
                        "start_date": "2023-04-24T11:30:51.9997166Z",
                        "start_since_first_bet": false,
                        "state": 0,
                        "step": 500,
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9997291Z",
                        "winner_criterion": 0
                      },
                      {
                        "auction_id": "48866a07-b1b9-4f4e-8980-19118ed25c10",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "end_date": "2023-04-24T11:36:51.9997534Z",
                        "finished": false,
                        "is_our_rate_best": true,
                        "load_id": "ef34b355-62ae-428a-83b1-8bf5809209a2",
                        "next_rate_with_nds": 5500,
                        "next_rate_without_nds": 6600,
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:51.9997573Z",
                          "auction_rate_id": "981ccdef-5f13-4599-b994-76a1991255db",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 4500,
                          "rate_without_nds": 5400,
                          "state": 0
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0003727Z",
                        "start_date": "2023-04-24T11:30:51.9997516Z",
                        "winner_criterion": 0
                      },
                      {
                        "active_deal_id": "143a9e3b-368b-4fca-9d12-1c035d45d074",
                        "auction_id": "1acfb6a9-81bd-4abe-afb5-a1fe3be17653",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "docs_expired_date": "2023-04-24T14:36:51.9997965Z",
                        "end_date": "2023-04-24T11:36:51.9997816Z",
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "97c210ee-8431-4a64-93c6-4eeb2d95be7d",
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:51.9997838Z",
                          "auction_rate_id": "4567c7d0-83f4-49c5-9779-89473f976d0f",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 6000,
                          "rate_without_nds": 5000,
                          "state": 1
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0004775Z",
                        "start_date": "2023-04-24T11:30:51.9997795Z",
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9997995Z",
                        "winner_criterion": 0
                      }
                    ]
                  }
                },
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuctionOfLoadOwner"
                  },
                  "type": "array"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accept_second_pay_type": true,
                        "active_deal_id": "11fd8b8d-1a68-4e02-a9ec-6af5b90d89a8",
                        "auction_id": "a93234db-3ba6-44fc-b946-06c08c8f58f7",
                        "auction_rates": [
                          {
                            "added_at": "2023-04-24T11:31:51.9996831Z",
                            "ati_id": "12345",
                            "auction_rate_id": "1f8b6617-c717-47ec-8deb-2fef504e5a2f",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5500,
                            "rate_without_nds": 6600,
                            "source": 0,
                            "state": 0
                          },
                          {
                            "added_at": "2023-04-24T11:32:51.9996963Z",
                            "ati_id": "33345",
                            "auction_rate_id": "cac6be64-8b82-43fd-9a87-8208913f894b",
                            "contact_id": 0,
                            "loading_date": null,
                            "rate_with_nds": 5000,
                            "rate_without_nds": 6000,
                            "source": 0,
                            "state": 1
                          }
                        ],
                        "auction_restart_parameters": {
                          "auction_finish_action": 1,
                          "current_change_winner_count": 2,
                          "current_restart_count": 1,
                          "duration_after_restart": 30,
                          "init_change_winner_count": 2,
                          "init_restart_count": 1,
                          "is_manually_restarted": false,
                          "rate_increase": null,
                          "rate_increase_option": null
                        },
                        "auto_renew": true,
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "deleted": false,
                        "docs_expired_date": "2023-04-24T14:36:51.9997183Z",
                        "duration": 6,
                        "end_date": "2023-04-24T11:36:51.9997338Z",
                        "end_date_boundary": "2023-04-24T11:36:51.999732Z",
                        "finish_type": 0,
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "62cec59c-fd1b-4545-95b7-08f1bb95e368",
                        "max_rate": 6000,
                        "max_renew_time": 60,
                        "nds": 20,
                        "participants_count": 2,
                        "raise_bid": true,
                        "raise_bid_interval": 30,
                        "renew_time": 20,
                        "response_in_minutes": 0,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0002292Z",
                        "start_date": "2023-04-24T11:30:51.9997166Z",
                        "start_since_first_bet": false,
                        "state": 0,
                        "step": 500,
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9997291Z",
                        "winner_criterion": 0
                      },
                      {
                        "auction_id": "48866a07-b1b9-4f4e-8980-19118ed25c10",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "end_date": "2023-04-24T11:36:51.9997534Z",
                        "finished": false,
                        "is_our_rate_best": true,
                        "load_id": "ef34b355-62ae-428a-83b1-8bf5809209a2",
                        "next_rate_with_nds": 5500,
                        "next_rate_without_nds": 6600,
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:51.9997573Z",
                          "auction_rate_id": "981ccdef-5f13-4599-b994-76a1991255db",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 4500,
                          "rate_without_nds": 5400,
                          "state": 0
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0003727Z",
                        "start_date": "2023-04-24T11:30:51.9997516Z",
                        "winner_criterion": 0
                      },
                      {
                        "active_deal_id": "143a9e3b-368b-4fca-9d12-1c035d45d074",
                        "auction_id": "1acfb6a9-81bd-4abe-afb5-a1fe3be17653",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "docs_expired_date": "2023-04-24T14:36:51.9997965Z",
                        "end_date": "2023-04-24T11:36:51.9997816Z",
                        "finished": true,
                        "is_docs_expired": false,
                        "load_id": "97c210ee-8431-4a64-93c6-4eeb2d95be7d",
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:51.9997838Z",
                          "auction_rate_id": "4567c7d0-83f4-49c5-9779-89473f976d0f",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 6000,
                          "rate_without_nds": 5000,
                          "state": 1
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0004775Z",
                        "start_date": "2023-04-24T11:30:51.9997795Z",
                        "time_to_provide_documents": 3,
                        "win_date": "2023-04-24T11:36:51.9997995Z",
                        "winner_criterion": 0
                      }
                    ]
                  }
                },
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuctionOfLoadOwner"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Торги (аукционы) грузовладельца, участника, победителя"
          }
        },
        "tags": [
          "Auctions"
        ],
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "description": "Массив Id Торгов (аукционов)",
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              }
            },
            "application/json": {
              "schema": {
                "description": "Массив Id Торгов (аукционов)",
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              }
            },
            "application/json-patch+json": {
              "schema": {
                "description": "Массив Id Торгов (аукционов)",
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              }
            },
            "text/json": {
              "schema": {
                "description": "Массив Id Торгов (аукционов)",
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              }
            }
          },
          "description": "Массив Id Торгов (аукционов)"
        },
        "summary": "Получение списка Торгов (аукционов) по массиву id Торгов (аукционов)"
      }
    },
    "/v1.2/auction/{auctionId}/finish_aot": {
      "post": {
        "parameters": [
          {
            "description": "Id Торгов (аукциона)",
            "in": "path",
            "name": "auctionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "aa30b2e3-778b-4125-ae26-75269311542e",
                      "auction_id": "60a21a9c-727e-42b1-b092-cea3b87a0f56",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:52.100118Z",
                          "ati_id": "12345",
                          "auction_rate_id": "057b35fd-59f8-4e42-a1b0-cf7c0e6e5260",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:52.1001269Z",
                          "ati_id": "33345",
                          "auction_rate_id": "c057841f-0e55-45b3-b46f-def80b479e29",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:52.1001426Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:52.1001554Z",
                      "end_date_boundary": "2023-04-24T11:36:52.1001542Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "aa5cfb62-de6d-4c3b-853f-3270fc8793a9",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:52.1004411Z",
                      "start_date": "2023-04-24T11:30:52.1001412Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:52.1001516Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "aa30b2e3-778b-4125-ae26-75269311542e",
                      "auction_id": "60a21a9c-727e-42b1-b092-cea3b87a0f56",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:52.100118Z",
                          "ati_id": "12345",
                          "auction_rate_id": "057b35fd-59f8-4e42-a1b0-cf7c0e6e5260",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:52.1001269Z",
                          "ati_id": "33345",
                          "auction_rate_id": "c057841f-0e55-45b3-b46f-def80b479e29",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:52.1001426Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:52.1001554Z",
                      "end_date_boundary": "2023-04-24T11:36:52.1001542Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "aa5cfb62-de6d-4c3b-853f-3270fc8793a9",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:52.1004411Z",
                      "start_date": "2023-04-24T11:30:52.1001412Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:52.1001516Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "aa30b2e3-778b-4125-ae26-75269311542e",
                      "auction_id": "60a21a9c-727e-42b1-b092-cea3b87a0f56",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:52.100118Z",
                          "ati_id": "12345",
                          "auction_rate_id": "057b35fd-59f8-4e42-a1b0-cf7c0e6e5260",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:52.1001269Z",
                          "ati_id": "33345",
                          "auction_rate_id": "c057841f-0e55-45b3-b46f-def80b479e29",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:52.1001426Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:52.1001554Z",
                      "end_date_boundary": "2023-04-24T11:36:52.1001542Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "aa5cfb62-de6d-4c3b-853f-3270fc8793a9",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:52.1004411Z",
                      "start_date": "2023-04-24T11:30:52.1001412Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:52.1001516Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              }
            },
            "description": "Торги (аукцион) грузовладельца"
          },
          "403": {
            "description": "Торги (аукцион) уже завершены"
          },
          "410": {
            "description": "Торги (аукцион) были отменены"
          }
        },
        "tags": [
          "Auctions"
        ],
        "summary": "Досрочное завершение Торгов (аукциона)"
      }
    },
    "/v1.2/auction/bet/win/{auctionRateId}": {
      "post": {
        "parameters": [
          {
            "description": "Id ставки Торгов (аукциона) (выбирается одна из ставок со статусами state=[0,-3]) устанавливается победной (со статусом state=1)",
            "in": "path",
            "name": "auctionRateId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "c7ba865c-6dd2-43e4-bb29-66df7583989a",
                      "auction_id": "c771ed18-84e4-4ab8-8f91-1be412274d86",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:52.0690515Z",
                          "ati_id": "12345",
                          "auction_rate_id": "5a2e6b1c-b02a-45b0-9136-f64a9236ab21",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:52.0690605Z",
                          "ati_id": "33345",
                          "auction_rate_id": "cd342abc-ac8d-4b08-87d3-def8f125b28d",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:52.0690757Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:52.0690878Z",
                      "end_date_boundary": "2023-04-24T11:36:52.0690866Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "a86db870-967e-4893-b6e1-fef16c73b054",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:52.069361Z",
                      "start_date": "2023-04-24T11:30:52.0690743Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:52.0690844Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "c7ba865c-6dd2-43e4-bb29-66df7583989a",
                      "auction_id": "c771ed18-84e4-4ab8-8f91-1be412274d86",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:52.0690515Z",
                          "ati_id": "12345",
                          "auction_rate_id": "5a2e6b1c-b02a-45b0-9136-f64a9236ab21",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:52.0690605Z",
                          "ati_id": "33345",
                          "auction_rate_id": "cd342abc-ac8d-4b08-87d3-def8f125b28d",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:52.0690757Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:52.0690878Z",
                      "end_date_boundary": "2023-04-24T11:36:52.0690866Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "a86db870-967e-4893-b6e1-fef16c73b054",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:52.069361Z",
                      "start_date": "2023-04-24T11:30:52.0690743Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:52.0690844Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": {
                      "accept_second_pay_type": true,
                      "active_deal_id": "c7ba865c-6dd2-43e4-bb29-66df7583989a",
                      "auction_id": "c771ed18-84e4-4ab8-8f91-1be412274d86",
                      "auction_rates": [
                        {
                          "added_at": "2023-04-24T11:31:52.0690515Z",
                          "ati_id": "12345",
                          "auction_rate_id": "5a2e6b1c-b02a-45b0-9136-f64a9236ab21",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5500,
                          "rate_without_nds": 6600,
                          "source": 0,
                          "state": 0
                        },
                        {
                          "added_at": "2023-04-24T11:32:52.0690605Z",
                          "ati_id": "33345",
                          "auction_rate_id": "cd342abc-ac8d-4b08-87d3-def8f125b28d",
                          "contact_id": 0,
                          "loading_date": null,
                          "rate_with_nds": 5000,
                          "rate_without_nds": 6000,
                          "source": 0,
                          "state": 1
                        }
                      ],
                      "auction_restart_parameters": {
                        "auction_finish_action": 1,
                        "current_change_winner_count": 2,
                        "current_restart_count": 1,
                        "duration_after_restart": 30,
                        "init_change_winner_count": 2,
                        "init_restart_count": 1,
                        "is_manually_restarted": false,
                        "rate_increase": null,
                        "rate_increase_option": null
                      },
                      "auto_renew": true,
                      "currency": 1,
                      "current_rate_with_nds": 5000,
                      "current_rate_without_nds": 6000,
                      "deleted": false,
                      "docs_expired_date": "2023-04-24T14:36:52.0690757Z",
                      "duration": 6,
                      "end_date": "2023-04-24T11:36:52.0690878Z",
                      "end_date_boundary": "2023-04-24T11:36:52.0690866Z",
                      "finish_type": 0,
                      "finished": true,
                      "is_docs_expired": false,
                      "load_id": "a86db870-967e-4893-b6e1-fef16c73b054",
                      "max_rate": 6000,
                      "max_renew_time": 60,
                      "nds": 20,
                      "participants_count": 2,
                      "raise_bid": true,
                      "raise_bid_interval": 30,
                      "renew_time": 20,
                      "response_in_minutes": 0,
                      "response_prohibited": false,
                      "server_date": "2023-04-24T11:36:52.069361Z",
                      "start_date": "2023-04-24T11:30:52.0690743Z",
                      "start_since_first_bet": false,
                      "state": 0,
                      "step": 500,
                      "time_to_provide_documents": 3,
                      "win_date": "2023-04-24T11:36:52.0690844Z",
                      "winner_criterion": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionOfLoadOwner"
                }
              }
            },
            "description": "Торги (аукцион) грузовладельца"
          },
          "403": {
            "description": "У вас нет доступа на установление победной ставки"
          },
          "404": {
            "description": "Торги (аукцион) не найдены, либо груз не найден"
          }
        },
        "tags": [
          "Auctions"
        ],
        "summary": "Смена победителя Торгов (аукциона)"
      }
    },
    "/v1.2/auction/bet": {
      "post": {
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "auction": {
                        "auction_id": "8ef73743-fb35-4bdc-83a9-5904fa517ded",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "end_date": "2023-04-24T11:36:52.0301243Z",
                        "finished": false,
                        "is_our_rate_best": true,
                        "load_id": "2f86f429-334a-4dae-be3f-624f92870829",
                        "next_rate_with_nds": 5500,
                        "next_rate_without_nds": 6600,
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:52.0301298Z",
                          "auction_rate_id": "d4aa20cc-500b-494d-b67e-77a9fe8826bf",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 4500,
                          "rate_without_nds": 5400,
                          "state": 0
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0302924Z",
                        "start_date": "2023-04-24T11:30:52.0301216Z",
                        "winner_criterion": 0
                      },
                      "auction_end_date": "2023-04-24T11:36:52.0300965Z",
                      "result_status": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionRateStatusOfTaker"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": {
                      "auction": {
                        "auction_id": "8ef73743-fb35-4bdc-83a9-5904fa517ded",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "end_date": "2023-04-24T11:36:52.0301243Z",
                        "finished": false,
                        "is_our_rate_best": true,
                        "load_id": "2f86f429-334a-4dae-be3f-624f92870829",
                        "next_rate_with_nds": 5500,
                        "next_rate_without_nds": 6600,
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:52.0301298Z",
                          "auction_rate_id": "d4aa20cc-500b-494d-b67e-77a9fe8826bf",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 4500,
                          "rate_without_nds": 5400,
                          "state": 0
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0302924Z",
                        "start_date": "2023-04-24T11:30:52.0301216Z",
                        "winner_criterion": 0
                      },
                      "auction_end_date": "2023-04-24T11:36:52.0300965Z",
                      "result_status": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionRateStatusOfTaker"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": {
                      "auction": {
                        "auction_id": "8ef73743-fb35-4bdc-83a9-5904fa517ded",
                        "currency": 1,
                        "current_rate_with_nds": 5000,
                        "current_rate_without_nds": 6000,
                        "end_date": "2023-04-24T11:36:52.0301243Z",
                        "finished": false,
                        "is_our_rate_best": true,
                        "load_id": "2f86f429-334a-4dae-be3f-624f92870829",
                        "next_rate_with_nds": 5500,
                        "next_rate_without_nds": 6600,
                        "our_rate": {
                          "added_at": "2023-04-24T11:35:52.0301298Z",
                          "auction_rate_id": "d4aa20cc-500b-494d-b67e-77a9fe8826bf",
                          "contact_id": 1,
                          "loading_date": null,
                          "rate_with_nds": 4500,
                          "rate_without_nds": 5400,
                          "state": 0
                        },
                        "participants_count": 2,
                        "response_prohibited": false,
                        "server_date": "2023-04-24T11:36:52.0302924Z",
                        "start_date": "2023-04-24T11:30:52.0301216Z",
                        "winner_criterion": 0
                      },
                      "auction_end_date": "2023-04-24T11:36:52.0300965Z",
                      "result_status": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionRateStatusOfTaker"
                }
              }
            },
            "description": "Статус ставки"
          },
          "403": {
            "description": "У вас нет доступа на сохранение ставки"
          },
          "404": {
            "description": "Торги (аукцион) не найдены"
          }
        },
        "tags": [
          "Auctions"
        ],
        "requestBody": {
          "content": {
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AuctionRateOfTakerDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuctionRateOfTakerDto"
              }
            },
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AuctionRateOfTakerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AuctionRateOfTakerDto"
              }
            }
          },
          "description": "Объект ставки Торгов (аукциона)"
        },
        "summary": "Выставление ставки в Торгах (аукционе)"
      }
    },
    "/v1.2/auction/bet/refuse/{auctionRateId}": {
      "post": {
        "parameters": [
          {
            "description": "Id ставки Торгов (аукциона)",
            "in": "path",
            "name": "auctionRateId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionRateRefusingResult"
                }
              },
              "text/json": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionRateRefusingResult"
                }
              },
              "text/plain": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuctionRateRefusingResult"
                }
              }
            },
            "description": "Результат отмены ставки:\r\n            \r\n            * `0` - Ставка удалена;\r\n            * `5` - Ставка удалена, уже есть другие ставки;\r\n            * Остальные зарезервированы"
          },
          "403": {
            "description": "Время вышло, ставку по Торгам (аукциону) отменить нельзя"
          },
          "404": {
            "description": "Ставка не найдена"
          }
        },
        "tags": [
          "Auctions"
        ],
        "summary": "Отмена ставки в Торгах (аукционе)"
      }
    },
    "/v1.2/auction/{auctionId}/refuse": {
      "post": {
        "parameters": [
          {
            "description": "Id Торгов (аукциона)",
            "in": "path",
            "name": "auctionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Успешное выполнение"
          },
          "403": {
            "description": "Торги (аукцион) не завершены, либо вы не являетесь победителем Торгов (аукциона)"
          },
          "404": {
            "description": "Торги (аукцион) не найдены"
          }
        },
        "tags": [
          "Auctions"
        ],
        "summary": "Отказ от победы в Торгах (аукционе)"
      }
    }
  },
  "components": {
    "schemas": {
      "AuctionFinishAction": {
        "description": "Финальное действие после завершения аукциона\r\n* `1` — Опубликовать груз со ставкой\r\n* `2` —  Опубликовать груз с запросом ставки\r\n* `3` — Удалить груз",
        "enum": [
          1,
          2,
          3
        ],
        "format": "int32",
        "type": "integer"
      },
      "AuctionFinishType": {
        "description": "Тип окончания аукциона\r\n\r\n* `0` - По времени\r\n* `1` - По минимальной ставке\r\n* `2` - Досрочное",
        "enum": [
          0,
          1,
          2
        ],
        "format": "int32",
        "type": "integer"
      },
      "AuctionOfLoadOwner": {
        "description": "Торги (аукцион) для грузовладельца",
        "properties": {
          "accept_second_pay_type": {
            "description": "Возможность принимать другой тип оплаты (с НДС или без НДС)",
            "example": true,
            "type": "boolean"
          },
          "active_deal_id": {
            "description": "Id сделки, привязанной к Торгам (аукциону)",
            "format": "uuid",
            "type": "string"
          },
          "auction_id": {
            "description": "Id Торгов (аукциона)",
            "example": "2fb965f2-85e9-4213-90e7-f396e47219e7",
            "format": "uuid",
            "type": "string"
          },
          "auction_rates": {
            "description": "Список ставок по Торгам (аукциону)",
            "items": {
              "$ref": "#/components/schemas/AuctionRateOfLoadOwner"
            },
            "type": "array"
          },
          "auction_restart_parameters": {
            "$ref": "#/components/schemas/AuctionRestartParams"
          },
          "auto_renew": {
            "description": "Автопродление Торгов (аукциона) при выставлении ставки в последние 5 минут до окончания Торгов (аукциона)",
            "example": false,
            "type": "boolean"
          },
          "currency": {
            "description": "Валюта ставки на груз",
            "example": 1,
            "format": "int32",
            "type": "integer"
          },
          "current_rate_with_nds": {
            "description": "Текущая ставка с НДС",
            "example": 25000,
            "format": "double",
            "type": "number"
          },
          "current_rate_without_nds": {
            "description": "Текущая ставка без НДС",
            "example": 20000,
            "format": "double",
            "type": "number"
          },
          "deleted": {
            "description": "Аукцион помечен удалённым - спустя некоторое время он автоматически удалится полностью",
            "example": true,
            "type": "boolean"
          },
          "docs_expired_date": {
            "description": "Время окончания подачи документов (только для победителя)",
            "format": "date-time",
            "type": "string"
          },
          "duration": {
            "description": "Длительность Торгов (аукциона) в минутах",
            "format": "int32",
            "type": "integer"
          },
          "end_date": {
            "description": "Время окончания Торгов (аукциона)",
            "example": "2019-03-11T10:08:03.2530000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "end_date_boundary": {
            "description": "Время окончания Торгов (аукциона), после которого они автоматически завершаются, если нет автопродления",
            "example": "2019-05-21T15:15:10.8370000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "finish_type": {
            "$ref": "#/components/schemas/AuctionFinishType"
          },
          "finished": {
            "description": "Завершены ли Торги (аукцион)",
            "example": true,
            "type": "boolean"
          },
          "is_docs_expired": {
            "description": "Время подачи документов истекло (только для победителя)",
            "type": "boolean"
          },
          "load_id": {
            "description": "Id груза, для которого активны Торги (аукцион)",
            "example": "2fb965f2-85e9-4213-90e7-f396e47219e7",
            "format": "uuid",
            "type": "string"
          },
          "max_rate": {
            "description": "Максимально допустимая ставка по Торгам (аукциону) при автоповышении (RaiseBid = true)",
            "format": "double",
            "type": "number"
          },
          "max_renew_time": {
            "description": "Максимально допустимое время, на которое сдвигается окончание Торгов (аукциона) при включённом AutoRenew (в минутах)",
            "format": "int32",
            "type": "integer"
          },
          "nds": {
            "description": "Ставка НДС",
            "format": "double",
            "type": "number"
          },
          "next_rate_with_nds": {
            "description": "Следующая возможная ставка с НДС",
            "format": "double",
            "type": "number"
          },
          "next_rate_without_nds": {
            "description": "Следующая возможная ставка без НДС",
            "format": "double",
            "type": "number"
          },
          "participants_count": {
            "description": "Количество участников",
            "example": 2,
            "format": "int32",
            "type": "integer"
          },
          "raise_bid": {
            "description": "Автоповышение ставки на Шаг (step), если нет предложений",
            "type": "boolean"
          },
          "raise_bid_interval": {
            "description": "Период увеличения ставки в минутах при автоповышении (RaiseBid = true)",
            "format": "int32",
            "type": "integer"
          },
          "refuse_bet_prohibited": {
            "description": "Отмена ставки запрещена",
            "example": true,
            "type": "boolean"
          },
          "renew_time": {
            "description": "Время, на которое сдвигается окончание Торгов (аукциона) при включённом AutoRenew (в минутах)",
            "example": 3,
            "format": "int32",
            "type": "integer"
          },
          "response_in_minutes": {
            "description": "Количество минут с момента начала Торгов (аукциона) (StartDate), после которых возможно принимать встречные предложения",
            "format": "int32",
            "type": "integer"
          },
          "response_prohibited": {
            "description": "Встречные предложения запрещены",
            "example": true,
            "type": "boolean"
          },
          "server_date": {
            "description": "Серверное время. Для синхронизации Торгов (аукциона)",
            "example": "2019-06-04T18:24:45.7898742+00:00",
            "format": "date-time",
            "type": "string"
          },
          "start_date": {
            "description": "Время начала Торгов (аукциона)",
            "example": "2019-03-11T10:05:03.7900000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "start_since_first_bet": {
            "description": "Длительность Торгов (аукциона) отсчитывается с момента первой ставки",
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/AuctionState"
          },
          "step": {
            "description": "Шаг изменения ставки Торгов (аукциона)",
            "example": 1000,
            "format": "double",
            "type": "number"
          },
          "time_to_provide_documents": {
            "description": "Время на предоставление перевозчиком данных для заявки (в часах)",
            "format": "double",
            "type": "number"
          },
          "win_date": {
            "description": "Время выигрыша ставки (только для победителя)",
            "format": "date-time",
            "type": "string"
          },
          "winner_criterion": {
            "$ref": "#/components/schemas/WinnerCriteria"
          }
        },
        "required": [
          "auction_id",
          "auto_renew",
          "currency",
          "deleted",
          "finished",
          "load_id",
          "participants_count",
          "server_date",
          "start_date",
          "step"
        ],
        "type": "object"
      },
      "AuctionOfTaker": {
        "description": "Торги (аукцион) для перевозчика",
        "properties": {
          "auction_id": {
            "description": "Id Торгов (аукциона)",
            "example": "2fb965f2-85e9-4213-90e7-f396e47219e7",
            "format": "uuid",
            "type": "string"
          },
          "currency": {
            "description": "Валюта ставки на груз",
            "example": 1,
            "format": "int32",
            "type": "integer"
          },
          "current_rate_with_nds": {
            "description": "Текущая ставка с НДС",
            "example": 25000,
            "format": "double",
            "type": "number"
          },
          "current_rate_without_nds": {
            "description": "Текущая ставка без НДС",
            "example": 20000,
            "format": "double",
            "type": "number"
          },
          "end_date": {
            "description": "Время окончания Торгов (аукциона)",
            "example": "2019-03-11T10:08:03.2530000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "finished": {
            "description": "Завершены ли Торги (аукцион)",
            "example": true,
            "type": "boolean"
          },
          "is_our_rate_best": {
            "description": "Ставка лучшая в незавершенных Торгах (аукционе) (в завершенных - не отображается)",
            "type": "boolean"
          },
          "load_id": {
            "description": "Id груза, для которого активны Торги (аукцион)",
            "example": "2fb965f2-85e9-4213-90e7-f396e47219e7",
            "format": "uuid",
            "type": "string"
          },
          "next_rate_with_nds": {
            "description": "Следующая возможная ставка с НДС",
            "format": "double",
            "type": "number"
          },
          "next_rate_without_nds": {
            "description": "Следующая возможная ставка без НДС",
            "format": "double",
            "type": "number"
          },
          "our_rate": {
            "$ref": "#/components/schemas/AuctionRateOfTaker"
          },
          "participants_count": {
            "description": "Количество участников",
            "example": 2,
            "format": "int32",
            "type": "integer"
          },
          "refuse_bet_prohibited": {
            "description": "Отмена ставки запрещена",
            "example": true,
            "type": "boolean"
          },
          "response_prohibited": {
            "description": "Встречные предложения запрещены",
            "example": true,
            "type": "boolean"
          },
          "server_date": {
            "description": "Серверное время. Для синхронизации Торгов (аукциона)",
            "example": "2019-06-04T18:24:45.7898742+00:00",
            "format": "date-time",
            "type": "string"
          },
          "start_date": {
            "description": "Время начала Торгов (аукциона)",
            "example": "2019-03-11T10:05:03.7900000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "winner_criterion": {
            "$ref": "#/components/schemas/WinnerCriteria"
          }
        },
        "required": [
          "auction_id",
          "currency",
          "finished",
          "load_id",
          "participants_count",
          "server_date",
          "start_date"
        ],
        "type": "object"
      },
      "AuctionOfTakerWinner": {
        "description": "Торги (аукцион) для победителя",
        "properties": {
          "active_deal_id": {
            "description": "Id сделки, привязанной к Торгам (аукциону)",
            "format": "uuid",
            "type": "string"
          },
          "auction_id": {
            "description": "Id Торгов (аукциона)",
            "example": "2fb965f2-85e9-4213-90e7-f396e47219e7",
            "format": "uuid",
            "type": "string"
          },
          "currency": {
            "description": "Валюта ставки на груз",
            "example": 1,
            "format": "int32",
            "type": "integer"
          },
          "current_rate_with_nds": {
            "description": "Текущая ставка с НДС",
            "example": 25000,
            "format": "double",
            "type": "number"
          },
          "current_rate_without_nds": {
            "description": "Текущая ставка без НДС",
            "example": 20000,
            "format": "double",
            "type": "number"
          },
          "docs_expired_date": {
            "description": "Время окончания подачи документов (только для победителя)",
            "format": "date-time",
            "type": "string"
          },
          "end_date": {
            "description": "Время окончания Торгов (аукциона)",
            "example": "2019-03-11T10:08:03.2530000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "finished": {
            "description": "Завершены ли Торги (аукцион)",
            "example": true,
            "type": "boolean"
          },
          "is_docs_expired": {
            "description": "Время подачи документов истекло (только для победителя)",
            "type": "boolean"
          },
          "load_id": {
            "description": "Id груза, для которого активны Торги (аукцион)",
            "example": "2fb965f2-85e9-4213-90e7-f396e47219e7",
            "format": "uuid",
            "type": "string"
          },
          "our_rate": {
            "$ref": "#/components/schemas/AuctionRateOfTaker"
          },
          "participants_count": {
            "description": "Количество участников",
            "example": 2,
            "format": "int32",
            "type": "integer"
          },
          "refuse_bet_prohibited": {
            "description": "Отмена ставки запрещена",
            "example": true,
            "type": "boolean"
          },
          "response_prohibited": {
            "description": "Встречные предложения запрещены",
            "example": true,
            "type": "boolean"
          },
          "server_date": {
            "description": "Серверное время. Для синхронизации Торгов (аукциона)",
            "example": "2019-06-04T18:24:45.7898742+00:00",
            "format": "date-time",
            "type": "string"
          },
          "start_date": {
            "description": "Время начала Торгов (аукциона)",
            "example": "2019-03-11T10:05:03.7900000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "time_to_provide_documents": {
            "description": "Время на предоставление перевозчиком данных для заявки (в часах)",
            "format": "double",
            "type": "number"
          },
          "win_date": {
            "description": "Время выигрыша ставки (только для победителя)",
            "format": "date-time",
            "type": "string"
          },
          "winner_criterion": {
            "$ref": "#/components/schemas/WinnerCriteria"
          }
        },
        "required": [
          "auction_id",
          "currency",
          "finished",
          "load_id",
          "participants_count",
          "server_date",
          "start_date"
        ],
        "type": "object"
      },
      "AuctionPaymentType": {
        "description": "Тип оплаты\r\n* `1` - Наличка\r\n* `22` - Любая\r\n* `23` - На карту\r\n* `24` - С НДС\r\n* `25` - Без НДС\r\n* Остальные зарезервированы",
        "enum": [
          1,
          22,
          23,
          24,
          25
        ],
        "format": "int32",
        "type": "integer"
      },
      "AuctionRateBetStatus": {
        "description": "Статус выставленной ставки\r\n\r\n* `0` - Ставка выставлена\r\n* `1` - Ставка выставлена и Торги (аукцион) завершены\r\n* `2` - Ставка не выставлена, поскольку Торги (аукцион) не найдены\r\n* `3` - Ставка не выставлена, поскольку она не лучшая\r\n* `4` - Ставка выставлена минимальная, но Торги (аукцион) не завершены\r\n* `5` - Ставка выставлена и Торги (аукцион) продлены\r\n* `6` - Ставка не выставлена, поскольку торги завершены",
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "format": "int32",
        "type": "integer"
      },
      "AuctionRateOfLoadOwner": {
        "description": "Для вывода грузовладельцу ставки в списке",
        "properties": {
          "added_at": {
            "description": "Дата добавления",
            "format": "date-time",
            "type": "string"
          },
          "ati_id": {
            "description": "Фирма, поставившая ставку",
            "type": "string"
          },
          "auction_rate_id": {
            "description": "Id ставки",
            "format": "uuid",
            "type": "string"
          },
          "contact_id": {
            "description": "Контакт",
            "format": "int32",
            "type": "integer"
          },
          "loading_date": {
            "description": "Ближайшая возможная для перевозчика дата загрузки. Используется только в Торгах с критерием победы по ставке и дате загрузки",
            "format": "date-time",
            "type": "string"
          },
          "rate_with_nds": {
            "description": "Ставка c НДС на груз, выставленная перевозчиком",
            "format": "double",
            "type": "number"
          },
          "rate_without_nds": {
            "description": "Ставка без НДС на груз, выставленная перевозчиком",
            "format": "double",
            "type": "number"
          },
          "source": {
            "$ref": "#/components/schemas/RateSource"
          },
          "state": {
            "$ref": "#/components/schemas/AuctionRateState"
          }
        },
        "required": [
          "added_at",
          "ati_id",
          "auction_rate_id",
          "contact_id",
          "state"
        ],
        "type": "object"
      },
      "AuctionRateOfTaker": {
        "description": "Выставленная ставка",
        "properties": {
          "added_at": {
            "description": "Дата добавления",
            "format": "date-time",
            "type": "string"
          },
          "auction_rate_id": {
            "description": "Id ставки",
            "format": "uuid",
            "type": "string"
          },
          "contact_id": {
            "description": "Контакт",
            "format": "int32",
            "type": "integer"
          },
          "loading_date": {
            "description": "Ближайшая возможная для перевозчика дата загрузки. Используется только в Торгах с критерием победы по ставке и дате загрузки",
            "format": "date-time",
            "type": "string"
          },
          "rate_with_nds": {
            "description": "Ставка c НДС на груз, выставленная перевозчиком",
            "format": "double",
            "type": "number"
          },
          "rate_without_nds": {
            "description": "Ставка без НДС на груз, выставленная перевозчиком",
            "format": "double",
            "type": "number"
          },
          "state": {
            "$ref": "#/components/schemas/AuctionRateState"
          }
        },
        "required": [
          "added_at",
          "auction_rate_id",
          "contact_id",
          "state"
        ],
        "type": "object"
      },
      "AuctionRateOfTakerDto": {
        "description": "Для внесения ставки грузоперевозчиком",
        "properties": {
          "auction_id": {
            "description": "Id аукциона",
            "format": "uuid",
            "type": "string"
          },
          "loading_date": {
            "description": "Ближайшая возможная для перевозчика дата загрузки. Используется только в Торгах с критерием победы по ставке и дате загрузки",
            "format": "date-time",
            "type": "string"
          },
          "payment_type": {
            "$ref": "#/components/schemas/AuctionPaymentType"
          },
          "rate": {
            "description": "Ставка на груз, поставленная перевозчиком",
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "auction_id",
          "payment_type",
          "rate"
        ],
        "type": "object"
      },
      "AuctionRateRefusingResult": {
        "description": "Результат отмены ставки аукциона\r\n\r\n* `-1` - Случилось что-то непонятное, но ставка не удалилась\r\n* `0` - Cтавка удалена\r\n* `1` - Ставка не найдена\r\n* `2` - Время на отмену ставки прошло\r\n* `3` - Аукцион не найден\r\n* `4` - Аукцион завершен\r\n* `5` - Ставка удалена уже есть другие ставки",
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          -1
        ],
        "format": "int32",
        "type": "integer"
      },
      "AuctionRateState": {
        "description": "Статус ставки\r\n\r\n* `-8` - Грузоотправитель отклонил документ\r\n* `-7` - Победитель отклонил документ\r\n* `-6` - Победитель отменил сделку\r\n* `-5` - Грузовладелец отменил сделку\r\n* `-4` - Победитель отказался, теперь его нельзя выбрать больше в качестве победителя\r\n* `-3` - Бывший победитель\r\n* `-2` - Перевозчик отказался от участия\r\n* `0` - Непобедная ставка при завершении Торгов (аукциона)\r\n* `1` - Победная ставка",
        "enum": [
          0,
          1,
          -8,
          -7,
          -6,
          -5,
          -4,
          -3,
          -2
        ],
        "format": "int32",
        "type": "integer"
      },
      "AuctionRateStatusOfTaker": {
        "description": "Статус ставки после выставления",
        "properties": {
          "auction": {
            "$ref": "#/components/schemas/AuctionOfTaker"
          },
          "auction_end_date": {
            "description": "Параметр устарел, используйте auction.end_date. Дата окончания Торгов (аукциона).",
            "example": "2019-03-11T10:08:03.2530000+00:00",
            "format": "date-time",
            "type": "string"
          },
          "result_status": {
            "$ref": "#/components/schemas/AuctionRateBetStatus"
          }
        },
        "type": "object"
      },
      "AuctionRestartParams": {
        "description": "Параметры перезапуска торгов",
        "properties": {
          "auction_finish_action": {
            "$ref": "#/components/schemas/AuctionFinishAction"
          },
          "current_change_winner_count": {
            "description": "Оставшееся количество попыток выбора нового победителя",
            "format": "int32",
            "type": "integer"
          },
          "current_restart_count": {
            "description": "Оставшееся количество попыток перезапуска торгов",
            "format": "int32",
            "type": "integer"
          },
          "duration_after_restart": {
            "description": "Длительность торгов в минутах после перезапуска",
            "format": "int32",
            "type": "integer"
          },
          "init_change_winner_count": {
            "description": "Начальное количество попыток выбора нового победителя",
            "format": "int32",
            "type": "integer"
          },
          "init_restart_count": {
            "description": "Начальное количество попыток перезапуска торгов",
            "format": "int32",
            "type": "integer"
          },
          "is_manually_restarted": {
            "description": "Параметр, показывающий, был ли последний перезапуск выбран вручную",
            "type": "boolean"
          },
          "rate_increase": {
            "description": "Повышение ставки при перезапуске",
            "format": "double",
            "type": "number"
          },
          "rate_increase_option": {
            "$ref": "#/components/schemas/RateIncreaseOption"
          }
        },
        "type": "object"
      },
      "AuctionState": {
        "description": "Статус аукциона\r\n\r\n* `-100` - Не удалось определить состояние аукциона\r\n* `-14` - Аукцион отменён вручную грузовладельцем\r\n* `-13` - Аукцион удалён, т.к. расторгнут заказ\r\n* `-12` - Аукцион без ставок завершён\r\n* `-11` - Аукцион удалён автоматически\r\n*  `-10` - Аукцион удалён т.к. сделка завершена\r\n* `-9` - Аукцион удалён\r\n* `-8` - При включённом копировании грузов: ожидается действие от экспедитора в случае, когда заказ с победителем отменён, других участников нет\r\n* `-7` - При включённом копировании грузов: ожидается действие с торгами от экспедитора в случае, когда заказ с победителем отменён и есть потенциальный победитель\r\n* `-6` - При включённом копировании грузов: торги завершены, экспедитор не является победителем\r\n* `-5` - Одна ставка лучшая по цене, другая по дате\r\n* `-4` - Закончился, но победитель вовремя не взял груз и при этом есть еще возможные победители\r\n* `-3` - Закончился, но победитель вовремя не взял груз и при этом он единственный возможный победитель\r\n* `-2` - Закончился, ждем когда победитель возьмёт груз\r\n* `-1` - Закончился, ставок нет\r\n* `0` - Идет, ставок нет\r\n* `1` - Идёт (уже есть валидные ставки)",
        "enum": [
          0,
          1,
          -100,
          -14,
          -13,
          -12,
          -11,
          -10,
          -9,
          -8,
          -7,
          -6,
          -5,
          -4,
          -3,
          -2,
          -1
        ],
        "format": "int32",
        "type": "integer"
      },
      "RateIncreaseOption": {
        "description": "Способ повышения ставки\r\n* `1` — Повышение ставки в валюте\r\n* `2` — Повышение ставки в процентах",
        "enum": [
          1,
          2
        ],
        "format": "int32",
        "type": "integer"
      },
      "RateSource": {
        "description": "Система, на стороне которой сделана ставка",
        "enum": [
          0,
          1
        ],
        "format": "int32",
        "type": "integer"
      },
      "WinnerCriteria": {
        "description": "Критерий победы в аукционе\r\n\r\n* `0` - Выбор победителя происходит автоматически по лучшей ставке\r\n* `1` - Выбор победителя  происходит по ставке и дате загрузки. Если нет лучшей ставки с лучшей датой - требуется выбор победителя вручную",
        "enum": [
          0,
          1
        ],
        "format": "int32",
        "type": "integer"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Authorization: Bearer {authorizationToken}"
      }
    }
  }
}