Parameters
JSON body
Request body
application/jsonidnumberOptionalExisting attachment id; omit to add a new one.
typeCodestringRequiredvoucher-gift-createdurlTemplatestringRequiredHTTPS address of the file. May use the variables of the e-mail type in the path and query, e.g. https://gymroom.cz/api/v1/voucher/pdf?code={{ voucherCode }}. Values are URL-encoded; the host must be fixed.
filenameTemplatestring | nullOptionalAttachment file name, may use variables. Empty = name sent by the server or taken from the URL.
Darkovy poukaz {{ voucherCode }}.pdfisActivebooleanOptional