> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SubscriptionInvoice



**Kind**: `object`

## Fields

**`amountDue`**: `Float`

---

**`appliedBalance`**: `Float`

---

**`attemptCount`**: `Float`

Number of payment attempts made for this invoice, from the perspective of the payment retry schedule.

---

**`billingId`**: `String!`

---

**`billingReason`**: `SubscriptionInvoiceBillingReason`

---

**`createdAt`**: `DateTime!`

---

**`currency`**: `String`

---

**`dueDate`**: `DateTime`

---

**`endingBalance`**: `Float`

---

**`errorCode`**: `String`

Payment failure code from the billing provider, e.g. card_declined

---

**`errorMessage`**: `String`

---

**`lines`**: `[InvoiceLine!]`

---

**`paymentSecret`**: `String`

---

**`paymentUrl`**: `String`

---

**`pdfUrl`**: `String`

---

**`requiresAction`**: `Boolean!`

---

**`startingBalance`**: `Float`

---

**`status`**: `SubscriptionInvoiceStatus!`

---

**`subTotal`**: `Float`

---

**`subTotalExcludingTax`**: `Float`

---

**`tax`**: `Float`

---

**`total`**: `Float`

---

**`totalExcludingTax`**: `Float`

---

**`updatedAt`**: `DateTime!`



## Related topics

- [SubscriptionInvoiceStatus](https://docs.stigg.io/graphql-reference/types/SubscriptionInvoiceStatus.md)
- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [Mark subscription invoice as paid](https://docs.stigg.io/api-reference/subscriptions/mark-subscription-invoice-as-paid.md)
- [SubscriptionInvoicePreview](https://docs.stigg.io/graphql-reference/types/SubscriptionInvoicePreview.md)
- [SubscriptionInvoiceBillingReason](https://docs.stigg.io/graphql-reference/types/SubscriptionInvoiceBillingReason.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.