Выгрузка Backoffice для отелей

Выгрузка Backoffice для отелей

Параметры

Описания всех параметров можно найти в разделе Экспорт заказа.

Пример выгрузки

{
   "method":"export",
   "apiVersion":"1.0",
   "params":{
      "type":"order",
      "id":1122334
   },
   "data":{
      "system":"PROD",
      "orderType":"hotels",
      "id":1122334,
      "lastModifiedDate":"2018-01-29T18:12:00.000Z",
      "currentServerDate":"2018-01-29T18:12:00.000Z",
      "customer":{
         "userId":111111,
         "agencyId":111111,
         "companyId":111111,
         "backofficeCompanyId":null,
         "name":"Lastname Name",
         "phone":"+78005553535",
         "email":"randommailname@gmail.com"
      },
      "passengers":{
         "ID_PAS_1":{
            "lastName":"LASTNAME",
            "firstName":"NAME",
            "middleName":null,
            "gender":"M",
            "birthDate":"1999-01-01",
            "nationality":"RU",
            "docType":null,
            "docNumber":"",
            "phone":"",
            "email":"randommailname@gmail.com"
         },
         "ID_PAS_2":{
            "lastName":"LASTNAME",
            "firstName":"NAME",
            "middleName":null,
            "gender":"M",
            "birthDate":"1999-01-01",
            "nationality":"RU",
            "docType":null,
            "docNumber":"",
            "phone":"",
            "email":"randommailname@gmail.com"
         }
      },
      "products":{
         "ID_HTL_1":{
            "info":{
               "nemo":{
                  "hotelId":"1122330000000",
                  "searchId":249899,
                  "status":"ticket"
               },
               "nemoConnect":{
                  "system":"PROD",
                  "id":1122,
                  "status":"ticket"
               },
               "supplier":{
                  "system":"SYSTEM",
                  "id":"1122334"
               }
            },
            "dates":{
               "creation":"2018-01-29T18:12:00.000Z",
               "booking":"2018-01-29T18:12:00.000Z",
               "ticketing":"2018-01-29T18:12:00.000Z",
               "void":null,
               "cancellation":null
            },
            "rooms":[
               {
                  "number":"DBL",
                  "meal":"BED AND BREAKFAST (Bed & Breakfast)",
                  "rates":{
                     "cancelRules":[
                        {
                           "id":1122330000000,
                           "deadline":"2018-12-27T21:59:59.000Z",
                           "percentValue":0,
                           "absoluteValue":{
                              "amount":"4129.22",
                              "currency":"UAH"
                           }
                        },
                        {
                           "id":1122330000001,
                           "deadline":"2018-12-30T22:00:00.000Z",
                           "percentValue":0,
                           "absoluteValue":{
                              "amount":"1111.00",
                              "currency":"UAH"
                           }
                        }
                     ]
                  }
               }
            ],
            "pricingInfo":{
               "ID_PCG_1":{
                  "ID_ROOM_1":{
                     "rate":{
                        "price":{
                           "amount":"1110.00",
                           "currency":"UAH"
                        }
                     }
                  }
               }
            }
         }
      },
      "price":{
         "amount":"1111.00",
         "currency":"UAH",
         "components":{
            "products":{
               "amount":"1110.00",
               "currency":"UAH",
               "components":{
                  "ID_HTL_1":{
                     "amount":"1110.00",
                     "currency":"UAH"
                  }
               }
            },
            "charges":{
               "amount":"1.00",
               "currency":"UAH",
               "components":{
                  "agencyProfit":{
                     "amount":"1.00",
                     "currency":"UAH",
                     "components":{
                        "pricingMarkup":{
                           "amount":"0.00",
                           "currency":"UAH"
                        },
                        "fixingPriceMarkup":{
                           "amount":"0.00",
                           "currency":"UAH"
                        },
                        "problemDiscount":{
                           "amount":"0.00",
                           "currency":"UAH"
                        },
                        "subagentDiscount":{
                           "amount":"0.00",
                           "currency":"UAH"
                        },
                        "promoDiscount":{
                           "amount":"0.00",
                           "currency":"UAH"
                        },
                        "roundingMarkup":{
                           "amount":"1.00",
                           "currency":"UAH"
                        }
                     }
                  },
                  "subagencyProfit":{
                     "amount":"0.00",
                     "currency":"UAH"
                  },
                  "gatewayProfit":{
                     "amount":"0.00",
                     "currency":"UAH"
                  }
               }
            }
         }
      },
      "payments":{
         "ID_PAY_1":{
            "id":"111111111",
            "gatewayId":"11",
            "methodId":2222,
            "name":"Pay by card",
            "status":"paid",
            "paymentDate":"2018-01-29T18:12:00.000Z",
            "moneyPaid":{
               "amount":"1111.00",
               "currency":"UAH"
            },
            "moneyFixed":{
               "amount":"1111.00",
               "currency":"UAH"
            }
         }
      },
      "documents":[
      ],
      "linkedOrders":{
         "splitted":[
         ],
         "mainOrderId":null,
         "multiOrderEnvelope":null,
         "exchangeClaims":[
         ],
         "returnClaims":[
         ]
      }
   }
}