Получение файла текущего шаблона

<aside> 💡 Общий метод, контекст системы, V=500

</aside>

Параметры

Входящие параметры

public class GetTemplateRequest
{
	// Тип документа
	public int DocumentType { get; set; }
	// Формат документа
	public int DocumentFormat { get; set; }
	// Юридический статус клиента
	public int LegalType { get; set; }
	// Тип предмета залога (только для XL)
	public int CollateralType { get; set; }
}

DocumentFormat: 0 - Docx 1 - HTML 2 - Xls

image.png

LegalType - значения ClientLegalTypes [XL, XP]

CollateralType - значения CollateralTypes [XL]

Пример запроса

{
	"ApiKey": "ApiKeyApiKeyApiKeyApiKey",
	"ApiVersion": "500",
	"Method": "GetCurrentTemplate",
	"Parameters": 
	{
		"DocumentType": 10000,
		"DocumentFormat": 0,
		"CollateralType": 30,
		"LegalType": 0
	}
}

Результат выполнения

    public class FileResponse
    {
		    public string TemplateName { get; set; }
        public string Base64 { get; set; }
    }

Имя шаблона и файл в формате Base64