curl -X POST https dev dmigom ru api v2 auth verify -H Accept applicat

  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
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
curl -X POST \
https://dev.dmigom.ru/api/v2/auth/verify \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 167891ef-1bdc-4c37-87a6-bcf945877187' \
-H 'cache-control: no-cache' \
-d '{
"firstname": "тест",
"surname": "тест",
"patronymic": "тест",
"phone": "+79990001122"
}'
{
"success": true,
"data": {
"user_exists": true
}
}
curl -X POST \
https://dev.dmigom.ru/api/v2/auth/login \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Postman-Token: 36df4f43-214f-4fc6-83a0-c661ec77e826' \
-H 'cache-control: no-cache' \
-d 'phone=%2B79990001122&code=1111&undefined='
{
"success": true,
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvbG9naW4iLCJpYXQiOjE1NTQ0Njc1NjgsImV4cCI6MTU1NDQ3MTE2OCwibmJmIjoxNTU0NDY3NTY4LCJqdGkiOiIyVUlNSkcyMkVwdVNVajhNIiwic3ViIjoyMTIsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.zFnnSSR3gi_ThP2BT_E7gt4y5y-4Sz2swrWu2umy_Qo",
"expires_in": 3600
}
}
curl -X GET \
https://dev.dmigom.ru/api/v1/new/loan/options \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvbG9naW4iLCJpYXQiOjE1NTQ0Njc1NjgsImV4cCI6MTU1NDQ3MTE2OCwibmJmIjoxNTU0NDY3NTY4LCJqdGkiOiIyVUlNSkcyMkVwdVNVajhNIiwic3ViIjoyMTIsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.zFnnSSR3gi_ThP2BT_E7gt4y5y-4Sz2swrWu2umy_Qo' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 1118c1e1-3dc5-4bc0-b892-1181b283f30b' \
-H 'cache-control: no-cache'
{
"success": true,
"data": {
"id": 8,
"stamp": "2018-06-25 08:48:05.503",
"loan_type": "0",
"bdate": "2018-06-24",
"edate": null,
"zeroday": "0",
"requireddays": "0",
"limitcreditrate": "3.000",
"percentrateval": "2.000",
"penaltyrateval": "2.000",
"penaltytype": "3",
"penaltyoncerateval": ".000",
"creditpercentperiodtype": "0",
"creditpenaltyperiodtype": "0",
"creditpercentperiodval": "1",
"creditpenaltyperiodval": "1",
"debetpercentperiodtype": "0",
"debetpenaltyperiodtype": "0",
"debetpercentperiodval": "16",
"debetpenaltyperiodval": "1",
"minbasicval": "1000.000",
"maxbasicval": "20000.000",
"minpercentbasicval": ".000",
"prolongationtype": "1",
"penaltydebtrateval": null,
"penaltydebttype": null,
"creditpenaltydebtperiodtype": null,
"creditpenaltydebtperiodval": null,
"debetpenaltydebtperiodtype": null,
"debetpenaltydebtperiodval": null
}
}
curl -X POST \
https://dev.dmigom.ru/api/v1/send/request \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LmRtaWdvbS5ydVwvYXBpXC92MlwvYXV0aFwvbG9naW4iLCJpYXQiOjE1NTQ0Njc1NjgsImV4cCI6MTU1NDQ3MTE2OCwibmJmIjoxNTU0NDY3NTY4LCJqdGkiOiIyVUlNSkcyMkVwdVNVajhNIiwic3ViIjoyMTIsInBydiI6IjY5MTJlZWNkNDdjNzkyNmViZDY2MTUyMmUxYWRmNjU3NDYwOGRkYWQifQ.zFnnSSR3gi_ThP2BT_E7gt4y5y-4Sz2swrWu2umy_Qo' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 55370f09-796a-4405-8340-e7fc4335466f' \
-H 'cache-control: no-cache' \
-d '{
"get_money_type": 0,
"credit_term": 1,
"amount_credit": 1000
}'
{
"success": false,
"error": {
"message": "Internal Server Error",
"data": {
"exception_message": "HAS_OPENED_REQUEST",
"exception_code": 0
}
}
}