# Billing GraphQL API Fields

:::note
The Billing GraphQL API is only available for *Online Sales* accounts.
:::

Each [GraphQL API dataset](/en/documentation/devtools/graphql-api/features/#datasets) has specific fields that can be used when querying for data from that dataset.

See each available field and their descriptions below.

---

## balanceFinancialEntry (Financial Entries)

| Field | Description |
| ----- | ----------- |
| clientId | Client unique identifier on Azion. Example: `8437r` |
| entryType | Financial entry type. Example: `debit`, `trial_credit` |
| description | Description of the balance entry that'll be disposed to the client bill and invoice |
| amount | Amount registered in the financial entry according to the currency. Example: `18750` |
| currency | Currency used in the financial entry. Example: `BRL` |

---

## paymentsClientDebt (Client Debts)

| Field | Description |
| ----- | ----------- |
| clientId | Client unique identifier on Azion. Example: `8437r` |
| created | Date which the client debt was created/generated in year-month-day format. Example: `2023-07-31` |
| amount | Total value accounted for the client debt according to the currency. Example: `625` |
| currency | Currency used for the client debt. Example: `BRL` |
| startDate | Start date of the accounted data in year-month-day format. Example: `2022-06-01` |
| endDate | End date of the accounted data in year-month-day format. Example: `2022-06-30` |
| paymentDate | Date for the client payment in year-month-day format. Example: `2023-07-10` |
| cardBrand | Brand of the card used by the client for payment. Example: `VISA` |
| cardLast4Digits | Last 4 (four) digits from the client card. Example: `4456` |

---

## billDetail (Bill Details)

| Field | Description |
| ----- | ----------- |
| clientId | Client unique identifier. Example: `0001a` |
| periodFrom | Start date of the accounted data in year-month-day format. Example: `2023-07-01` |
| periodTo | End date of the accounted data in year-month-day format. Example: `2023-07-31` |
| productSlug | Identifier of the product. Example: `edge_functions` |
| metricSlug | Identifier of the metric. Example: `invocations` |
| regionName | Region where the metric was accounted. Example: `Brazil` |
| accounted | Total amount of utilization accounted for the bill detail. Example: `1767504904` |
| billId | Unique identifier of the bill. Example: `1000` |
| billDetailId | Unique identifier of the bill detail. Example: `100000` |
| createdDate | Creation date of the bill in year-month-day format. Example: `2023-07-01` |
| temporaryBill | Indicates whether the bill is for the current month (temporary). Example: `false` |
| invoiceNumber | Unique identifier for the generated invoice regarding the client bill. Example: `BRLTDA-2769z072023` |