Finding a specific entity is hard

Here say i want to figure out how to get the subscription plan id in the received response, then in the table i have to click payment_link > CheckoutOptions > CustomField >subscription_plan_id . So I have to click 4 buttons in order to search for a term…

Is there any other easy way to find it with less button clicking? or is there any schema metadata that i can refer? please let me know

I’m not sure I fully understand the question. What buttons are you referring to? Are these buttons in the Square Dashboard? :slightly_smiling_face:

Hello,
Yes, there are a few potential ways you can simplify finding a deeply nested field like payment_link > CheckoutOptions > CustomField > subscription_plan_id, depending on the tools or platform you’re working with. Here’s how you can reduce the effort:

Use JSON Viewers or Expand All Functionality (if it’s a JSON response)
If you’re working with an API response in JSON format:def find_key(data, target):
if isinstance(data, dict):
for key, value in data.items():
if key == target:
return value
result = find_key(value, target)
if result is not None:
return result
elif isinstance(data, list):
for item in data:
result = find_key(item, target)
if result is not None:
return result
return None
Best Cat Translator App
result = find_key(response_json, ‘subscription_plan_id’)

Best Regards