---
title: "Post Debit"
method: POST
path: "/api/billing/debit"
tags: ["billing"]
---

# Post Debit

`POST /api/billing/debit`

Frontend dialog flow uses this to debit the prepaid balance (the flat run fee)
before the run row is inserted. The training-agent claim path bills the same fee via
routes/training_internal.py (debit_for_run), not through this route.

## Request body

- DebitBody
  - `orgId` string, required
  - `runId` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/freesolo/apis/platform-backend.md) · [All operations](https://skmtc.dev/freesolo/apis/platform-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/freesolo/platform-backend/revisions/5626e92675af/schema)
