Описание методов API сервиса подписания МИГ24
Авторизация
Асинхронные методы работы с сервисом
ResponseId - Идентификатор ответа
RequestId - Идентификатор запроса
CreationDateTime - Дата и время UTCв формате [yyyy-MM-dd HH:mm:ss.ffffff]
RequestType - Тип запроса: Mchd, Revocation, GetStatus
HttpCode - Код ответа из ЦПРР
ErrorMessage - Ошибка из ЦПРР
MchdNumber - Номер МЧД
MchdStatus - Статус ответа
MchdStatusRus - Статус ответа на русском языке
ContentType - Тип контента (application/zip)
MchdFileId - Идентификатор файла архив МЧД
IsDeleted - Отмечен удаленным из очереди ответов
Удаленное подписание
Работа с файлами, загруженными в сервис
Визуализация КЭП на PDF
Проверка электронной подписи
Формирование электронной подписи
{
"Token": "e2fe5f06-72b7-484c-ae05-b4fd59ce4058",
"Files": [
"524a5490-88be-4bbe-bad6-487a97296789"
],
"StampId": "61501264-cdcf-45b5-9eb6-300bf61cbbbf",
"Certificate": "MIIITTCCB/qgAwIBAgIQAdf8oJFxL8AAAAALOB0AAjAKBggqhQMHAQEDAjCCAbkxNTAzBgNVBAMMLNCQ0J4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMVgwVgYDVQQKDE/QkNC60YbQuNC+0L3QtdGA0L3QvtC1INC+0LHRidC10YHRgtCy0L4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMTAwLgYDVQQLDCfQo9C00L7RgdGC0L7QstC10YDRj9GO0YnQuNC5INGG0LXQvdGC0YAxCzAJBgNVBAYTAlJVMRwwGgYDVQQIDBM3NyDQsy4g0JzQvtGB0LrQstCwMRkwFwYDVQQHDBDQsy4g0JzQvtGB0LrQstCwMRkwFwYJKoZIhvcNAQkBFgpjYUBpZWNwLnJ1MV0wWwYDVQQJDFTRg9C7LiDQoNCw0LTQuNC+LCDQtNC+0LwgMjQsINC60L7RgNC/0YPRgSAxLCDQv9C+0LzQtdGJ0LXQvdC40LUgViwg0LrQvtC80L3QsNGC0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/Qt9GMINCg0L7RgdGB0LjQuIIKM4K9QwAAAAAEsDAKBggqhQMHAQEDAgNBAPvlZ6BZQHop6H7kjyFG9A3tjoDgywwoeG1sh7IzKRk5D0zckE/QWPviPVzbWfXRJ+eQr+g0VZKqAFYOOiJEjnw=",
"SignatureCount": 1
}
POST /api/v2/sign/pdf/finish{
"Token": "e2fe5f06-72b7-484c-ae05-b4fd59ce4058",
"Files": [
{
"FileId": "524a5490-88be-4bbe-bad6-487a97296789",
"Signature": "qSwPPzK84FuYjhd1u4AxcqACFcUbPR+zWyhS/dQ56wHWt+36wsF+hK8fkMllJiCJibi+lD8eQQ5w1LQoSGVp3A=="
}
],
"CadesType": "CadesBes"
}
{
"Token": "e2fe5f06-72b7-484c-ae05-b4fd59ce4058",
"Files": [
"524a5490-88be-4bbe-bad6-487a97296789"
],
"StampId": "4b35c2b9-1451-4b47-b37c-35babff23e54",
"Certificate": "MIIITTCCB/qgAwIBAgIQAdf8oJFxL8AAAAALOB0AAjAKBggqhQMHAQEDAjCCAbkxNTAzBgNVBAMMLNCQ0J4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMVgwVgYDVQQKDE/QkNC60YbQuNC+0L3QtdGA0L3QvtC1INC+0LHRidC10YHRgtCy0L4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMTAwLgYDVQQLDCfQo9C00L7RgdGC0L7QstC10YDRj9GO0YnQuNC5INGG0LXQvdGC0YAxCzAJBgNVBAYTAlJVMRwwGgYDVQQIDBM3NyDQsy4g0JzQvtGB0LrQstCwMRkwFwYDVQQHDBDQsy4g0JzQvtGB0LrQstCwMRkwFwYJKoZIhvcNAQkBFgpjYUBpZWNwLnJ1MV0wWwYDVQQJDFTRg9C7LiDQoNCw0LTQuNC+LCDQtNC+0LwgMjQsINC60L7RgNC/0YPRgSAxLCDQv9C+0LzQtdGJ0LXQvdC40LUgViwg0LrQvtC80L3QsNGC0L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Qt9GMINCg0L7RgdGB0LjQuIIKM4K9QwAAAAAEsDAKBggqhQMHAQEDAgNBAPvlZ6BZQHop6H7kjyFG9A3tjoDgywwoeG1sh7IzKRk5D0zckE/QWPviPVzbWfXRJ+eQr+g0VZKqAFYOOiJEjnw=",
"SignatureParams": [{
"StampPosition": {
"PageNumber": 1,
"TopLeftX": 10,
"TopLeftY": 10
}
},
{
"StampPosition": {
"PageNumber": 1,
"TopLeftX": 10,
"TopLeftY": 100
}
}
]
}
POST /api/v2/sign/pdf/finish{
"Token": "e2fe5f06-72b7-484c-ae05-b4fd59ce4058",
"Files": [
{
"FileId": "524a5490-88be-4bbe-bad6-487a97296789",
"Signature": "qSwPPzK84FuYjhd1u4AxcqACFcUbPR+zWyhS/dQ56wHWt+36wsF+hK8fkMllJiCJibi+lD8eQQ5w1LQoSGVp3A=="
}
],
"CadesType": "CadesBes"
}
{
"Token": "{{$guid}}",
"Files": [
"94da88f5-984e-449e-8842-ec7600e2f030"
],
"IsInvisible": true,
"Certificate": "MIIITTCCB/qgAwIBAgIQAdf8oJFxL8AAAAALOB0AAjAKBggqhQMHAQEDAjCCAbkxNTAzBgNVBAMMLNCQ0J4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMVgwVgYDVQQKDE/QkNC60YbQuNC+0L3QtdGA0L3QvtC1INC+0LHRidC10YHRgtCy0L4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMTAwLgYDVQQLDCfQo9C00L7RgdGC0L7QstC10YDRj9GO0YnQuNC5INGG0LXQvdGC0YAxCzAJBgNVBAYTAlJVMRwwGgYDVQQIDBM3NyDQsy4g0JzQvtGB0LrQstCwMRkwFwYDVQQHDBDQsy4g0JzQvtGB0LrQstCwMRkwFwYJKoZIhvcNAQkBFgpjYUBpZWNwLnJ1MV0wWwYDVQQJDFTRg9C7LiDQoNCw0LTQuNC+LCDQtNC+0LwgMjQsINC60L7RgNC/0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MDA3NzEwNDc0Mzc1MSwwKgYDVQQDDCPQnNC40L3QutC+0LzRgdCy0Y/Qt9GMINCg0L7RgdGB0LjQuIIKM4K9QwAAAAAEsDAKBggqhQMHAQEDAgNBAPvlZ6BZQHop6H7kjyFG9A3tjoDgywwoeG1sh7IzKRk5D0zckE/QWPviPVzbWfXRJ+eQr+g0VZKqAFYOOiJEjnw=",
"SignatureParams": [{
"FieldName": "s1",
"StampId": "7bca0e64-69b1-4255-9d92-7f33924223cd",
"StampPosition": {
"StampScale": 0.5,
"PageNumber": 1,
"TopLeftX": 2.5,
"TopLeftY": 200
}
},
{
"FieldName": "s2",
"StampId": "5fdcb512-7306-4cea-8184-12c88c0865df",
"StampPosition": {
"StampScale": 0.5,
"PageNumber": 1,
"TopLeftX": 102.5,
"TopLeftY": 200
}
}
]
}
2 Вставляем подпись сертификации{
"Token": "f0a42d3d-a6d0-48b3-967e-4e71468463db",
"Files": [
{
"FileId": "94da88f5-984e-449e-8842-ec7600e2f030",
"Signature": "/kZEQyAEfZsTC5qzHWqWWVH0zTmaldVIn+mJJM47Xqn6CSFJfvN2LIi7bR4JushxKhh9gzsNhxMd2wCbt+49jQ=="
}
],
"CadesType": "CadesBes"
}
3 Подготавливаем документ для подписи в s2 (вторая по порядку дырка){
"Token": "{{$guid}}",
"Files": [
"2e876fa6-8aea-4787-b218-cc702b71f3f0"
],
"Certificate": "MIIITTCCB/qgAwIBAgIQAdf8oJFxL8AAAAALOB0AAjAKBggqhQMHAQEDAjCCAbkxNTAzBgNVBAMMLNCQ0J4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMVgwVgYDVQQKDE/QkNC60YbQuNC+0L3QtdGA0L3QvtC1INC+0LHRidC10YHRgtCy0L4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMTAwLgYDVQQLDCfQo9C00L7RgdGC0L7QstC10YDRj9GO0YnQuNC5INGG0LXQvdGC0YAxC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DQnNC+0YHQutCy0LAxLjAsBgNVBAkMJdGD0LvQuNGG0LAg0KLQstC10YDRgdC60LDRjywg0LTQvtC8IDcxLDAqBgNVBAoMI9Cc0LjQvdC60L7QvNGB0LLRj9C30Ywg0KDQvtGB0YHQuNC4MRgwFgYFKoUDZAESDTEwNDc3MDIwMjY3MDExGjAYBggqhQMDgQMBARIMMDA3NzEwNDc0Mzc1MSwwKgYDVQQDDCPQnNC40L3QutC+0LzRgdCy0Y/Qt9GMINCg0L7RgdGB0LjQuIIKM4K9QwAAAAAEsDAKBggqhQMHAQEDAgNBAPvlZ6BZQHop6H7kjyFG9A3tjoDgywwoeG1sh7IzKRk5D0zckE/QWPviPVzbWfXRJ+eQr+g0VZKqAFYOOiJEjnw=",
"SignatureParams": [
{
"FieldName": "s2",
"StampId": "5fdcb512-7306-4cea-8184-12c88c0865df"
}
]
}
{
"Token": "5e81aaff-403a-4bec-af95-ff71c5acc20c",
"Files": [
{
"FileId": "2e876fa6-8aea-4787-b218-cc702b71f3f0",
"Signature": "V33nFnAdi/8vS78RyaK1KKlY6NbX8GG505luT8oligs0h6f89HwOsYe7qmqi7UCkS6f9Wn89NeyJao1Zi/UL1w=="
}
],
"CadesType": "CadesBes"
}
5 Подготавливаем документ для подписи в s1 (первая по порядку дырка){
"Token": "{{$guid}}",
"Files": [
"39b6bcd8-588b-457a-97a6-82498a11f663"
],
"Certificate": "MIIITTCCB/qgAwIBAgIQAdf8oJFxL8AAAAALOB0AAjAKBggqhQMHAQEDAjCCAbkxNTAzBgNVBAMMLNCQ0J4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMVgwVgYDVQQKDE/QkNC60YbQuNC+0L3QtdGA0L3QvtC1INC+0LHRidC10YHRgtCy0L4gItCQ0L3QsNC70LjRgtC40YfQtdGB0LrQuNC5INCm0LXQvdGC0YAiMTAwLgYDVQQLDCfQo9C00L7RgdGC0L7QstC10YDRj9GO0YnQuNC5INGG0LXQvdGC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ENCzLiDQnNC+0YHQutCy0LAxLjAsBgNVBAkMJdGD0LvQuNGG0LAg0KLQstC10YDRgdC60LDRjywg0LTQvtC8IDcxLDAqBgNVBAoMI9Cc0LjQvdC60L7QvNGB0LLRj9C30Ywg0KDQvtGB0YHQuNC4MRgwFgYFKoUDZAESDTEwNDc3MDIwMjY3MDExGjAYBggqhQMDgQMBARIMMDA3NzEwNDc0Mzc1MSwwKgYDVQQDDCPQnNC40L3QutC+0LzRgdCy0Y/Qt9GMINCg0L7RgdGB0LjQuIIKM4K9QwAAAAAEsDAKBggqhQMHAQEDAgNBAPvlZ6BZQHop6H7kjyFG9A3tjoDgywwoeG1sh7IzKRk5D0zckE/QWPviPVzbWfXRJ+eQr+g0VZKqAFYOOiJEjnw=",
"SignatureParams": [
{
"FieldName": "s1",
"StampId": "7bca0e64-69b1-4255-9d92-7f33924223cd"
}
]
}
6 Вставляем подпись{
"Token": "6ee77436-0002-4ed1-8be7-c73fa64337b1",
"Files": [
{
"FileId": "39b6bcd8-588b-457a-97a6-82498a11f663",
"Signature": "PzUhdwm8ZHzNeSrXmLMS2gxA8MzzLuZ24horRN4kgdYCM/qR9QTfA7myghq18Q7AENH1VXaAsI2bwAvU78dQLw=="
}
],
"CadesType": "CadesBes"
}
Работа с сертификатами ЭП