curl -X POST https dev dmigom ru api v1 user -H Accept application jso

 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
curl -X POST \
https://dev.dmigom.ru/api/v1/user \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvcmVnaXN0ZXIiLCJpYXQiOjE1NTU0MDAxOTAsImV4cCI6MTU1NTQwMzc5MCwibmJmIjoxNTU1NDAwMTkwLCJqdGkiOiJXaXMyRHZ2OFE0QUJQZlhhIiwic3ViIjoyNTAsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.9wFxXTCMXU-kUoGCVIL451I1w2D2gusPJ-Rw0BB6LEc' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: f3f6cfec-249b-47e2-889d-eaaa54b644f9' \
-H 'cache-control: no-cache' \
-d '{
"user": {
"patronymic": "Григорьевич",
"registration_flat": "13",
"income_amount": "",
"residential_region": "г Москва",
"first_name": "Леонид",
"registration_housing": "",
"residential_house": "86",
"registration_region": "г Москва",
"img": "/css/images/profile.png",
"birthdate": "16.04.1981",
"id": 250,
"registration_city": "Москва",
"passport_series": "1258",
"gender": 1,
"work_place": "",
"residential_city": "Москва",
"passport_number": "224057",
"email": "boyko@test.com",
"work_phone": "",
"passport_issued_by": "Выдан 125 отделением милиции г. Москвы",
"income_source": "",
"owner_id": "",
"passport_issue_date": "25.04.2016",
"registration_street": "ул Чагинская",
"number_children": "0",
"residential_street": "ул Чагинская",
"work_position": "",
"residential_housing": "",
"incoming": "1",
"residential_flat": "13",
"registration_house": "86",
"surname": "Бойко",
"passport_code": "125125"
},
"card_number": "",
"get_money_type": "0"
}'
// RESPONSE
{
"success": false,
"error": {
"message": "Internal Server Error",
"data": {
"exception_message": "Ошибка при создании заявки",
"exception_code": 0
},
"localized_message": "Внутренняя ошибка сервера"
}
}