# AccountInvoice

Invoice MONEI issues to a merchant account for fees accrued in a billing period. Generated automatically from the account's transactions and plan.

```
type AccountInvoice {

  id: ID!

  number: String

  accountId: ID!

  period: Period!

  currency: Currencies!

  amount: Int!

  tax: Int!

  totalAmount: Int!

  lineItems: [AccountInvoiceLineItem!]!

  business: AccountInvoiceBusiness

  referralCode: String

  createdAt: Int!

  status: AccountInvoiceStatus

  paymentMethod: AccountInvoicePaymentMethod

}
```

### Fields[​](#fields "Enlace directo al Fields")

#### [`AccountInvoice.id`](#id) ● [`ID!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) non-null scalar[​](#id "Enlace directo al id")

Invoice ID.

#### [`AccountInvoice.number`](#number) ● [`String`](https://docs.monei.com/es/es/apis/graphql/types/scalars/string/.md) scalar[​](#number "Enlace directo al number")

Human-readable invoice number printed on the PDF.

#### [`AccountInvoice.accountId`](#account-id) ● [`ID!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) non-null scalar[​](#account-id "Enlace directo al account-id")

Merchant account the invoice belongs to.

#### [`AccountInvoice.period`](#period) ● [`Period!`](https://docs.monei.com/es/es/apis/graphql/types/objects/period/.md) non-null object[​](#period "Enlace directo al period")

Billing period covered by the invoice.

#### [`AccountInvoice.currency`](#currency) ● [`Currencies!`](https://docs.monei.com/es/es/apis/graphql/types/enums/currencies/.md) non-null enum[​](#currency "Enlace directo al currency")

ISO 4217 currency code of the invoice.

#### [`AccountInvoice.amount`](#amount) ● [`Int!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) non-null scalar[​](#amount "Enlace directo al amount")

Subtotal in minor units (sum of line items, before tax).

#### [`AccountInvoice.tax`](#tax) ● [`Int!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) non-null scalar[​](#tax "Enlace directo al tax")

Tax amount in minor units (e.g. VAT).

#### [`AccountInvoice.totalAmount`](#total-amount) ● [`Int!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) non-null scalar[​](#total-amount "Enlace directo al total-amount")

Total amount due in minor units (`amount` + `tax`).

#### [`AccountInvoice.lineItems`](#line-items) ● [`[AccountInvoiceLineItem!]!`](https://docs.monei.com/es/es/apis/graphql/types/objects/account-invoice-line-item/.md) non-null object[​](#line-items "Enlace directo al line-items")

Itemised fees and charges that make up the invoice.

#### [`AccountInvoice.business`](#business) ● [`AccountInvoiceBusiness`](https://docs.monei.com/es/es/apis/graphql/types/objects/account-invoice-business/.md) object[​](#business "Enlace directo al business")

Merchant business snapshot at the time the invoice was issued.

#### [`AccountInvoice.referralCode`](#referral-code) ● [`String`](https://docs.monei.com/es/es/apis/graphql/types/scalars/string/.md) scalar[​](#referral-code "Enlace directo al referral-code")

Referral code applied to the merchant when the invoice was generated.

#### [`AccountInvoice.createdAt`](#created-at) ● [`Int!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/int/.md) non-null scalar[​](#created-at "Enlace directo al created-at")

Issue date as a unix timestamp (seconds).

#### [`AccountInvoice.status`](#status) ● [`AccountInvoiceStatus`](https://docs.monei.com/es/es/apis/graphql/types/enums/account-invoice-status/.md) enum[​](#status "Enlace directo al status")

Current payment status.

#### [`AccountInvoice.paymentMethod`](#payment-method) ● [`AccountInvoicePaymentMethod`](https://docs.monei.com/es/es/apis/graphql/types/enums/account-invoice-payment-method/.md) enum[​](#payment-method "Enlace directo al payment-method")

Method MONEI uses to collect payment.

### Returned By[​](#returned-by "Enlace directo al Returned By")

[`accountInvoice`](https://docs.monei.com/es/es/apis/graphql/operations/queries/account-invoice/.md) query

### Member Of[​](#member-of "Enlace directo al Member Of")

[`AccountInvoicesConnection`](https://docs.monei.com/es/es/apis/graphql/types/objects/account-invoices-connection/.md) object
