curl -X POST https dev dmigom ru api v2 auth address -H Accept applica

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
curl -X POST \
https://dev.dmigom.ru/api/v2/auth/address \
-H 'Accept: application/json' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvcmVnaXN0ZXIiLCJpYXQiOjE1NjY0NjcyNTcsImV4cCI6MTU2NjQ3MDg1NywibmJmIjoxNTY2NDY3MjU3LCJqdGkiOiJ4VXhRNUNteU9kdHhLQ0x0Iiwic3ViIjoxMDkwMDEsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.HehVz-ZzgX7bgvRZR2lp0f8hABA6nNlOUx-2u_SA3N0' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 422' \
-H 'Content-Type: application/json' \
-H 'Host: dev.dmigom.ru' \
-H 'Postman-Token: c899e89b-9cdb-4dd8-9c62-867987bc207c,867972c0-aa21-42eb-945c-32ebe110a447' \
-H 'User-Agent: PostmanRuntime/7.15.2' \
-H 'cache-control: no-cache' \
-d '{
"factaddr": {
"building": "",
"housing": "1",
"flat": "5",
"city": "г Набережные Челны",
"house": "34",
"street": "Автозаводский пр-кт"
},
"regaddr": {
"building": "",
"housing": "1",
"flat": "5",
"city": "г Набережные Челны",
"house": "34",
"street": "Автозаводский пр-кт"
},
"is_addr_reg": 1
}
'
// RESPONSE
{
"success": false,
"error": {
"message": "Bad Request",
"data": [],
"localized_message": "Вы ввели не существующий или сомнительный адрес регистрации, свяжитесь со специалистами по номеру 8-800-333-55-66"
}
}