#Min.K

1 messages · Page 1 of 1 (latest)

spring fieldBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • Min.K, 1 hour ago, 5 messages
  • Min.K, 1 hour ago, 11 messages
  • Min.K, 19 hours ago, 10 messages
  • Min.K, 20 hours ago, 8 messages
  • Min.K, 21 hours ago, 7 messages
  • Min.K, 22 hours ago, 6 messages
    and 6 more
hybrid depot
#

The example code is

curl https://api.stripe.com/v1/invoices/upcoming?customer=cus_xxx \
  -u sk_test_xxxx
woven spindle
#

When i call request

  curl https://api.stripe.com/v1/invoices/upcoming?customer=cus_Nem3XDMQk80Q9k \
  -u my_key: \
  -d "subscription_items[0][price]"=price_1OEocWH7t32LLKQxoGTFWzuq \
  -d "subscription_items[0][quantity]"=1 

Same error detected

{
  "error": {
    "code": "resource_missing",
    "doc_url": "https://stripe.com/docs/error-codes/resource-missing",
    "message": "No such invoice: 'upcoming'",
    "param": "id",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_6Yi54sXzn3ECgR?t=1701148333",
    "type": "invalid_request_error"
  }
hybrid depot
#

You are sending POST request

#

it's a GET request

woven spindle
#

@hybrid depot
The API is GET. If you don't know much about this, can you ask someone who does?

hybrid depot
#

I mean yes it's GET, but your request req_6Yi54sXzn3ECgR was a POST request, that's why it didn't work

#

You sent the request as a POST request

woven spindle
#

I see !