Skip to content

Stripe - Create Invoice

This module allows you to create manual invoices for customers. It can add items, configure the collection method, finalize, and send the invoice automatically.

  • Secret Key: Stripe secret key
ParameterTypeRequiredDescription
credentials_idcredentialYesStripe credentials
customer_idstringYesCustomer ID (cus_xxx)
itemsstringNoInvoice items (JSON array)
collection_methodselectNoCollection method
days_until_duenumberNoDays to pay (default: 30)
descriptionstringNoInvoice description
footerstringNoFooter text
finalizebooleanNoFinalize immediately
send_invoicebooleanNoSend by email
metadatastringNoCustom metadata (JSON)
[
{
"amount": 99.99,
"currency": "usd",
"description": "Servicio de consultoría"
},
{
"price_id": "price_xxx",
"quantity": 2
}
]
{
"success": true,
"invoice": {...},
"invoice_id": "in_1MtHbELkdIwHu7ixl4OzzPMv",
"number": "INV-0001",
"status": "open",
"amount_due": 99.99,
"hosted_invoice_url": "https://invoice.stripe.com/...",
"message": "Factura INV-0001 creada (open)"
}
{
"customer_id": "cus_NffrFeUfNV2Hib",
"items": "[{\"amount\": 150, \"description\": \"Servicio mensual\"}]",
"finalize": true
}
{
"customer_id": "cus_NffrFeUfNV2Hib",
"items": "[{\"amount\": 100, \"description\": \"Consultoría\"}, {\"amount\": 50, \"description\": \"Soporte adicional\"}]",
"description": "Servicios de enero 2024",
"finalize": true,
"send_invoice": true
}
{
"customer_id": "cus_NffrFeUfNV2Hib",
"items": "[{\"amount\": 500, \"description\": \"Proyecto X\"}]",
"collection_method": "send_invoice",
"days_until_due": 15,
"footer": "Gracias por su preferencia",
"finalize": true,
"send_invoice": true
}
  • Items can be one-time amounts or recurring prices
  • finalize: true locks the invoice for editing
  • send_invoice: true sends an email to the customer
  • Non-finalized invoices are editable drafts
  • The customer can pay via hosted_invoice_url
  • StripeGetInvoices - Get and search existing invoices
  • StripeGetCustomers - Get customer data
  • StripeCreateCustomer - Create the customer before invoicing
  • StripeGetSubscriptions - Query associated subscriptions