I'm having difficulty using the expand parameter. Specifically I'm trying to list Events of type
invoice.payment_succeeded and simultaneously expand the
subscription and
customer.
The Events I'm listing look something like this in Ruby:
#<Stripe::Event id=evt_12345678 0x00000a> JSON: {
"id": "evt_12345678",
"object": "event",
"data": {
"object": {
"id": "in_12345678",
"object": "invoice",
"customer": "cus_12345678",
"subscription": "sub_12345678",
...
...
...
},
...
...
...
},
...
...
...
}
I initially tried an API call like:
Stripe::Event.list(type: "invoice.payment_succeeded", expand: ['customer'])
...and got an error message saying:
This property cannot be expanded (customer). You may want to try expanding 'data.customer' instead.
I've since tried the following params and got the following error messages:
expand: ['data.customer'] - This property cannot be expanded (data.customer)
expand: ['data.object.customer'] - This property cannot be expanded (data.object)
expand: ['data.invoice.customer'] - This property cannot be expanded (data.invoice)
Does anyone know if it's possible to use expand in my situation?
In the docs it says expand "is available on all API requests"