1b.app
Link copied -

Hello Integration, Bug

Greetings,
The parcel went to the wrong department of the NP (even the area is not the right one), please fix it.
Why was the TTN block filled incorrectly?
https://oskarstore.crm-onebox.com/admin/customorder/order/8099/edit/
Original order address:
Nikolaev, Warehouse №1: ave. Heroes of Ukraine (early avenue Heroes of Stalingrad), 13
Original question is available on version: ru

Answers:

A small clarification, the area is the same, but the city is not the same. Nikolaev, not Nikolaevka!
22.12.2021, 11:45
Original comment available on version: ru

Hello, the problem is due to the fact that the address information does not come in the exact format in which the settlements are stored in the directories of the NP box
In particular, when updating NP directories, regions are saved in Ukrainian, and from allo they come in Russian
https://oskarstore.crm-onebox.com/admin/shop/custom/object/directory/2/?street=&... BE%D0%BB%D0%B0%D0%B5%D0%B2&cityRef=&areaName=&ok=%D0%A4%D0%B8%D0%BB%D1%8C%D1%82%D1%80%D0%BE %D0%B2%D0%B0%D1%82%D1%8C
Nikolaev as a regional center is stored without a region in the name field, in general, the action found the first settlement that came across by partial coincidence in the database in the format Nikolaev% Nikolaevskaya%
those. Nikolaevka .... Nikolaevskaya is suitable
Here's what came to the address of the order from Allo
"shipping":{
"type":"To "Nova Poshta" office",
"shipping_id":"4",
"city":"Nikolaev",
"region_name":"Nikolaevskaya",
"city_uid":"68CF2798-749B-11DF-B112-00215AEE3EBE",
"price":"Check with seller",
"tracking_number":"59000773406277",
"stock":{
"name":"Warehouse No. 1: avenue of Heroes of Ukraine (early avenue of Heroes of Stalingrad), 13",
"stock_number":"NP35"
}
}
I can partially fix the problem so that the search takes into account the exact ending of the name of the settlement, but this will not completely eliminate the problem
Also, pay attention to the city_uid field, there may be such a field in OneBox, but it refers to city id from MeestExpress
Compare with cityref db5c888c-391c-11dd-90d9-001a92567626 from NP
If Allo, when transferring the type of delivery, Nova Poshta would transfer the cityref of the city, as it is stored in NP directories, this would simplify the task
23.12.2021, 15:10
Original comment available on version: ru

Greetings,
Unfortunately, I can not influence Hello, they transmit in the format in which they transmit. I wrote them a letter, but there will be zero sense.
Let's please look for an exact match, after all, Nikolaev and Nikolaevka are different settlements. Accordingly, the match by the name of the settlement must be complete.
23.12.2021, 23:33
Original comment available on version: ru

Corrected the logic for processing addresses, check if everything works correctly?
30.12.2021, 16:46
Original comment available on version: ru


Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment