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

Returns a link to view or download one invoice. The link opens a hosted page or PDF for a person to open in a browser. Only the workspace owner can call this.

Use it for invoices billed through Wix, and for Google Ads charges on a workspace billed through Wix. Open Wix invoices here rather than through their hosted_invoice_url. Stripe invoices already carry hosted_invoice_url and invoice_pdf in Get billing info, so you don't need this endpoint for them. It works only on a workspace that has a Wix billing account, and returns 400 on any other.

A Wix invoice link works once. A Google Ads link is Stripe's own invoice PDF or page.

The call can take up to 30 seconds while the billing providers answer. If a provider doesn't answer, its invoices read as not found, so retry a 404 for an ID you just read from Get billing info.

The base rate limit is 20 requests per hour per user. See Rate limits for the multiplier your plan gets.

post/api/billing/open-invoice/{invoice_id}

Request

  • Base URL
    https://app.base44.com
  • URL
    https://app.base44.com/api/billing/open-invoice/{invoice_id}
  • Auth
    HTTP bearer

Path parameters

invoice_idstring required

ID of the invoice, from invoices[].id in Get billing info.

Response

A link to the invoice.

urlstring required

Link to a hosted page. Open it in a browser for a person to finish there. Some links work only once or expire, so open it right away and don't store it.

Example response

{
  "url": "https://billing.stripe.com/p/session/live_YWNjdF8xTjNYcm1EcjU2TDg5ZGtL"
}

Changes