#disha
1 messages ยท Page 1 of 1 (latest)
no, on discord only
I'm talking about Invoice.Created event
that was previously returning Invoice Object
now its returning InvoiceItem object
would you mind sharing the event ID?
this is an Invoice ID, not an event ID evt_xxx
evt_1MxlViBZfmvI9JsLnadGXnEW
this is an invoiceitem.created event
yes
but this would never give you an invoice object
if you need to check which type of object is returned for a specific event you can look at https://stripe.com/docs/api/events/types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
e.g. https://stripe.com/docs/api/events/types#event_types-invoiceitem.created
data.object is an invoiceitem https://stripe.com/docs/api/invoiceitems/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.