---
title: "Get User Consumption History"
method: POST
path: "/api/pay/v1/userconsumption"
---

# Get User Consumption History

`POST /api/pay/v1/userconsumption`

## Request

- Base URL: `https://api.videofaceswap.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.videofaceswap.io/api/pay/v1/userconsumption`
- Auth: HTTP bearer

## Query parameters

- `app_id` string, required

## Request body

- HistoryCreditsItem
  - `page` integer, required: 页码
  - `page_count` integer, required: 每页数量
  - `change_type` integer[]: 订单类型：0.充值；1.消费,2返还
  - `function` integer[]: 功能：0.购买积分；1.视频换脸；2.多人视频换脸；3.单人图片换脸；4.多人图片换脸；
  - `start_time` string: 开始时间
  - `end_time` string: 开始时间
  - `is_check_points` boolean: 是否查询积分消耗

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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