{
"status": 0,
"message": null,
"availableAmount": 100500,
"transactionId": "ABCDEF",
"authorizationCode":"HJKPLG"
}
{ // объект для ошибки
"errorType": "no_money",
"message": "Not enough money. Pls earn more",
"availableAmount": 100500,
}
{ // объект успешного ответа
"transactionId": "ABCDEF",
"authorizationCode":"HJKPLG",
"availableAmount": 100500,
}
{ // объект для ошибки, когда нам не хватило деняк с указанием доступного остатка
"errorType": "no_money",
"message": "Not enough money. Pls earn more",
"availableAmount": 100500,
}
{ // объект для ошибки, когда счёт клиента оказался заблокированным, с указанием причины блокировки
"errorType": "accout_locked",
"message": "Account locked",
"reason": "fraud",
}
{
"paymentStatus": 0,
}
{
"paymentStatus": "IN_PROGRESS",
}
{
"creationDate": "2011-01-01",
}
{
"creationDateIso": "2011-01-01",
}
{
"duration": 100500",
}
{
"durationMs": "100500",
}
{
"weeklyResults": [
{
"result": "Light and dark separated"
},
{
"result": "Sky and soil"
},
{
"result": "Land, sea and plants"
},
{
"result": "Stars and Sun"
},
{
"result": "Fish, lizards and birds"
},
{
"result": "Mammals, inc. humans"
},
{
"result": "Rest and debugging"
}
]
}
{
"weeklyResults": {
"2001-01-01": {
"result": "Light and dark separated"
},
"2001-01-02": {
"result": "Sky and soil"
},
"2001-01-03": {
"result": "Land, sea and plants"
},
"2001-01-04": {
"result": "Stars and Sun"
},
"2001-01-05": {
"result": "Fish, lizards and birds"
},
"2001-01-06": {
"result": "Mammals, inc. humans"
},
"2001-01-07": {
"result": "Rest and debugging"
}
}
}
HTTP 400
{
"errorType":"validation_error"
}
HTTP 400
{
"errorType": "validation_error",
"fields": [
{
"name": "serialNumber",
"error": "must_not_be_null"
}
]
}
{
"errorType":"internal_error",
"errorId": "0813cb70-8563-4cfa-883d-0e730b46f0f1"
}