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
curl -X POST \
https://dev.dmigom.ru/api/v2/auth/address \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvcmVnaXN0ZXIiLCJpYXQiOjE1NTMwODM0MjksImV4cCI6MTU1MzA4NzAyOSwibmJmIjoxNTUzMDgzNDI5LCJqdGkiOiJLSWl4Nk80VG9oZnc3aWlJIiwic3ViIjoyMjAsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.Z_AzeYPPHlUwscSfbyyaBbp9-NAVKmVKHi7COWsBKiA' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 433063b4-80fc-4165-bd7f-c77dce765835' \
-H 'cache-control: no-cache' \
-d '{
"is_addr_reg": 1,
"factaddr": {
"housing": "",
"city": "г Москва",
"street": "ул Арбат",
"flat": "",
"house": "10",
"building": ""},
"regaddr": {
"housing": "",
"city": "г Москва",
"street": "ул Арбат",
"flat": "",
"house": "10",
"building": ""
}
}'
{
"success": false,
"error": {
"message": "Unprocessable Entity",
"data": {
"regaddr.flat": [
"validation.required"
]
}
}
}