alegra invoices
alegra invoices¶
Manage sales invoices
Synopsis¶
Manage sales invoices (facturas de venta).
An invoice becomes fiscal/electronic when it carries a numberTemplate.id and stamp.generateStamp:true (emission returns a CUFE in CO / UUID in MX). Prefer the emit subcommand for the safe, batched, idempotent flow. Invoices are append-only: reverse or correct a stamped one with a credit note, never by editing.
Options¶
-h, --help help for invoices
Options inherited from parent commands¶
--base-url string Override the API base URL (env: ALEGRA_BASE_URL)
--columns strings Comma-separated columns for table/csv output
--dry-run Print the equivalent curl request without sending it
--no-color Disable colored output (also respects the NO_COLOR env var)
-o, --output string Output format: table, json, yaml, csv (env: ALEGRA_OUTPUT)
--profile string Configuration profile to use (env: ALEGRA_PROFILE)
--requests-per-second float Client-side rate limit (default from config)
--show-token In --dry-run, do not redact the Authorization header
-v, --verbose Enable verbose (debug) logging to stderr
SEE ALSO¶
- alegra - Alegra accounting system CLI
- alegra invoices create - Create a invoice
- alegra invoices delete - Delete a invoice by ID
- alegra invoices email - Email an invoice
- alegra invoices emit - Emit (stamp) draft/open invoices electronically, in batches of 10
- alegra invoices export - Export all invoices to CSV or JSON
- alegra invoices get - Get a single invoice by ID
- alegra invoices import - Bulk-create invoices from a CSV file
- alegra invoices list - List invoices
- alegra invoices open - Revert a voided invoice
- alegra invoices preview - Generate a preview PDF URL
- alegra invoices stamp - Stamp up to 10 invoices (low-level; prefer
emit) - alegra invoices update - Update a invoice by ID
- alegra invoices void - Void an invoice