---
title: "POST /v1/invoices/finalize"
method: POST
path: "/v1/invoices/finalize"
tags: ["Money"]
---

# POST /v1/invoices/finalize

`POST /v1/invoices/finalize`

## Request body

- MarketApiFinalizeInvoiceRequest
  - `invoice_id` string, required

## Response `200`

Invoice finalized

- MarketApiFinalizeInvoiceResponse
  - `object` 'payment', required
  - `success` boolean, required
  - `invoice_id` string, required
  - `payment_intent_id` string, required
  - `client_secret` string, required
  - `status` string, required
  - `hosted_invoice_url` string, nullable — Stripe-hosted payment page URL for this invoice

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `404` — Invoice not found
- `500` — Internal server error

## Changes

- **2026-05-15** `b819ba3108b3` — 12 breaking, 5 info
  - removed the required property `details` from the response with the `400` status
  - removed the required property `details` from the response with the `403` status
  - removed the required property `details` from the response with the `404` status
  - removed the required property `details` from the response with the `500` status
  - …13 more
- **2026-02-17** `ad9dff266598` — 1 info
  - the endpoint scheme security `market-api_bearer_auth` was added to the API
- **2026-02-17** `48ff5f0fb9ee` — 1 info
  - the endpoint scheme security `market-api_bearer_auth` was removed from the API
- **2026-02-17** `0222183e15b3` — 1 info
  - the endpoint scheme security `market-api_bearer_auth` was added to the API

[Change history](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/changes/v1/invoices/finalize/post.md)

---

[API](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/revisions/93dd7661e9bb?raw)
