#Dakurai
1 messages ยท Page 1 of 1 (latest)
Here is what I have tried:
{
"cancel_at_period_end": false,
"proration_behavior": "none",
"billing_cycle_anchor":"now",
"items": [
{
"id": "si_NrmQPCondqWU5g",
"price": "price_1N3p5nEvcMarCnz5H3gajRiX"
}
]
}
Can you share the failing request IDs here?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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_NpN9jRIB4jUrTo
wait no thats the wrong one
I cant see the failing calls in the logs
Where are you seeing the errors then? You mentioned "getting generic 400 errors"
On the platform I am making the calls from. Im trying to figure out if I have the log filters wrong or something
Can you copy the full error you do see?
It should include a request ID in the object
It's also in the response headers
400 Bad Request: {
"error": {
"message": "Invalid request (check that your POST content type is application/x-www-form-urlencoded). If you have any questions, we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
Ah man reading is hard ๐ Updated the encoding and have a new error: req_bFuQwqEXQLu96Y
๐ Hopping in here since synthrider has to head out - is there a reason you're passing in the array to items.data? Instead you should just be passing in the array to items
Hi Karbi! What would a correctly formatted request look like?
Right now your request body has
items: {
data: [
{
id: "si_NrmQPCondqWU5g",
price: "price_1N3p5nEvcMarCnz5H3gajRiX",
},
],
},
it needs to be more like:
items: [
{
id: "si_NrmQPCondqWU5g",
price: "price_1N3p5nEvcMarCnz5H3gajRiX",
},
],