Declarations

Generate Declarations Batch

Generate multiple declaration PDFs at once.

Body: template_ids: list[int] — List of Z_DeclarationTemplates.id to generate subject_id: int — Record ID (vehicle, contract, or client) client_id: int (optional) — Client/supplier ID (auto-detected for vehicles) website_id: int (optional) — Website ID for theme colors trigger_action: str (optional) — "on_reservation" or "on_sale" to update vehicle estado

post/api/declarations/generate-batch

Headers

x-api-tokenstring nullable

Request body

object required

Response

Successful Response

{"stackTrail":"paths:/api/declarations/generate-batch:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes