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