> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/api-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/api-reference/platform-service/zbc/datastructure.md).

# Data Types

## AccountHistoryInfo

Account transaction record.

Referenced by：DescribeTransactionHistory

| Parameter Name  | Type   | Description                                                                                                                                   |
| --------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| uid             | String | Unique identifier of the transaction record.                                                                                                  |
| accountUid      | String | Unique identifier of the account.                                                                                                             |
| transactionTime | String | <p>Transaction time.</p><p>Time format: yyyy-MM-ddTHH<span data-gb-custom-inline data-tag="emoji" data-code="1f1f2-1f1f2">🇲🇲</span>ssZ.</p> |
| amount          | Float  | Transaction amount.                                                                                                                           |
| cashBalance     | Float  | Account balance after this transaction.                                                                                                       |
| tradeType       | String | <p>Direction of the transaction.</p><p>Valid values: INCOME (income) and EXPENDITURE (expenditure).</p>                                       |
| paymentMethod   | String | Payment method.                                                                                                                               |
| description     | String | <p>Transaction description.</p><p>The content consists of product and specification information, and may contain line breaks.</p>             |
| transactionType | String | Transaction type.                                                                                                                             |
| tradeNo         | String | Transaction serial number.                                                                                                                    |
| orderSn         | String | Order number.                                                                                                                                 |

## BillingDetailInfo

Monthly bill details.

Referenced by：DescribeBillDetail

| Parameter Name    | Type    | Description                                                                                                                                 |
| ----------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| billMonthly       | Integer | Transaction month.                                                                                                                          |
| label             | String  | Product name.                                                                                                                               |
| resourceId        | String  | Resource ID (instance ID).                                                                                                                  |
| product           | String  | Product line.                                                                                                                               |
| productSubitem    | String  | Product subitem.                                                                                                                            |
| billingMode       | String  | Billing mode.                                                                                                                               |
| orderSn           | String  | Order number.                                                                                                                               |
| deductionTime     | String  | <p>Deduction time.</p><p>Time format: yyyy-MM-ddTHH<span data-gb-custom-inline data-tag="emoji" data-code="1f1f2-1f1f2">🇲🇲</span>ssZ.</p> |
| amount            | Float   | Bill amount.                                                                                                                                |
| voucher           | Float   | Amount paid with vouchers.                                                                                                                  |
| cash              | Float   | Amount paid in cash.                                                                                                                        |
| location          | String  | Region.                                                                                                                                     |
| resourceGroupId   | String  | Resource group ID.                                                                                                                          |
| resourceGroupName | String  | Resource group name.                                                                                                                        |
| startTime         | String  | <p>Start time.</p><p>Time format: yyyy-MM-ddTHH<span data-gb-custom-inline data-tag="emoji" data-code="1f1f2-1f1f2">🇲🇲</span>ssZ.</p>     |
| endTime           | String  | <p>End time.</p><p>Time format: yyyy-MM-ddTHH<span data-gb-custom-inline data-tag="emoji" data-code="1f1f2-1f1f2">🇲🇲</span>ssZ.</p>       |

## MonthlyBillSummary

Monthly bill summary item.

Referenced by：DescribeMonthlyBillSummary

| Parameter Name    | Type   | Description                |
| ----------------- | ------ | -------------------------- |
| product           | String | Product.                   |
| resourceGroupId   | String | Resource group ID.         |
| resourceGroupName | String | Resource group name.       |
| spend             | Float  | Spend amount.              |
| voucher           | Float  | Amount paid with vouchers. |
| cash              | Float  | Amount paid in cash.       |
| refund            | Float  | Refund amount.             |

## RechargeRefundHistory

Recharge and refund record.

Referenced by：DescribeRechargeRefundHistory

| Parameter Name  | Type   | Description                                                                                                                                   |
| --------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| accountUid      | String | Unique identifier of the account.                                                                                                             |
| transactionTime | String | <p>Transaction time.</p><p>Time format: yyyy-MM-ddTHH<span data-gb-custom-inline data-tag="emoji" data-code="1f1f2-1f1f2">🇲🇲</span>ssZ.</p> |
| transactionId   | String | Transaction serial number.                                                                                                                    |
| state           | String | <p>Transaction state.</p><p>Valid values: PAYING (paying), PAY\_FAILED (payment failed), and PAY\_SUCCESS (payment succeeded).</p>            |
| transactionType | String | Transaction type.                                                                                                                             |
| paymentMethod   | String | Recharge method.                                                                                                                              |
| amount          | Float  | Transaction amount.                                                                                                                           |

## RechargeState

Recharge state.

Referenced by：DescribeRechargeRefundHistory

| Value         | Description                                                                                                                                                           |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| NO\_NEED\_PAY | <p>No payment required.</p><p>Applies to the recharge records of CNY customers. Records in this state are not returned when querying recharge and refund records.</p> |
| PAYING        | Paying.                                                                                                                                                               |
| PAY\_FAILED   | Payment failed.                                                                                                                                                       |
| PAY\_SUCCESS  | Payment succeeded.                                                                                                                                                    |

## SummaryType

Bill summary dimension.

Referenced by：DescribeMonthlyBillSummary

| Value           | Description        |
| --------------- | ------------------ |
| PRODUCT         | By product.        |
| RESOURCE\_GROUP | By resource group. |

## TransactionType

Transaction type.

Referenced by：DescribeTransactionHistory

| Value                | Description                                                                        |
| -------------------- | ---------------------------------------------------------------------------------- |
| RECHARGE             | Recharge.                                                                          |
| REFUND               | Refund.                                                                            |
| DEDUCTION            | <p>Deduction.</p><p>Charges incurred by resource consumption.</p>                  |
| UPGRADE              | <p>Upgrade.</p><p>Transactions generated by upgrading resource configurations.</p> |
| ORDER\_REFUND        | Order refund.                                                                      |
| PRE\_BILLING\_REFUND | Refund of the pre-billing amount for postpaid resources.                           |
| DERATE               | Waiver.                                                                            |
| ORDER\_FROZEN        | Freezing of the order frozen amount.                                               |
| ORDER\_UNFROZEN      | Unfreezing of the order frozen amount.                                             |
| NS\_SYNC             | Transaction synchronized from NetSuite.                                            |
