All Products
Search
Document Center

Expenses and Costs:QueryAccountTransactionDetails

Last Updated:Oct 28, 2025

Queries the details of account transactions (income and expenditure).

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

bssapi:QueryAccountTransactionDetails

get

*All Resource

*

None

None

Request parameters

Parameter

Type

Required

Description

Example

TransactionNumber

string

No

The transaction number.

410874027490089

RecordID

string

No

The order number or bill number.

2022120336190912

TransactionChannelSN

string

No

The transaction serial number (SN) assigned by the payment channel.

2022112122001470591458665933

CreateTimeStart

string

No

The start of the creation time range.

2022-01-20

CreateTimeEnd

string

No

The end of the creation time range.

2022-12-20

TransactionType

string

No

Valid values:

  • Payment

  • Withdraw

  • Refund

  • Consumption

  • Transfer

  • Adjust

CHARGE

TransactionChannel

string

No

Valid values:

  • AccountBalance: Account balance

  • BankTransfer: Bank transfer

  • Alipay: Alipay

  • AntCreditPay: Ant Credit Pay

  • OfflineRemittance: Offline remittance

  • RegularBankCreditRefund: Credit control refund

  • CreditCard: Credit card

  • MyBankCredit: MYbank Trust Pay

  • HuaxiaBankCInstallment: Huaxia Bank installment

  • ApplePay: Apple Pay

ALIPAY

NextToken

string

No

The token for a paged query.

ABEDSDS124DASA

MaxResults

integer

No

This parameter is not in use.

0

Response elements

Parameter

Type

Description

Example

object

The returned result.

Code

string

The status code of the response.

200

Message

string

The description of the result.

SUCCESS

RequestId

string

The ID of the request.

asadadad-edafafafaasd

Success

boolean

Indicates whether the request was successful.

true

Data

object

The content of the result.

NextToken

string

The paging token.

ASHDADS

TotalCount

integer

The total number of query results.

100

MaxResults

integer

This parameter is not in use.

0

AccountName

string

The account name.

yidi

AccountTransactionsList

object

AccountTransactionsList

array<object>

The list of details.

object

The result.

BillingCycle

string

The billing cycle.

2022-10

TransactionChannel

string

The transaction channel.

ALIPAY

RecordID

string

The order number or bill number.

2022120336190912

Remarks

string

The remarks.

Test

Amount

string

The amount.

1.00

TransactionAccount

string

The transaction account.

fortune_test@xxx.com

TransactionTime

string

The transaction time.

2022-10-01

TransactionType

string

Transfer

Adjust

Consumption

TransactionFlow

string

Income

Expense

Income

FundType

string

RegularBankCreditRefund: Credit control refund

DirectPay: Direct pay

Cash

TransactionChannelSN

string

The payment reference No. of the transaction channel.

123232434343532

TransactionNumber

string

The transaction number.

43342334

Balance

string

The balance.

0

Examples

Success response

JSON format

{
  "Code": "200",
  "Message": "SUCCESS",
  "RequestId": "asadadad-edafafafaasd",
  "Success": true,
  "Data": {
    "NextToken": "ASHDADS",
    "TotalCount": 100,
    "MaxResults": 0,
    "AccountName": "yidi",
    "AccountTransactionsList": {
      "AccountTransactionsList": [
        {
          "BillingCycle": "2022-10",
          "TransactionChannel": "ALIPAY",
          "RecordID": "2022120336190912",
          "Remarks": "Test\n",
          "Amount": "1.00",
          "TransactionAccount": "fortune_test@xxx.com",
          "TransactionTime": "2022-10-01",
          "TransactionType": "Consumption",
          "TransactionFlow": "Income",
          "FundType": "Cash",
          "TransactionChannelSN": "123232434343532",
          "TransactionNumber": "43342334",
          "Balance": "0"
        }
      ]
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.