get_stamp_errors
Identify DIAN rejection errors for Colombian electronic invoices to resolve validation failures and understand stamping issues.
Instructions
Get DIAN rejection errors for an invoice.
Args: invoice_id: The invoice's GUID
Returns any errors from DIAN if the stamp was rejected. Use this to understand why an invoice failed DIAN validation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes |
Implementation Reference
- src/siigo_mcp/tools/invoices.py:196-206 (handler)The main handler function for the 'get_stamp_errors' tool. It is decorated with @mcp.tool and fetches DIAN rejection errors from the Siigo API endpoint /invoices/{invoice_id}/stamp/errors.@mcp.tool async def get_stamp_errors(ctx: Context, invoice_id: str) -> dict[str, Any]: """Get DIAN rejection errors for an invoice. Args: invoice_id: The invoice's GUID Returns any errors from DIAN if the stamp was rejected. Use this to understand why an invoice failed DIAN validation. """ return await get_client(ctx).get(f"/invoices/{invoice_id}/stamp/errors")
- src/siigo_mcp/tools/discovery.py:98-98 (registration)Registers the 'get_stamp_errors' tool by mapping the name to the function imported from the invoices module in the lazy tool functions dictionary."get_stamp_errors": invoices.get_stamp_errors,
- src/siigo_mcp/tools/discovery.py:44-44 (registration)Tool discovery index entry that lists 'get_stamp_errors' with its category and summary description.{"name": "get_stamp_errors", "category": "invoices", "summary": "Get DIAN rejection errors"},