Answer the question
In order to leave comments, you need to log in
How do I work with the Nova Poshta API?
Good afternoon. I need to make such an order form, in which, when choosing a city, in another imput, when entering a street, hints of street names will be substituted. For this I have to use the New Mail API. Documentation
I've never done this before. The request code looks like this -
{
"modelName": "Address",
"calledMethod": "getCities",
"methodProperties": {
"Ref": "ebc0eda9-93ec-11e3-b441-0050568002cf"
},
"apiKey": "[ВАШ КЛЮЧ]"
}
{
"modelName": "Address",
"calledMethod": "getCities",
"methodProperties": {
"Ref": "ebc0eda9-93ec-11e3-b441-0050568002cf"
},
"apiKey": "[ВАШ КЛЮЧ]"
}
Answer the question
In order to leave comments, you need to log in
As I understand it, you need to add the "FindByString": "" key to the methodProperties object, enter the city you need and send the request
. It looks like this:
{
"modelName": "Address",
"calledMethod": "getCities",
"methodProperties": {
"Ref": "ebc0eda9-93ec-11e3-b441-0050568002cf",
"FindByString": Прописываете сюда город
},
"apiKey": "[ВАШ КЛЮЧ]"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question