refundSession duration

Hello! I’m working on the refund code and I have a question. When I receive a refund creation attempt, I plan to return a 201 status so that Shopify stops retrying. Later, I will process the refund and then either resolve or reject it. However, if something fails on the server side during the refund process, I would like to know:

  • How long does the created refundSession last? Does it have an expiration time?
  • How should I respond to cancel that refund in case there’s a server issue? Should I simply reject the refund?

Could you help clarify this?