{"id":119661,"plugin_id":"plugin_asdk_app_6b05e90d9338819185f4b0da432f732f","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-26T18:15:10.818Z","digest":"2d276baa9db0bc66c272fa8873886454329bcac6af9f635f6e106b855be3304e","against":null,"payload":{"description":"Create, validate and send an e-invoice or credit note through GoRoute, over the Peppol network or through the organisation's connected Odoo or Xero. Use when the user asks to invoice a customer, send or issue an invoice, credit an invoice, or save an invoice as a draft.","included_files":[],"name":"send-invoice","skill_md_contents":"---\nname: send-invoice\ndescription: Create, validate and send an e-invoice or credit note through GoRoute, over the Peppol network or through the organisation's connected Odoo or Xero. Use when the user asks to invoice a customer, send or issue an invoice, credit an invoice, or save an invoice as a draft.\n---\n\nUse this skill to turn a request such as \"invoice Acme for 10 hours at 120 EUR\" into a compliant e-invoice.\n\n## Steps\n\n1. **Seller.** Call `get_my_organization`. The organisation is the seller; use its seller party, currency and country as given.\n2. **Where the invoice is created.** Call `list_connectors`.\n   - With an active Odoo or Xero connector, create the invoice in that system with `create_invoice_in_erp` (it numbers and books the invoice, and the connector sends it). Skip steps 5 to 7; report what the accounting system returned.\n   - Otherwise continue here.\n3. **Buyer.** Find the buyer with `search_saved_parties`. If it is not saved, ask for the buyer's legal name and its Peppol ID or VAT number, and check it with `lookup_participant`.\n4. **Missing details.** Ask the user for anything still missing. Never invent a value. An invoice needs: buyer name and Peppol ID or VAT number; invoice number; issue date; currency; a buyer reference or purchase order number; and for each line a description, quantity, unit price, and VAT category and rate. If the user gives no invoice number, ask for one; do not make one up.\n5. **Build and validate.** Use `get_invoice_format` for the JSON shape if needed, build the invoice, and call `validate_invoice`. Fix what it reports. If a fix needs information you do not have, ask.\n6. **Confirm.** Show a short summary: buyer, invoice number, date, each line, net amount, VAT and total. Totals are recalculated by GoRoute; show the validated totals.\n7. **Send.** Only after the user agrees, call `send_invoice`. Then report the invoice number, the delivery status exactly as returned (queued is not delivered), and the PDF link. Offer `get_transaction` to check the final status.\n\n## Variations\n\n- **Draft instead of sending:** `create_draft_invoice`. Later `update_draft_invoice`, `send_draft` or `delete_draft`. `list_drafts` shows what exists.\n- **Credit note for an earlier invoice:** `send_credit_note_for_invoice` with the original invoice, a new credit note number, and the reason. Ask whether it credits the full invoice, selected lines or an amount.\n- **A finished UBL XML document:** validate with `validate_document`, send with `send_document`.\n- **An order placed by an AI agent for a business buyer:** `issue_einvoice_for_agent_order`.\n\n## Rules\n\n- If a search shows an earlier invoice with the same buyer, lines and amounts, tell the user and ask whether they want a new one before sending.\n- If validation or sending is refused, quote GoRoute's reason and say nothing was sent.\n- Do not change tax treatment on your own. If the VAT category or rate is unclear, ask.\n- GoRoute issues and delivers invoices. It does not take or make payments; say so if the user asks to pay or collect.\n- The user's explicit instructions take priority over these steps.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}