Create a receipt template
Admin only. Creates a receipt template with paper, header, footer, and logo or VAT toggles. The name is required and printed nowhere but the template picker, so it is not unique.
POST
/api/v1/printing/receipt-templatesAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Request body
requiredapplication/jsonbranch_idstringnamestringrequiredpaperstringheader_textstringfooter_textstringshow_logobooleanshow_vatbooleanshow_batchbooleanis_defaultbooleanResponses
201
Receipt template created
idstringrequiredbranch_idstring | nullrequirednamestringrequiredpaperstringrequiredheader_textstringrequiredfooter_textstringrequiredshow_logointegerrequiredmin -9007199254740991 · max 9007199254740991
show_vatintegerrequiredmin -9007199254740991 · max 9007199254740991
show_batchintegerrequiredmin -9007199254740991 · max 9007199254740991
is_defaultintegerrequiredmin -9007199254740991 · max 9007199254740991
is_activeintegerrequiredmin -9007199254740991 · max 9007199254740991
is_deletedintegerrequiredmin -9007199254740991 · max 9007199254740991
created_atstringrequiredupdated_atstringrequired400
Template name is required
detailstringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin, or the branch is outside your ownership
detailstringrequired