General information about Request
API | |
Protocol | HTTP |
Method | Only POST |
Content-Type | application/json |
Authorization | Bearer token |
token: : receive from bank after signing the merchant contract
Response
Status | Description |
200 | Successful, a json-formatted value of the function is received. |
400 | Bad request, dissatisfied the requirements for the function call up. |
403 | A blank value is returned if Header authorization is not set or incorrect, or blank token is sent |
500 | System error |
Value at 400 and 500
Paraneter definitions
Parameter | Type | Definition |
timestamp | String | Date of action |
status | Integer | Error type value. 400 403 500 |
error | String | Error type description. Validation NotFound Internal Forbidden types are returned |
message | String | Error details |
path | String | Path of the called function |
Example
{
"timestamp": "2020-06-02T10:51:56.359+0000",
"status": 400,
"error": "Validation",
"message": "returnType is missing.",
"path": "/api/invoice"
}
{
"timestamp": "2020-06-02T10:51:56.359+0000",
"status": 400,
"error": "NotFound",
"message": "Payment not found",
"path": "/api/inquiry"
}
{
"timestamp": "2020-06-02T10:51:56.359+0000",
"status": 500,
"error": "Internal",
"message": "SQL exception",
"path": "/api/pay"
}
{
"timestamp": "2020-06-02T10:51:56.359+0000",
"status": 403,
"error": "Forbidden",
"message": "Access Denied",
"path": "/api/pay"
}