ListInvoiceCandidate
Queries invoice object data that can be used for invoicing.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:DescribeQueryInvoice |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Status |
array |
No |
The list of invoice object statuses. |
|
|
integer |
No |
The invoice object status. Valid values:
|
1 |
|
| Types |
array |
No |
The list of invoice object types. |
|
|
integer |
No |
The invoice object type. Valid values:
|
1 |
|
| BusinessIds |
array |
No |
The list of business document numbers. |
|
|
string |
No |
The business document number, such as an order number. |
202506 |
|
| StartTime |
string |
No |
The start time. Format: yyyy-mm-dd hh:mm:ss. |
2025-06-01 00:00:00 |
| EndTime |
string |
No |
The end time. Format: yyyy-mm-dd hh:mm:ss. |
2025-07-01 00:00:00 |
| BillingCycles |
array |
No |
The list of billing cycles. |
|
|
integer |
No |
The billing cycle. |
202506 |
|
| InvoiceIssuers |
array |
No |
The list of invoice issuers. |
|
|
string |
No |
The invoice issuer. |
ALIYUN_SERVICE |
|
| CurrentPage |
integer |
No |
The current page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
20 |
| EcIdAccountIds |
array<object> |
No |
The list of enterprises and accounts. If this parameter is left empty, the current account is queried. |
|
|
object |
No |
|||
| AccountIds |
array |
No |
The list of accessed accounts. If this parameter is left empty, all accounts under the current entity ID are selected. |
|
|
integer |
No |
The member accounts ID. |
1990699401005016 |
|
| EcId |
string |
No |
The enterprise entity ID. |
12345 |
| Nbid |
string |
No |
The level-1 marketplace ID. If this parameter is left empty, the marketplace ID of the current user is used by default. |
2684201000001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BssApiPageResult |
||
| CurrentPage |
integer |
The current page number. |
1 |
| Data |
array<object> |
The data list. |
|
|
object |
|||
| AcceptedOffsetAmount |
string |
The accepted offset amount. |
0.01 |
| AccountId |
integer |
The account ID. |
1990699401005016 |
| AccountName |
string |
The account name. |
Test account |
| BillingCycle |
integer |
The billing cycle. |
202506 |
| BusinessId |
string |
The business document number. |
202506 |
| BusinessTime |
string |
The time when the transaction occurred, in the YYYY-MM-DD HH:mm:ss format. |
2025-06-01 00:00:00 |
| CommodityCode |
string |
The commodity code. |
pts |
| CommodityName |
string |
The commodity name. |
Performance testing |
| CreateTime |
string |
The creation time, in the YYYY-MM-DD HH:mm:ss format. |
2025-06-91 00:00:00 |
| Id |
string |
The ID of the invoicing object. |
12345 |
| InvoiceIssuer |
string |
The invoice issuer. |
ALIYUN_SERVICE |
| InvoiceableAmount |
string |
The invoiceable amount. |
0.01 |
| InvoicedAmount |
string |
The invoiced amount. |
0 |
| OffsetAmount |
string |
The offset amount. |
0 |
| ProductCode |
string |
The product code. |
pts |
| ProductName |
string |
The product name. |
Performance testing |
| ResourceOwnerAccountId |
integer |
The resource ownership account ID. |
1990699401005016 |
| ResourceOwnerAccountName |
string |
The resource ownership account name. |
Test account |
| Status |
integer |
The invoice object status. |
1 |
| TotalAmount |
string |
The total amount. |
0.01 |
| Type |
integer |
The invoice object type. |
1 |
| Metadata |
any |
The response structure metadata. |
{} |
| PageSize |
integer |
The number of entries per page. |
20 |
| RequestId |
string |
The request ID. |
6000EE23-274B-4E07-A697-FF2E999520A4 |
| TotalCount |
integer |
The total number of records. |
100 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"Data": [
{
"AcceptedOffsetAmount": "0.01",
"AccountId": 1990699401005016,
"AccountName": "Test account",
"BillingCycle": 202506,
"BusinessId": "202506",
"BusinessTime": "2025-06-01 00:00:00\n",
"CommodityCode": "pts",
"CommodityName": "Performance testing",
"CreateTime": "2025-06-91 00:00:00",
"Id": "12345",
"InvoiceIssuer": "ALIYUN_SERVICE",
"InvoiceableAmount": "0.01",
"InvoicedAmount": "0",
"OffsetAmount": "0",
"ProductCode": "pts",
"ProductName": "Performance testing",
"ResourceOwnerAccountId": 1990699401005016,
"ResourceOwnerAccountName": "Test account",
"Status": 1,
"TotalAmount": "0.01",
"Type": 1
}
],
"Metadata": "{}",
"PageSize": 20,
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"TotalCount": 100
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | AccountNoQueryPricePermission | This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice. | This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice. |
| 400 | InnerAccountNoQueryPricePermission | In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group's cloud account. More questions please refer to the document. | Due to data security and compliance requirements, the Group's cloud account amount information permissions are controlled. Please understand the inconvenience caused. You can view it through HCRM/cloud platform. For details, please refer to: https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2 。 |
| 400 | InnerSubAccountNoQueryPricePermission | In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group's cloud account. | Due to data security and compliance requirements, the Group's cloud account amount information permissions are controlled. Please understand the inconvenience caused. You can view it through HCRM/cloud platform. For details, please refer to: https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2 。 |
| 400 | SubAccountNoQueryPricePermission | This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice. | This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice. |
| 400 | InvalidParameter | The specified request contains invalid parameters. | |
| 400 | NoPermission | You are not authorized to perform this action. | You do not have permissions to perform the operation. |
| 400 | InvoiceCandidateSearchTimeInvalid | Invoicing Candidate query time is illegal. | Invoicing Candidate query time is illegal |
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.