#yukirivero
1 messages · Page 1 of 1 (latest)
Your reqeust is missing .
try this one :
stripe customers list | jq .data[].id
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
}
]
}
could you share a screenshot of the command and the response ?
What jq version are you using ?
jq 1.6
Try the official Quickstart of jq:
https://stedolan.github.io/jq/tutorial/
and see if you manage to get same result as the guide.
You need to wrap your command in quotes:
stripe customers list | jq '.data[].id'