curl -X POST https test-mobileapps siroccotechnology ru merchant_api I

 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
curl -X POST \
https://test-mobileapps.siroccotechnology.ru/merchant_api/InitPayment \
-H 'Accept: application/json' \
-H 'Accept-Language: en-us' \
-H 'Authorization: lefI78hKtUC4xsXCf4bOkjeMCo47xAX6vmNoPkTvleGSteqq1J' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Postman-Token: f416409a-e8bd-494d-90ec-949bd6cfe35d' \
-H 'cache-control: no-cache' \
-d '{
"AdditionalData": {
"FailUrl": "cott://fail",
"ReturnUrl": "cott://success"
},
"PaymentParams": {
"Type": "bank"
},
"TicketParams": {
"ID": "170",
"PrintID": "0039458963",
"Sum": "1100"
}
}'
Server →nginx/1.10.3
Date →Tue, 29 Jan 2019 11:48:15 GMT
Content-Type →application/json; charset=utf-8
Content-Length →48
Connection →keep-alive
X-Request-Id →cd488497-a9db-4a70-9cd3-f605e0549606
X-Runtime →0.056636
{
"status": "500",
"error": "Internal Server Error"
}