ListInvoiceCandidate

Updated at:
Copy as MD

Queries invoice object data that can be used for invoicing.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • 0 :

    Invoiced.

  • 1 :

    Uninvoiced (invoiceable)

  • 2 :

    Partially invoiced.

  • 3 :

    Invoicing in progress and locked.

1

Types

array

No

The list of invoice object types.

integer

No

The invoice object type.

Valid values:

  • 1 :

    Order.

  • 2 :

    Bill.

  • 3 :

    Contract.

  • 4 :

    Adjustment bill.

  • 5 :

    Refund order.

  • 7 :

    Adjustment order.

  • 8 :

    Commission bill.

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.