---
title: "Apply invoice"
method: POST
path: "/account/v1alpha1/invoice/apply"
tags: ["ApplyInvoice"]
---

# Apply invoice

`POST /account/v1alpha1/invoice/apply`

## Request

- Base URL: `https://localhost:2333`
- URL: `https://localhost:2333/account/v1alpha1/invoice/apply`
- Auth: none declared

Apply invoice

## Request body

- HelperApplyInvoiceReq
  - `detail` string, required: invoice detail information json @Summary Invoice detail information @Description Invoice detail information @JSONSchema required
  - `kubeConfig` string
  - `owner` string
  - `paymentIDList` string[], required: payment id list @Summary Payment ID list @Description Payment ID list @JSONSchema required
  - `token` string
  - `userID` string
  - `userUID` string

## Response `200`

successfully apply invoice

- object

## Other responses

- `400`: failed to parse apply invoice request
- `401`: authenticate error
- `403`: no payment can be applied to the invoice
- `500`: failed to apply invoice

## Changes

- **2024-08-23** `6db554be255d`: 1 info
  - endpoint added
- **2023-12-13** `ac0fa9d94489`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/labring/apis/sealos-account-service/changes/account/v1alpha1/invoice/apply/post.md)

---

[API](https://skmtc.dev/labring/apis/sealos-account-service.md) - [All operations](https://skmtc.dev/labring/apis/sealos-account-service/llms.txt) - [OpenAPI document](https://skmtc.dev/labring/apis/sealos-account-service/revisions/acd38d9540d3?raw)
