Account Information Inquiry
Query Resource Package List and Remaining Quantity under the Account
Note: This interface can be called for free to help you check the resource package list and remaining Quantity under your account. However, please control the request rate (QPS <= 1).
Protocol
Request URL
Request Method
Request Format
Response Format
https
/account/costs
GET
application/json
application/json
Request Header
Field
Value
Description
Content-Type
application/json
Data Exchange Format
Authorization
Authentication information, refer to API authentication
Authentication information, refer to API authentication
Query Parameters
Field
Type
Required Field
Default
Description
start_time
int
Yes
None
Start time for the query, Unix timestamp in ms
end_time
int
Yes
None
End time for the query, Unix timestamp in ms
resource_pack_name
string
No
None
Resource package name for precise querying of a specific package
Request Body
None
Response Body
JSONCopyCollapse
12345678910111213141516171819202122{
"code": 0, //Error codes;Specific definitions can be found in Error codes
"message": "string", //Error information
"request_id": "string", //Request ID, generated by the system, is used to track requests and troubleshoot problems
"data":{
"code": 0, //Error codes;Specific definitions can be found in Error codes
"msg": "string", //Error information
"resource_pack_subscribe_infos": [ //Resource package list
{
"resource_pack_name": "Video Generation - 10,000 entries", //Resource package name
"resource_pack_id": "509f3fd3d4ab4a3f9eec5db27aa44f27", //Resource package ID
"resource_pack_type": "decreasing_total", //Resource package name,Enum values,"decreasing_toal" = decreasing total,"constant_period" = constant periodicity
"total_quantity": 200.0, //Total quantity
"remaining_quantity": 118.0, //Remaining quantity (please note that the remaining quantity is updated with a 12-hour delay)
"purchase_time": 1726124664368, //Purchase time, Unix timestamp in ms
"effective_time": 1726124664368, //Effective time, Unix timestamp in ms
"invalid_time": 1727366400000, //Expiration time,Unix timestamp in ms
"status": "expired" //Resource Package Status,Enum values,"toBeOnline" = Pending effectiveness,"online" = In effect,"expired" = Expired,"runOut" = Used up
}
]
}
}
Last updated