Skip to content

Stripe - Get Invoices

This module allows you to query invoices generated in Stripe. You can get a specific invoice or list multiple with filters by customer, subscription, status, and dates.

  • Secret Key: Stripe secret key
ParameterTypeRequiredDescription
credentials_idcredentialYesStripe credentials
invoice_idstringNoSpecific ID (in_xxx)
customer_idstringNoFilter by customer
subscription_idstringNoFilter by subscription
statusselectNoFilter by status
created_gtestringNoCreated after (Unix timestamp)
created_ltestringNoCreated before (Unix timestamp)
limitnumberNoResults limit (default: 10)
starting_afterstringNoLast object ID for pagination
  • draft: Draft
  • open: Open (pending payment)
  • paid: Paid
  • uncollectible: Uncollectible
  • void: Voided
{
"success": true,
"invoices": [...],
"count": 10,
"has_more": true,
"message": "10 facturas obtenidas"
}
  • id: Invoice ID (in_xxx)
  • number: Invoice number
  • status: Status
  • amount_due: Amount due
  • amount_paid: Amount paid
  • total: Invoice total
  • currency: Currency
  • customer_email: Customer email
  • hosted_invoice_url: URL to pay online
  • invoice_pdf: PDF URL
  • due_date: Due date
{
"invoice_id": "in_1MtHbELkdIwHu7ixl4OzzPMv"
}
{
"customer_id": "cus_NffrFeUfNV2Hib",
"limit": 50
}
{
"status": "open"
}
{
"subscription_id": "sub_1MowQVLkdIwHu7ixeRlqHVzs",
"status": "paid"
}
  • hosted_invoice_url allows the customer to pay online
  • invoice_pdf generates a downloadable PDF
  • draft invoices are not visible to the customer
  • Decimal amounts are added for convenience
  • StripeCreateInvoice - Create new invoices
  • StripeGetCustomers - Get invoice customer data
  • StripeGetSubscriptions - Get subscriptions that generate invoices