# Finding a specific entity is hard

**URL:** <https://developer.squareup.com/forums/t/finding-a-specific-entity-is-hard/18739>\
**Category:** Site Feedback\
**Tags:** payments-api\
**Created:** [September 15, 2024, 6:00am UTC](https://developer.squareup.com/forums/t/finding-a-specific-entity-is-hard/18739 "2024-09-15T06:00:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chnrv](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@chnrv](https://developer.squareup.com/forums/u/chnrv)\
**Post date:** [September 15, 2024, 6:00am UTC](https://developer.squareup.com/forums/t/finding-a-specific-entity-is-hard/18739/1 "2024-09-15T06:00:36Z")

</div>

> **[POST /v2/online-checkout/payment-links - Square API Reference](https://developer.squareup.com/reference/square/checkout-api/create-payment-link)**
>
> Creates a Square-hosted checkout page.

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

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 16, 2024, 4:19pm UTC](https://developer.squareup.com/forums/t/finding-a-specific-entity-is-hard/18739/3 "2024-09-16T16:19:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tony34](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@tony34](https://developer.squareup.com/forums/u/tony34)\
**Post date:** [May 8, 2025, 6:06am UTC](https://developer.squareup.com/forums/t/finding-a-specific-entity-is-hard/18739/6 "2025-05-08T06:06:56Z")

</div>

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](https://www.humantocat.com)  
result = find\_key(response\_json, ‘subscription\_plan\_id’)

Best Regards
