#krishna-subscription-tax
1 messages · Page 1 of 1 (latest)
Hey @celest hound what is your code and what is the error?
krishna-subscription-tax
curl https://api.stripe.com/v1/subscriptions
-u secret key
-d customer=cus_MAh5TUVwL3Vjfe
-d "items[0][price]"=price_1LRAE1SJsXH2azWQUfTC8IYb
-d default_tax_rates="txr_1LSLYfSJsXH2azWQ7IkNVfNC"
"error": {
"message": "Invalid array",
"param": "default_tax_rates",
"type": "invalid_request_error"
}
You can have more than one tax rate so this parameter expects an array which is what the error tells you
you want -d default_tax_rates[0]=txr_123
no matches found: default_tax_rates[0]=txr_1LSLYfSJsXH2azWQ7IkNVfNC
it's showing a error
that's your terminal not liking the ""
wrap it in double quotes
or better: don't use curl, you are not familiar with your terminal/curl so just use one of our official client libraries in a language you're familiar with!
okay