#Min.K
1 messages · Page 1 of 1 (latest)
Yes, these 3 fields wont' be null.
However, we received the following response
Exactly which field is not null ?
{"error":{"message":"Keys for idempotent requests can only be used with the same parameters they were first used with. Try using a key other than '12345' if you meant to execute a different request.","request_log_url":"https://dashboard.stripe.com/test/logs/req_swlg4OkCl9jRq9?t=1683860598","type":"idempotency_error"}}%
I saw message and type, but not code
The API reference says (https://stripe.com/docs/api/errors#errors-code) For some errors that could be handled programmatically, a short string indicating the error code reported.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Based on my personal experience, message and type are always there.
What's your real question? what problem do you want to solve?
To develop source code to parse the error content, you need to know whether it is null or not null.
However, the document does not indicate whether each field is null or not null.
I think this is a basic part.
So, it would be nice to add it to the documentation.
https://github.com/stripe/stripe-node or you can just refer to the typing in Stripe SDK