Skip to main content

Get Payment Failure Status

GET 

/api/account/payment-failure-status

Return the data the frontend block screen needs to render the failed-to-charge UX:

  • Which subscription failed (id, product, amount).
  • The card-attempts history (so we don't ask the user to re-enter a card we already know fails).
  • The Stripe publishable key from the correct integration so the frontend Elements form attaches against the right Stripe account.
  • A countdown to the auto-cancel deadline.

Returns in_failed_to_charge=False when the tenant is not in the dunning state, so the frontend can no-op without rendering the modal.

Request

Responses

Successful Response