Consumption Records

Last updated:2026-10-14 17:30:11

Source: 消费记录 · Category: Interface — AI Image Generation (接口-AI生图) · Updated 2026-09-22 16:32:18


English Translation

Consumption Records

Provides merchants with queries of all income and expense records, and synchronously returns AI-task-related points changes, recharges, consumption details, and other result data — used for account fund reconciliation and AI image-generation call-cost statistics.

Interface Information

Item Value
Endpoint http://www.colorpark.cn/api/partner/charge
Method POST

Request Parameters

Parameter Example Value Required Description
partner_id 2025000001 Yes Merchant ID provided by the Open Platform (view in the Open Platform: Merchant Management → My Merchant → Number)
once 8305 Yes Random value used when generating the encrypted signature
time 1646790335 Yes Timestamp used when generating the encrypted signature
sign 9ce3ce7a3fccaf3d7715bd7e9bb1dc1c Yes Signature string obtained from the "Generate Merchant Signature" interface
page 1 Yes Page number
limit 10 Yes Number of records displayed per page
type inc Yes Consumption record type: inc — income; exp — expense

Response Result

Note: The source table header repeats "参数名 参数名"; normalized below as Parameter / Example Value / Description.

Parameter Example Value Description
code 0 Result status code — 0 on success, 1 on failure
msg 请求成功 (Request successful) Result description, e.g. "Request successful"
data.list — Array of consumption-record objects (fields below)
data.list[].id 271 Record ID
data.list[].partner_id 2025000001 Merchant ID
data.list[].ai_queue_id 470 Task number
data.list[].type inc Record type: inc — income; exp — expense
data.list[].points 100 For income: recharge amount; for payment: consumption amount
data.list[].balance 8852 Points balance
data.list[].comment 商户充值 (Merchant recharge) Consumption type name
data.list[].source ai Consumption record source
data.list[].app_number 1000925001 AI photo-machine application number
data.list[].create_time 2025/12/16 11:46:06 Record creation time
data.list[].update_time 2025/12/16 11:46:06 Record last-update time
data.list[].partner_name 测试代理 (Test Agent) Merchant name
data.list[].template_name 实现主体一致的多图编辑 (Multi-image editing with consistent subject) AI template name
data.list[].admin_name A2 Operator account name
data.list[].type_text 收入 (Income) Record type name: income, expense

If you encounter unsolvable issues while debugging the device, contact the cloud-printing representative for troubleshooting. Contact details: Tel: 137-5177-4454 [WeChat same number] Email: info@ColorPark.cn

UV cloud-printing service provider with deep software-hardware integration ® Ruifengcai