Closed jcbages closed 2 months ago
Hey @jcbages, what version of the CLI are you using? This looks like it's configured correctly (at least on the newest version): https://github.com/stripe/stripe-cli/blob/683f1bf5037ee294d33c77e3eabca0f2cee49ef6/pkg/requests/ids.go#L19
I tried it locally too and it seems to be working:
➜ stripe get ii_0P3JuV589O8KAxCGZ0onWjq7
{
"id": "ii_0P3JuV589O8KAxCGZ0onWjq7",
"object": "invoiceitem",
"amount": 100,
"currency": "usd",
...
@tomer-stripe ya I opened this for the PR that fixed it https://github.com/stripe/stripe-cli/pull/1157 so I'll close now :)
Issue
The URL for interacting with invoice items should be
/invoiceitems
but right now it's/invoice_items
which makesstripe get ii_invoice_item_id
calls failExpected Behavior
Calling
stripe get
with an invoice item ID should show the JSON object for the invoice item. Instead, it's showing an error that the URL is not valid as it's trying to fetchv1/invoice_items
instead ofv1/invoiceitems
: https://docs.stripe.com/api/invoiceitemsSteps to reproduce
Run a command to get some invoice item with its ID:
The current CLI returns the following error:
However, getting the full path will correctly return the JSON object, which is the expected behavior from the first command:
Traceback
Environment
macOS