#19645·saleor

Improve validation for refund grants and reported refund totals

Author: NyanKiyoshiCreated Aug 10, 2026Updated Aug 11, 2026

Saleor should reject refund-related inputs that exceed the amount available to refund.

Currently, the backend can accept refund grants (orderGrantRefundCreate) above the order's total & above the charged amount. While this is rejected by PSPs, Saleor should properly ensure refunds cannot exceed the limits

The following places need to be updated:

Scope:

  • Add validation to prevent refund grants from exceeding the refundable/order amount
  • Add validation to prevent cumulative successful refund events from exceeding the charged amount
  • Ensure locks are properly acquired
  • Ensure invalid refund state cannot drive charged amounts below zero