#spinsnap - Issuing category
1 messages · Page 1 of 1 (latest)
Hi there! Let's chat in this thread
Do you have a request ID for this error? The ID should look like req_abc123
This was the entire response
{
"error": {
"code": "parameter_invalid_empty",
"doc_url": "https://stripe.com/docs/error-codes/parameter-invalid-empty",
"message": "You passed an empty string for 'spending_controls[allowed_categories][0]'. We assume empty values are an attempt to unset a parameter; however 'spending_controls[allowed_categories][0]' cannot be unset. You should remove 'spending_controls[allowed_categories][0]' from your request or supply a non-empty value.",
"param": "spending_controls[allowed_categories][0]",
"type": "invalid_request_error"
}
}
If it's supposed to be in the response, I've haven't been getting any request IDs. Note that I am running this in test mode. This is not in prod
I've been running these api request in the terminal just to learn the api
Got it. Do you receive a similar error if you pass (empty value for spending_controls.allowed_categories altogether, instead of empty string for first item of spending_controls.allowed_categories):
-d "spending_controls[allowed_categories]=""
omg that worked