---Получение информации по всем безоговорочным сделкам

Описание

Позволяет получить информацию по всем безоговорочным сделкам.

Структура URL

HTTP метод: GET, ресурс: <base_url>/loads/fixedrate

Список параметров

 

Название
Способ передачи параметра
Обязательный
Описание
stURL-

Список статусов у получаемых сделок.

Если не указан, то вернутся все.


Результат

Список объектов с полной информацией по сделке.

Список всех параметров безоговорочной сделки с их описанием:  "Полная информация по безоговорочной сделке".

Пример запроса и ответа

Запрос

 GET, http://api.ati.su/loads/fixedrate?st=a6c782cb-2358-e811-80c1-0030487d29e5

 

Ответ

[{
   "Load":{
      "Id":"a6c782cb-2358-e811-80c1-0030487d29e5",
      "UpdatedAt":"2018-05-15T09:38:52.263Z",
      "AddedAt":"2018-05-15T09:38:52.263Z",
      "ArchiveDate":"2018-05-15T09:39:00.653Z",
      "Distance":365,
      "Zimnik":false,
      "Ferries":false,
      "TruePrice":0,
      "TrueCurrencyId":0,
      "ResponseCount":0,
      "OfferCount":0,
      "SmsEnabled":false,
      "InsuredMinTariff":0.0,
      "CanBeDeleted":false,
      "CanBeEdited":false,
      "CanBeRenewed":false,
      "CanBeRestored":false,
      "EditRestriction":2,
      "DeleteRestriction":2,
      "RestoreRestriction":2,
      "RenewRestriction":"Груз зарезервирован/взят, операции с грузом запрещены",
      "ParentId":"8518cd67-475b-4925-8dc6-96e60c744b2d",
      "LoadIdForAuction":"8518cd67-475b-4925-8dc6-96e60c744b2d",
      "IsUnpublished":true,
      "FirmId":100074010,
      "ContactId1":0,
      "ContactId2":null,
      "Note":"",
      "FirstDate":"2018-05-15T00:00:00Z",
      "LastDate":"2018-05-15T00:00:00Z",
      "DateType":0,
      "PeriodicityId":0,
      "Krugoreis":false,
      "Loading":{
         "CityId":27,
         "Latitude":null,
         "Longitude":null,
         "Street":"",
         "TimeStart":null,
         "TimeEnd":null,
         "LargeCities":[
            230,
            198
         ],
         "LargeCitiesWithDistance":[
            {
               "CityId":230,
               "Distance":0.0
            },
            {
               "CityId":198,
               "Distance":0.0
            }
         ]
      },
      "ExtraPoints":[
      ],
      "Unloading":{
         "CityId":25,
         "Latitude":null,
         "Longitude":null,
         "Street":"",
         "TimeStart":null,
         "TimeEnd":null,
         "LargeCities":[
            138,
            251,
            1165
         ],
         "LargeCitiesWithDistance":[
            {
               "CityId":138,
               "Distance":0.0
            },
            {
               "CityId":251,
               "Distance":0.0
            },
            {
               "CityId":1165,
               "Distance":0.0
            }
         ]
      },
      "Cargo":{
         "Weight":216.0,
         "Volume":0.0,
         "ADR":0,
         "CargoTypeId":1,
         "CargoType":"",
         "PackType":0,
         "PalletCount":0,
         "BeltCount":0,
         "DogruzType":1,
         "SborGruz":false,
         "Size":{
            "Length":0.0,
            "Width":0.0,
            "Height":0.0,
            "LengthHighlight":false,
            "WidthHighlight":false,
            "HeightHighlight":false
         }
      },
      "Transport":{
         "CarType":1,
         "LoadingType":0,
         "LoadingLogicalOperator":"OR",
         "UnloadingType":0,
         "UnloadingLogicalOperator":"OR",
         "TrucksQuantity":1,
         "TemperatureFrom":null,
         "TemperatureTo":null,
         "Stsepka":false,
         "Pnevmohod":false,
         "Koniki":false,
         "TIR":false,
         "CMR":false,
         "T1":false,
         "SanPassport":false
      },
      "Payment":{
         "CurrencyId":1,
         "MoneyType":22,
         "RateSum":216.0000,
         "SumWithNDS":0.0000,
         "SumWithoutNDS":0.0000,
         "PrepayPercent":0,
         "PrepayPercentEnabled":false,
         "PayDays":0,
         "PayDaysEnabled":false,
         "FixedRate":true,
         "Torg":false,
         "DirectContract":false,
         "OnUnloading":false
      },
      "PriorityView":null,
      "Stealth":null,
      "Deal":{
         "DealType":1,
         "FixedRates":[
            {
               "DealId":"afc782cb-2358-e811-80c1-0030487d29e5",
               "Status":3,
               "DealKind":1,
               "Details":null,
               "TakerAccount":null
            }
         ]
      },
      "Boards":[
         {
            "BoardId":"5889f330d3df9559444e5319",
            "PublicationTime":"2018-05-15T09:38:52.21Z",
            "PublicationOption":0,
            "IsPublished":false,
            "IsCommonBoard":false
         },
         {
            "BoardId":"a0a0a0a0a0a0a0a0a0a0a0a0",
            "PublicationTime":"2018-05-15T09:38:52.21Z",
            "PublicationOption":0,
            "IsPublished":false,
            "IsCommonBoard":true
         }
      ]
   },
   "Account":{
      "AccountId":100074010,
      "ContactId":null,
      "FullFirmName":"loadExp3, ИП",
      "FirmName":"loadExp3",
      "Brand":"",
      "Ownership":"ИП",
      "OwnershipId":4,
      "Location":null,
      "Address":"",
      "Inn":null,
      "TimeZoneMinutes":-180,
      "IsRrd":false,
      "LoadsAccess":3,
      "ClaimsSum":0.0,
      "ClaimsCount":0,
      "BadPartnerMentionsCount":0,
      "BadPartnerFirmsCount":0,
      "FirmTypeId":5,
      "FirmType":"Экспедитор-перевозчик",
      "RecommendationCount":0,
      "Passport":{
         "TotalScore":0.0,
         "ATIDataMatchPoint":0.0,
         "AccountLifetimePoint":0.0,
         "BusinessActivityPoint":0.0,
         "RoundTablePoint":0.0,
         "ClaimPoint":0.0,
         "ProfActivityPoint":0.0,
         "ATIAdministrationPoint":0.0,
         "ClonesPoint":0.0,
         "EGRPoint":0.0,
         "MassRegistrationPoint":0.0,
         "MassFounderPoint":0.0,
         "FirmLifetimePoint":0.0,
         "Status":2,
         "StatusDescription":"Отсутствует балл \"Данные фирмы в АТИ совпадают с настоящими данными фирмы\""
      },
      "PaidServices":null,
      "Contacts":[
         {
            "Id":0,
            "Name":"Contact",
            "Telephone":"",
            "TelephoneBrand":null,
            "TelephoneRegion":null,
            "Email":"admin1294@mail.ru",
            "Icq":"",
            "Mobile":"",
            "MobileBrand":null,
            "MobileRegion":null,
            "SkypeName":"",
            "Fax":"",
            "MobileOperator":null,
            "RegionId":null,
            "AccessRights":0,
            "Location":null,
            "IsVisibled":true,
            "IsEmailVisibled":true,
            "IsManager":false,
            "CanWorkWithOwnLoad":false,
            "CanWorkWithOtherLoad":false,
            "CanTakeLoad":false,
            "CanWorkWithBoards":false
         }
      ]
   },
   "Deal":{
      "DealLoadId":"a6c782cb-2358-e811-80c1-0030487d29e5",
      "TakerAtiId":"10007402",
      "TakerContactId":0,
      "RateType":1,
      "UpdatedAt":"2018-05-17T07:45:46.61Z",
      "StartedAt":null,
      "FinishedAt":null,
      "Status":3,
      "DenialReason":null,
      "IsViewed":false,
      "DealId":"afc782cb-2358-e811-80c1-0030487d29e5",
      "LoadId":"8518cd67-475b-4925-8dc6-96e60c744b2d",
      "SignerId":"3a9e57d6-2358-e811-80c1-0030487d29e5",
      "Driver":{
         "FirstName":"firstName",
         "SecondName":"secondName",
         "Patronymic":"patronymic",
         "PhoneNumber":"313-44-55",
         "DriverLicenseNumber":"625-55-655",
         "PassportSeries":"40 50",
         "PassportNumber":"3309752",
         "PassportIssuedBy":"Выдан ТП №200 по Какому-то региону какой-то области",
         "PassportWhenIssued":"2016-06-29T00:00:00",
         "Registration":"Где-то там",
         "IsAttractedDriver":true,
         "Description":"secondName firstName patronymic",
         "AttractedFrom":null,
         "ModificationRestricted":false,
         "Scans":[
         ]
      },
      "Truck":{
         "LastDealRelatedId":null,
         "Type":1,
         "Description":"тарантас",
         "BrandId":1,
         "Model":"modelmodhjljhelmodel",
         "Number":"NUMBERNUKRNUMBERNU",
         "IsAttractedTruck":false,
         "CarTypeId":10700,
         "Capacity":4.0,
         "Volume":20.0,
         "Length":5.0,
         "Width":3.0,
         "Height":1.0,
         "ManufactureYear":null,
         "ModificationRestricted":false,
         "HiddenInFirmInfo":false,
         "Scans":[
         ]
      },
      "Trailer":null,
      "SemiTrailer":null,
      "DocumentInfo":{
         "Id":"062154ba4c4d4f9a914a7f0c376b2526",
         "OldId":null,
         "Editor":null,
         "Url":"http://d.ati.docs/document/062154ba4c4d4f9a914a7f0c376b2526/",
         "OldUrl":null,
         "Name":"заказ (договор-заявка) от 17.05.2018",
         "IsSigned":false,
         "DocumentType":0
      },
      "Rate":216.0000,
      "Currency":1,
      "MoneyType":22,
      "Documents":[
      ]
   }
}]

Список ответов сервера 

Код ответаСообщение
200Операция завершена успешно
401Требуется авторизация
403Не хватает прав доступа
404Фиксированная ставка не найдена