# 📝 Drafts ## 🆕 Create invoice draft from EN16931-compatible JSON - [POST /drafts](https://pdp-api-v250704-iron.seqino.dev/openapi/drafts/create_draft_drafts_post.md): Create a new invoice draft from EN16931-compatible JSON data. This endpoint allows you to create a draft invoice that can be validated and refined before final submission. Drafts support partial data and can be updated multiple times before validation. ## 📄 Get details of a draft invoice - [GET /drafts/{draft_id}](https://pdp-api-v250704-iron.seqino.dev/openapi/drafts/get_draft_drafts__draft_id__get.md): Get the details of a specific draft invoice. Returns the complete draft data including all fields and their current values. This is useful for retrieving draft state before making updates. ## ✏️ Update a draft invoice - [PUT /drafts/{draft_id}](https://pdp-api-v250704-iron.seqino.dev/openapi/drafts/update_draft_drafts__draft_id__put.md): Update an existing draft invoice. Completely replaces the draft content with the provided data. The draft will be re-validated after the update. ## 🗑️ Delete an invoice draft - [DELETE /drafts/{draft_id}](https://pdp-api-v250704-iron.seqino.dev/openapi/drafts/delete_draft_drafts__draft_id__delete.md): Delete a draft invoice. Permanently removes the draft from the system. This action cannot be undone. Once deleted, the draft_id becomes invalid and cannot be reused. ## ✅ Validate a draft and submit as invoice - [POST /drafts/{draft_id}/validate](https://pdp-api-v250704-iron.seqino.dev/openapi/drafts/validate_draft_drafts__draft_id__validate_post.md): Validate a draft and convert it to a structured invoice in the specified format. This endpoint performs comprehensive validation and converts the draft into a final invoice that will be submitted to the PPF platform. After successful validation, the draft becomes immutable. ## 🔍 Validate invoice data without creating draft - [POST /drafts/validate-data](https://pdp-api-v250704-iron.seqino.dev/openapi/drafts/validate_invoice_data_drafts_validate_data_post.md): Validate invoice data against EN16931 requirements without creating a draft. Returns detailed validation results with specific error messages and suggestions. This endpoint helps identify issues before submitting invoice data. Use this for: - Pre-validation before creating a draft - Checking data quality during form input - Understanding validation requirements