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
60
61
curl -X POST \
https://dev.dmigom.ru/api/v1/user \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvbG9naW4iLCJpYXQiOjE1NTUzOTQ3NjQsImV4cCI6MTU1NTM5ODM2NCwibmJmIjoxNTU1Mzk0NzY0LCJqdGkiOiJGeFJ2OXJ5MnMzYTljQmZMIiwic3ViIjoyMTIsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.dRnhJST_7pvf9kOFBqLdLmweVF0oN9pwmjEVs0b-1bo' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 910b5691-e836-4f5f-ad73-cf0cd84a4b8c' \
-H 'cache-control: no-cache' \
-d '{
"card_number": "",
"get_money_type": "0",
"user": {
"registration_flat": "",
"number_children": "0",
"residential_flat": "",
"residential_house": "12",
"incoming": "1",
"residential_region": "г Москва",
"registration_street": "ул Арбат",
"residential_street": "ул Арбат",
"owner_id": "28FA2285-9618-43ED-B260-7C423C3F4A88",
"registration_city": "Москва",
"gender": 1,
"registration_housing": "",
"passport_series": "1234",
"income_source": "",
"work_phone": "",
"patronymic": "Тест",
"passport_issued_by": "Москва",
"surname": "тест",
"residential_city": "Москва",
"id": 212,
"snils": "",
"first_name": "Тест",
"passport_code": "123456",
"passport_issue_date": "26.03.2005",
"income_amount": "0",
"passport_number": "567890",
"registration_house": "12",
"registration_region": "г Москва",
"birthdate": "10.03.1957",
"email": "test@test.com",
"residential_housing": "",
"img": "/css/images/profile.png",
"work_place": "",
"work_position": ""
}
}'
{
"success": false,
"error": {
"message": "Internal Server Error",
"data": {
"exception_message": "Argument 3 passed to App\\Repositories\\CustomerRepository::updateAsp() must be an instance of DateTime, null given, called in /var/www/html/oz/app/Services/PersonalDataService.php on line 79",
"exception_code": 0
},
"localized_message": "Внутренняя ошибка сервера"
}
}