---
title: "Confirm extra credits payment"
method: POST
path: "/api/extra-credits/confirm"
tags: ["Billing"]
---

# Confirm extra credits payment

`POST /api/extra-credits/confirm`

## Request

- Base URL: `https://api.xpoz.ai`
- URL: `https://api.xpoz.ai/api/extra-credits/confirm`
- Auth: HTTP bearer

Finalize a purchase after the client confirmed the payment intent.

## Request body

- object
  - `paymentIntentId` string, required

## Response `200`

Charged.

- ChargeConfirmed
  - `charged` true, required
  - `newBalance` number, required

## Other responses

- `400`: Query or body validation failed. `message` joins all validation issues with `, `.
- `401`: Missing or invalid credentials.
- `500`: Server error.

---

[API](https://skmtc.dev/xpoz/apis/xpoz-api.md) · [All operations](https://skmtc.dev/xpoz/apis/xpoz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xpoz/apis/xpoz-api/revisions/c18261f587a4?raw)
