previewInvoice

Graphql fields and variables for the previewInvoice query

Scope required:

For a complete list of possible response fields see the FormattedInvoice type.

query previewInvoice ($accountId: ID, $calculateTaxes: Boolean, $startDate: ISO8601Date, $endDate: ISO8601Date) {
  previewInvoice (accountId: $accountId, calculateTaxes: $calculateTaxes, startDate: $startDate, endDate: $endDate) {
    amount
    amountDue
    amountPaid
    billingCity
    billingCountry
    billingState
    billingStreet
    billingZip
    createdAt
    credits
    currency
    currencyId
    currencySymbol
    customerBillingCity
    customerBillingContact
    customerBillingCountry
    customerBillingState
    customerBillingStreet
    customerBillingZip
    customerName
    dueAt
    html
    id
    isLegacy
    netPaymentDays
    number
    payableId
    poNumber
    printedState
    salesContactEmail
    smallUnitAmountDue
    subscriptionEndDate
    subscriptionStartDate
    subtotal
    taxAmount
    taxCode
    taxId
    taxNumber
    uuid
    vatCode
    vendorName
  }
}

Arguments

Name
Type
Description

accountId

ID

calculateTaxes

Boolean

startDate

ISO8601Date

endDate

ISO8601Date

Response

Last updated

Was this helpful?