4c849054-73bc-4f84-bfb4-372e51ba782d
Clone any layout by id (duplicates the whole design into a new layout):
POST /api/layouts/<layout_id>/clone/ — optional body {"name": "..."}
Generate a PDF for any saved layout:
POST /api/layouts/<layout_id>/generate-pdf/ with body
{"invoice": {"MAST": {...}, "TRAN": [...]}}
Or generate from an inline layout (no saved layout needed):
POST /api/generate-pdf/ with body
{"layout": {...}, "invoice": {...}} or {"layout_id": "...", "invoice": {...}}