let
Источник = Json.Document(Web.Contents("https://etp.gpb.ru/nsi/kimapi/publicpriceorderinfo?id=" & "230940")),
#"Преобразовано в таблицу" = Record.ToTable(Источник),
#"Транспонированная таблица" = Table.Transpose(#"Преобразовано в таблицу"),
#"Повышенные заголовки" = Table.PromoteHeaders(#"Транспонированная таблица", [PromoteAllScalars=true]),
#"Измененный тип" = Table.TransformColumnTypes(#"Повышенные заголовки",{{"id", Int64.Type}, {"title", type text}, {"status", Int64.Type}, {"date_sent", type datetimezone}, {"date_delivery", type date}, {"date_response", type datetimezone}, {"delivery_conditions", type text}, {"delivery_address", type text}, {"use_price_without_nds", type logical}, {"max_price_type", Int64.Type}, {"for_small_business", type logical}, {"for_producer", type logical}, {"for_authorized_dealer", type logical}, {"russian_production", type logical}, {"national_project", type logical}, {"deny_alternative", type logical}, {"allow_edo", type logical}, {"customer_comment", type any}, {"customer_name", type text}, {"customer_inn", type number}, {"customer_kpp", Int64.Type}, {"customer_documents", type any}, {"positions", type any}, {"regions", type any}}),
#"Развернутый элемент positions" = Table.ExpandListColumn(#"Измененный тип", "positions"),
#"Развернутый элемент positions1" = Table.ExpandRecordColumn(#"Развернутый элемент positions", "positions", {"position_name", "quantity", "okei_code", "okei_name", "id", "max_price", "okpd2_name", "okpd2_code", "max_cost", "documents"}, {"positions.position_name", "positions.quantity", "positions.okei_code", "positions.okei_name", "positions.id", "positions.max_price", "positions.okpd2_name", "positions.okpd2_code", "positions.max_cost", "positions.documents"}),
#"Развернутый элемент positions.documents" = Table.ExpandListColumn(#"Развернутый элемент positions1", "positions.documents"),
#"Развернутый элемент regions" = Table.ExpandListColumn(#"Развернутый элемент positions.documents", "regions"),
#"Развернутый элемент regions1" = Table.ExpandRecordColumn(#"Развернутый элемент regions", "regions", {"code", "name"}, {"regions.code", "regions.name"})
in
#"Развернутый элемент regions1" |