Facturama: Create invoice
facturama_create_invoiceFacturama: Issue and stamp a CFDI 4.0 invoice for a client with one or more lines. Issues a CFDI 4.0 invoice of type ingreso and stamps it with the SAT, so there is no draft: the invoice is final once the call succeeds. Returns the invoice_id, series, folio, UUID and totals. It uses one folio of your plan and does not email the invoice: use email_invoice for that. A wrong invoice is fixed by cancel_invoice or create_credit_note. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Lines. Each has description, quantity, unit_price and tax_rate (0.16 for 16% IVA), plus optional product_id from list_products. | |
| series | No | Invoice series. Default: your default series. | |
| client_id | Yes | Client ID from list_clients or create_client. | |
| payment_form | No | How the client pays, for example transfer or cash. | |
| payment_method | No | Single payment or installments. |