#.saberkhan
1 messages · Page 1 of 1 (latest)
I have tried other fields under shipping_options and it gives the same errro
Postman is not allowing it
shipping_options[shipping_rate]
is the postman code
I wrote the above code in postman and it is giving the same error
That's not an array of hashes either
I wrote similar code in postmand and it works. Only this time with shipping_options is not workin
needs to be something like:
shipping_options=[{shipping_rate: rate}]
Let me try the above
Not sure how postman's syntax works, but the main thing is it needs to be an array of hashes
I am trying
Although I am trying to pass array of hashes, input in postman is [shipping_options] =[shipping_rate:shr_1NYURxCjwmDvqQqqRq36OsCe] and output becomes string like "shipping_options": "[shipping_rate:shr_1NYURxCjwmDvqQqqRq36OsCe]",
Here is the error code "error": {
"message": "Invalid array",
"param": "shipping_options",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_oI5rmJgpHlRwvD?t=1690472497",
"type": "invalid_request_error"
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Since request body needs to be form encoded, have you tried:
shipping_options[0][shipping_rate]=rate
No problem
Thank you again!