Данные ЭМВ отправляются в виде двоичных данных.
https://localhost:9094/api/v1/ticket/{uuid}/ts/data
POST
uuid | String | Идентификатор сессии |
Content-Type | application/octet-stream |
Код ответа | Content-type | Допустимые параметры | Пример содержимого |
---|---|---|---|
200 | application/json | message | { |
503 | application/json | message | { |
400 | application/json | message | { |
500 | application/json | message failureCause | { |
Параметр | Тип данных | Описание |
---|---|---|
message | String | Описание результата проведения операции |
failureCause | String | Описание причины возникновения ошибки |
$.ajax({ url: "https://localhost:9094/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/ts/data", type: "POST", contentType: "application/octet-stream", processData: false, data: rawData }).done(function (jsonResponse, textStatus, xhr) { message = jsonResponse.message; }).fail(function (xhr) { try { var jsonResponse = JSON.parse(xhr.responseText); message = jsonResponse.message; failureCause = jsonResponse.failureCause; } catch (e) { message = (xhr.responseText == undefined) ? "Ошибка при загрузке данных ЭМВ." : xhr.responseText; } }) |