#sai_rez

1 messages · Page 1 of 1 (latest)

quartz geyserBOT
terse merlin
robust vault
terse merlin
#

What are the errors?

robust vault
#

{ "error": { "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.", "type": "invalid_request_error" } } zsh: command not found: -u

terse merlin
#

Sounds like a bash error as opposed to an API issue. I think you're missing a \ after the URL:

curl https://api.stripe.com/v1/customers/<customerId> \
  -u <secret_key>: \
  -d "expand[]"="sources" \
  -G
robust vault
#

Yes you were right! although I do also see at the end of the object, does the mean the expand did not work?
(3) Could not parse the URL, failed to set query

terse merlin
#

Not sure tbh, it worked for me

#

(I also use zsh)

robust vault
#

I see okay, if I was accessing card country value like this
customer.sources.data[0].card_country;
Would i need to expand further or would expanding sources show the card countryu?

terse merlin
#

Well card_country isn't a field

#

Probably card[country]

quartz geyserBOT
robust vault
#

Sorry I should have been more clear, the above was how I was trying to access value in node

terse merlin
#

Yes, that's not actually a field. It'd be card[country] assuming type: 'card'