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: Yi6ehBwKSWJTLs4zwrJPaWDy1CQYXa2tDxAm7M8zifCSJ3i9wa' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Postman-Token: 21a2d48c-5732-443e-b745-c7f2a951e9ac' \
-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:42:02 GMT
Content-Type →application/json; charset=utf-8
Content-Length →48
Connection →keep-alive
X-Request-Id →0e97a2d5-1eeb-4f8d-bfc3-337e4893bd62
X-Runtime →0.101910
{
"status": "500",
"error": "Internal Server Error"
}