A
A
Aljo2021-11-06 23:23:43
API
Aljo, 2021-11-06 23:23:43

Why does it give a 400 Bad Request error when requesting https://otpravka-api.pochta.ru/1.0/clean/address?

Hello!

I did everything according to this example from the Russian Post API documentation.

Screenshot from SoapUI
6186e2ef094bb465473821.jpeg


As a result, the answer I get is not what I expected.
Who worked with this API, please tell me what could be the reason?
The token is 100% correct - I took it from my personal account. spaces in place. The key was generated by them

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2021-11-07
@aljo222

In the bottom left corner you have Request Params.
There, in Encoding, you need to select UTF-8 (if you have not selected it, of course). Those. in addition to what is indicated in the header, you must also explicitly specify it in the parameters.
If selected, then there is an error in the request/accesses. Although judging by the body of the request, everything is fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question