Hey all
I want to get a item from a nested object I receive via webhook from Stripe. This is the object. I’ve marked the relevant attribute with am <------------------
.
{
"id": "xxx",
"object": "event",
"account": "xxx",
"api_version": "2020-08-27",
"created": 1688979466,
"data": {
"object": {
"id": "xxx",
"object": "invoice",
"lines": {
"object": "list",
"data": [
{
"id": "xxx",
"object": "line_item",
"amount": 599997,
"amount_excluding_tax": 599997,
"currency": "eur",
"description": "Time on lorem ipsum" <--------------
}
],
"has_more": false,
"total_count": 2,
"url": "/v1/invoices/xxx/lines"
}
}
},
"livemode": false,
"pending_webhooks": 1,
"type": "invoice.created"
}
I need this attribute to set up a filter. Unfortunately I cannot access the attribute when setting up the filter, as it is only marked as collection
.
As this does not work for me, tried to set a variable containing the description by using first()
and pick()
. first()
works as expected, returning the first entry from the data array. pick()
on the other side does not work (results in an empty varaible).
So how can I access this value? Is it possible to enter the path manually, e.g. data.object.lines.data[1].description
somehow? If yes, how?
Thank you very much!