issue_e_document
Officializes an existing sales invoice as a Turkish e-document by checking the recipient's VKN: issues an e-Fatura for registered taxpayers or an e-Arşiv otherwise.
Instructions
Officialize an existing sales invoice as an e-document: looks up the recipient's e-Fatura inbox by VKN, issues an e-Fatura if registered or an e-Arşiv otherwise, and (by default) waits for the async job.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sales_invoice_id": "<sales_invoice_id>",
"recipient_vkn": "<recipient_vkn>"
},
"name": "issue_e_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll the async job until it finishes (~up to 20s) | |
| scenario | No | e-Fatura scenario (used only for e-Fatura) | basic |
| recipient_vkn | Yes | Recipient tax number (VKN/TCKN) — used to decide e-Fatura vs e-Arşiv | |
| sales_invoice_id | Yes | ID of an existing sales invoice to officialize as an e-document |