#Min.K
1 messages · Page 1 of 1 (latest)
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.
The example code is
curl https://api.stripe.com/v1/invoices/upcoming?customer=cus_xxx \
-u sk_test_xxxx
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
The API is GET. If you don't know much about this, can you ask someone who does?
I mean yes it's GET, but your request req_6Yi54sXzn3ECgR was a POST request, that's why it didn't work
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You sent the request as a POST request
I see !