#yukirivero

1 messages · Page 1 of 1 (latest)

brittle stirrupBOT
tawny ridge
#

Your reqeust is missing .
try this one :

stripe customers list | jq .data[].id

sacred moat
#

still it says no matches found

#

here is my return JSON

#

oh too long

#

{
"object": "list",
"data": [
{
"id": "cus_NLpQpkP3cdmD3K",
"object": "customer",
"address": null,
"balance": 0,
"created": 1676316763,
"currency": "usd",
"default_source": null,
"delinquent": false,
"description": "Test",
"discount": null,
"email": "test@test.com",
"invoice_prefix": "673AA73D",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": "pm_1Mb7lXGMyn56Yy4sMAxN4vfC",
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {},
"name": null,
"next_invoice_sequence": 2,
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
},
{
"id": "cus_NLkZf8ShYyuaX2",
"object": "customer",
"address": null,
"balance": 0,
"created": 1676298739,
"currency": null,
"default_source": null,
"delinquent": false,
"description": "Test",
"discount": null,
"email": "ronjonathanrivero@gmail.com",
"invoice_prefix": "36006BA8",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {},
"name": null,
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}
]
}

tawny ridge
#

could you share a screenshot of the command and the response ?

sacred moat
tawny ridge
#

What jq version are you using ?

sacred moat
#

jq 1.6

tawny ridge
carmine wadi
#

You need to wrap your command in quotes:

stripe customers list | jq '.data[].id'
sacred moat
#

I do get thesame results

#

that works

#

geez thank you