#nei3rd-connect

1 messages · Page 1 of 1 (latest)

median lava
#

What do you mean by data item?

craggy nimbus
#

hello @median lava

#

data item >>> acct_id, name, phone

#

data like acct_xxx, name, phone

median lava
#

You have the Account API!

craggy nimbus
#

yes, I went this documentation

#

thing is, out of the json response, I'm trying to "pick-out" the acct_xxx, name, phone

#

I went to this*

#

how do I selectively pick-out specific data

#

select specifically acct_xxx or phone or name

median lava
#

I am not sure what do you mean by pick-out ?

#

In the response you received, you can tweak/filter the data as far as you want

craggy nimbus
#

how do I filter?

#

how do I filter at the instance my code will be fetching the data?

#

rather than tweak/filter after receiving the json response?

median lava
#

Ah I see. Unfortunately we don't have a parameter to filter directly when calling the API

craggy nimbus
#

noted on this,.....though I see that with stripe.Customer.list, it has stripe_list.data[0]

#

Customer.list has filtering capability but Account has none?

median lava
#

Customer.list only has the ability to filter by email. But yes it's per-API

craggy nimbus
#

Do I understand it correctly, that by per-API, you mean capabilities vary for this 2 types of similar API's. And that for the case of Account, it can not filter even by email?

#

that the stripe_list.data[0] capability is not across all API?

median lava
#

Yes

craggy nimbus
#

no way...

surely api calls to Account could also be filtered

#

@median lava , I understand this might be a hassle on your end--excuse my persistence if it will be so, but for this issue may I humbly request that you confirm this first

#

I think Stripe US could have already made this capability be true for this types of API

median lava
#

I mean, you are always free to build a custom filter on your end, after receiving these response, aren't you?