---
title: "Retry failed payment"
method: POST
path: "/api/billing/retry-payment"
---

# Retry failed payment

`POST /api/billing/retry-payment`

## Request

- Base URL: `https://app.base44.com`
- URL: `https://app.base44.com/api/billing/retry-payment`
- Auth: HTTP bearer

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Retries the overdue invoice on your workspace's subscription after a renewal payment fails and the subscription is past due. Only the workspace owner can retry.

<Warning>This charges the saved payment method right away, with no confirmation step.</Warning>

If the subscription is already active again, nothing is charged and `success` is `true`. If the bank asks the payer to confirm the payment, `success` is `false`: send them to `payment_action_url`. A declined card returns 400. Update the card with [Create billing portal session](/api-reference/create-billing-portal-session) and `flow_type` set to `payment_method_update`, then retry.

This works for subscriptions billed through Stripe. It doesn't pay an overdue invoice on a workspace billed through Wix.

The base rate limit is 5 requests per hour per user. See [Rate limits](/developers/references/apps-api/get-started/rate-limits) for the multiplier your plan gets.

## Response `200`

The invoice is paid, or the payer has to confirm the payment.

- PaymentRetryResult: The outcome of retrying an overdue payment.
  - `success` boolean, required: `true` when the invoice is paid, or was already. `false` when the payer has to confirm the payment.
  - `payment_action_url` string, nullable, required: Stripe page where the payer confirms the payment when `success` is `false`. Otherwise `null`.

## Other responses

- `400`: The workspace has no active subscription, it isn't past due, there's no open invoice, or the card was declined.
- `401`: Missing or invalid credentials. A read-only token gets this response too.
- `403`: You aren't the workspace owner, or a payment dispute is open on the workspace.
- `429`: Rate limit exceeded. The base rate limit is 5 requests per hour per user. See [Rate limits](/developers/references/apps-api/get-started/rate-limits) for the multiplier your plan gets.

## Changes

> 66 revisions in range; 1 not diffed.

- **2026-10-26** `395a6758864a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/adexad/apis/base44-app-management-api/changes/api/billing/retry-payment/post.md)

---

[API](https://skmtc.dev/adexad/apis/base44-app-management-api.md) - [All operations](https://skmtc.dev/adexad/apis/base44-app-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adexad/apis/base44-app-management-api/revisions/d877a932dc19?raw)
