I have an api named "stripe_api" that creates a stripe customer. This call returns this json (see attached image). On success, I want to make a Patch call to my Supabase to edit the stripe_customer_key field. How can I extract the stripe_api.data.id value as an input for the subsequent call (the supabase one)? I tried using dot notation stripe_api.data.id but it evaluates to text and it does not extract the value. thanks
β 1
Max
3 days ago
Feb 5, 2025, 11:02 AM
You can use the "Get" node. But this is functionality that should go in the backend, not toddle
ssssadsadasd
3 days ago
Feb 5, 2025, 11:04 AM
ah ok, pushing it to the backend makes sense thanks. two quick questions: 1. what do you mean with "get" node? or simply a stripe api call to get the customer 2. in this case and in general, why the call should go to the backend? I am not exposing any stripe keys or similar @Max
ssssadsadasd
3 days ago
Feb 5, 2025, 11:06 AM
I mean technically all the calls are happening in the backend
1. When you receive the data, you can use a formula and in this formula you need to add the "Get" node to get the key (this is like dot notation) 2. If you keep this in your frontend, you are allowing your users to set their stripe id. They should not be able to do that
ssssadsadasd
3 days ago
Feb 5, 2025, 11:08 AM
got it thanks π
πͺ1
Lucas G
3 days ago
Feb 5, 2025, 2:39 PM
Should also just be able to select the value right from the call result
ssssadsadasd
3 days ago
Feb 5, 2025, 2:45 PM
@Lucas G hmm not sure how can I access it.this call returns a url but if I want to set a variable in the "event" how can I use the url?
Lucas G
3 days ago
Feb 5, 2025, 2:53 PM
Use it where?
If in another API, you can use the new inputs directly without needing a variable
ssssadsadasd
3 days ago
Feb 5, 2025, 2:56 PM
So, I make a stripe api call -> this returns a url -> after it was successful (events -> on success) -> go to page = url
Lucas G
3 days ago
Feb 5, 2025, 3:01 PM
Yeah donβt need variables, just just use the go to url directly
Lucas G
3 days ago
Feb 5, 2025, 3:02 PM
You can use API data anywhere
ssssadsadasd
3 days ago
Feb 5, 2025, 3:06 PM
@Lucas G ah yeah you mean simply doing what I do in the second pic? yeah, did not think it that way. thanks
Lucas G
3 days ago
Feb 5, 2025, 3:22 PM
Well even when using the data inside other API calls. You can just use it directly
ssssadsadasd
3 days ago
Feb 5, 2025, 3:29 PM
@Lucas G I am not sure I understand how can I use directly without making the call again? the url cannot be found in variables, attributes, etc.
Lucas G
3 days ago
Feb 5, 2025, 3:48 PM
When a call is made, the data doesn't just disappear. It remains and then it can be used anywhere after that