---
title: "Get user payment"
method: POST
path: "/account/v1alpha1/costs/payment"
tags: ["Payment"]
---

# Get user payment

`POST /account/v1alpha1/costs/payment`

## Request

- Base URL: `https://localhost:2333`
- URL: `https://localhost:2333/account/v1alpha1/costs/payment`
- Auth: none declared

Get user payment within a specified time range

## Request body

- HelperGetPaymentReq
  - `endTime` string
  - `invoiced` boolean: @Summary Invoiced @Description Invoiced @JSONSchema
  - `kubeConfig` string
  - `owner` string
  - `page` integer: @Summary Page @Description Page
  - `pageSize` integer: @Summary Page Size @Description Page Size
  - `paymentID` string: @Summary Payment ID @Description Payment ID @JSONSchema
  - `startTime` string
  - `token` string
  - `userID` string
  - `userUID` string

## Response `200`

successfully retrieved user payment

- object

## Other responses

- `400`: failed to parse user payment request
- `401`: authenticate error
- `500`: failed to get user payment

## Changes

- **2024-03-11** `6d1bd17a81ae`: 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/costs/payment/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)
