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