#xandert.93
1 messages ยท Page 1 of 1 (latest)
Haha no just a simple question. Accidentally created a shipping rate I no longer want
I can't find a deletion method in the API nor dashboard
you can visit https://dashboard.stripe.com/test/shipping-rates for test mode shipping rates or https://dashboard.stripe.com/shipping-rates for live mode
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
do you have an example? a shipping rate id?
taking a look
Thanks
But broader picture, I'd also like to know whether I can delete them. Odd that there isn't a method for it
Yes
I'm aware
But that's because I can't delete it
So kindly, for the third time of asking, can I or you delete it?
Archived = deleted
there is no hard delete
Because this means that when fetching shipping rates, I need to pass the active option to ensure I don't fetch those that are archived
Thanks for trying, but your attempt hasn't been very helpful in this regard. I will ask someone else on Stripe. Thanks anyway ๐
which is quite understandable
anyone on Stripe would tell you the same
Well, it would also be useful if you gave me the rationale for being unable to perform a hard delete
But you haven't.
API resources should be CRUD-able. I don't understand why CRU is only possible with shipping rates
as I explained we don't perform hard deletes for many reasons and instead we Archive the shipping rates
Okay, that answer would have sufficed 38 minutes ago
Secondly, in which event can I access the purchased product details following checkout completion? I am using Stripe Checkout
checkout.session.completed https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Which attribute?
I want the product details and quantities etc
I can't find them in that event
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're not answering me
I did answer you
Just say you don't know if you don't know. There's no shame in it
I've inspected that object heavily
you just need to go to that link
I have
this is quantity https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_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.
But nowhere do any of its attributes pertain to what I'm looking for
this is the price id https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data-price
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
would you mind sharing that event id?
maybe it would be easier to see what you're looking at
Sure
evt_1M1nwaHlXJfTMfJmqEgDz5e1
Again, I'm just looking for the product ID's of the purchased products as well as their quantities
sure thing will take a look
Okay
ok so recently we changed the API to help reduce latency so we no longer send the line_items on the checkout object related events instead you should be using https://stripe.com/docs/api/checkout/sessions/line_items to retrieve the line_items and then get the data you need
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Finally!
Wow
Instead you sent me 4 unhelpful links to begin with
Please don't half-ass your responses in the future. It would be appreciated ๐
Hi there, in Stripe Checkout, is there a way to configure the ordering of listed shipping rates?
[10:25]xandert.93: For example, I'd like the Free rate to be at the bottom
let me check!
Thanks
it's based on the order that you pass the items in the shipping_options array.
Okay
So since I'm fetching them from Stripe
I'd need to manually perform a sort on them myself before passing them as shipping_options?
they're returned in reverse chronological order by created date when you list objects in the API, if you want a different sorting applied to the CheckoutSession then yes.
And to double check, it's impossible to delete shipping orders, right?
Because that would enable me to recreate them in an order that suits me
what is a 'shipping order'?
my colleague answered that already. No, you can't delete them. You can update their active boolean to false and then pass an active filter to the list endpoint