---
title: "Billing Request Invoice"
method: POST
path: "/api/billing/invoicing/invoices"
---

# Billing Request Invoice

`POST /api/billing/invoicing/invoices`

提交开票申请。金额 = 所选订单之和,不接受任意金额——发票按订单绑定,
这正是「同一单开不出第二张票、余额永不为负」的来源。

落库即 `pending`,并立刻占住这些订单(可开票余额随之减少),否则同一批
订单可以被连着提交多次。管理员回填真实票号后转 `issued`;作废才会把
订单释放回可开票。

## Headers

- `authorization` string, nullable

## Request body

- SelfInvoiceIn — A self-service invoice request. Deliberately narrower than the admin's `RecordInvoiceIn`: no `status`, no `invoice_no` and no `content`. A user may not declare their own invoice already issued, and the content line is fixed (软件服务费) so every invoice we hand to the tax system reads the same.
  - `order_nos` string[], required
  - `buyer_type` string, required
  - `buyer_title` string, required
  - `buyer_tax_id` string, nullable
  - `buyer_email` string, nullable
  - `invoice_kind` string
  - `buyer_address` string, nullable
  - `buyer_phone` string, nullable
  - `buyer_bank` string, nullable
  - `buyer_bank_account` string, nullable
  - `remark` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/ab56f76234f2/schema)
