#CaReS
1 messages ยท Page 1 of 1 (latest)
[
"automatic_tax" => []
"customer" => "cus_MPxEgAH..."
"invoice_items" => array:2 [
"price" => "pdc_agencies_yearly_M0..."
"quantity" => 10
]
]
return $this->request('get', '/v1/invoices/upcoming', $params, $opts);
Can you share the response?
And the req_xxx ID
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_6IAOBneLqIxOYU
I don't think that's the same request as the one for the code you shared above, that's a GET /v1/customers/cus_MPxEgAHUGtSlnC req
Yup, I know that. But req_6IAOBneLqIxOYU is not the request from that code
I think it's this one: https://dashboard.stripe.com/test/logs/req_rD9CX9u0q5HeiF
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
In which you're passing an invalid param, it should be:
invoice_items => [[
'price' => ...,
'quantity' =>
]]
That parameter expects an array: https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You should log and return these errors from your backend!
double array ?
Well you have a different error now
You'd know this if you were logging and returning what we return from the API
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
{
error: {
message: "The price specified is set to `type=recurring` but this field only accepts prices with `type=one_time`.",
param: "invoice_items[0][price]",
type: "invalid_request_error"
}
}
Understood, thanks ๐