QueryAccountTransactionDetails

Updated at:
Copy as MD

Queries the income and expenditure details of account transactions.

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 ID or bill ID.

2022120336190912

TransactionChannelSN

string

No

The payment reference No. of the transaction channel.

2022112122001470591458665933

CreateTimeStart

string

No

The start time of creation.

2022-01-20

CreateTimeEnd

string

No

The end time of creation.

2022-12-20

TransactionType

string

No

The transaction type. If you specify one of the following transaction types, the query returns results of the specified type. If no results are found, an empty result is returned. If you do not specify this parameter, all types are returned by default.

Valid values:

  • Payment: top-up

  • Withdraw: withdrawal

  • Refund: refund

  • Consumption: consumption

  • Transfer: transfer

  • Adjust: adjustment

Payment

TransactionChannel

string

No

The transaction channel. If you specify one of the following transaction channel types, the query returns results of the specified type. If no results are found, an empty result is returned. If you do not specify this parameter, all types are returned by default.

Valid values:

  • AccountBalance: account balance

  • BankTransfer: bank transfer

  • Alipay: Alipay

  • AntCreditPay: Ant Credit Pay

  • OfflineRemittance: offline remittance

  • RegularBankCreditRefund: credit limit refund

  • CreditCard: credit card

  • MyBankCredit: MYbank credit

  • HuaxiaBankCInstallment: Huaxia Bank installment

  • ApplePay: Apple Pay

AccountBalance

NextToken

string

No

The paging token for the paged query.

ABEDSDS124DASA

MaxResults

integer

No

An invalid parameter.

0

Response elements

Element

Type

Description

Example

object

The API response.

Code

string

The response status code.

200

Data

object

The response data.

AccountName

string

The account name.

yidi

AccountTransactionsList

object

AccountTransactionsList

array<object>

The list of transaction details.

object

The transaction detail.

Amount

string

The amount.

1.00

Balance

string

The balance.

0

BillingCycle

string

The billing cycle.

2022-10

FundType

string

The fund type.

Valid values:

  • Cash: cash

  • Deposit: deposit

  • RegularBankCreditRefund: credit limit refund

  • DirectPay: direct payment for orders

Cash

RecordID

string

The order ID or bill ID.

2022120336190912

Remarks

string

The remarks.

Test

TransactionAccount

string

The corresponding transaction account.

fortune_test@xxx.com

TransactionChannel

string

The transaction channel.

Alipay

TransactionChannelSN

string

The payment reference No. of the transaction channel.

123232434343532

TransactionFlow

string

The income and expenditure type. If you specify one of the following types, the query returns results of the specified type. If no results are found, an empty result is returned. If you do not specify this parameter, all types are returned by default.

Valid values:

  • Income: income

  • Expense: expense

Income

TransactionNumber

string

The transaction number.

43342334

TransactionTime

string

The transaction time in the YYYY-MM-DD format.

2022-10-01

TransactionType

string

The transaction type. If you specify one of the following transaction types, the query returns results of the specified type. If no results are found, an empty result is returned. If you do not specify this parameter, all types are returned by default.

Valid values:

  • Payment: top-up

  • Withdraw: withdrawal

  • Refund: refund

  • Consumption: consumption

  • Transfer: transfer

  • Adjust: adjustment

Consumption

MaxResults

integer

An invalid parameter.

0

NextToken

string

The pagination token.

ASHDADS

TotalCount

integer

The total number of query results.

100

Message

string

The result description.

SUCCESS

RequestId

string

The request ID.

asadadad-edafafafaasd

Success

boolean

Indicates whether the request is successful.

true

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.